PDFVisualDocument¶
Namespace: O2S.Components.PDF4NET.View
Defines a PDF document that is displayed in a viewer control.
Inheritance Object → MarshalByRefObject → Component → PDFVisualDocument
Implements
Constructors¶
PDFVisualDocument()¶
Initializes a new PDFVisualDocument object.
PDFVisualDocument(IContainer)¶
Initializes a new PDFVisualDocument object.
Parameters
container IContainer
The container of this object.
Properties¶
Container¶
Property Value
FixedDocument¶
Gets the underlying fixed document.
Property Value
PDFFixedDocument
A object representing the PDF document displayed in a
control.
Pages¶
Gets the pages collection.
Property Value
PDFVisualPageCollection
A collection of PDFVisualPage objects representing the pages included in the document that are
displayed in a control.
Site¶
Property Value
Methods¶
Close()¶
Closes the PDF document.
Load(PDFFixedDocument)¶
Loads a visual PDF document from a object.
Parameters
fixedDocument PDFFixedDocument
Source PDF document.
Load(String, String)¶
Loads a visual PDF document from a file.
Parameters
fileName String
Path to PDF file.
password String
Optional password for opening the PDF file.
Remarks
When a PDFVisualDocument object is loaded from a stream of a file, the corresponding PDF file is loaded partially to reduce memory usage. This partial load requires all changes to be saved in incremental update mode.
Load(Stream, String)¶
Loads a visual PDF document from a stream.
Parameters
stream Stream
Source stream containing the PDF file.
password String
Optional password for opening the PDF file.
Remarks
When a PDFVisualDocument object is loaded from a stream of a file, the corresponding PDF file is loaded partially to reduce memory usage. This partial load requires all changes to be saved in incremental update mode.
Save(String)¶
Saves the PDF document to file.
Parameters
fileName String
Path to file where the document will be saved.
Save(Stream)¶
Saves the PDF document to a stream.
Parameters
stream Stream
Destination stream where the document will be saved.