Namespace TallComponents.PDF.Layout
Class Document
The document object represents the complete PDF file.
The document contains sections into which content flows. The document declares document-wide options like the subject, author and keywords as well as security settings (Professional edition only).
Syntax
public class Document
: Object
Constructors
Properties
JavaScriptAction AfterPrintAction
After print action is executed after a document is printed.
JavaScriptAction AfterSaveAction
After save action is executed after a document is saved.
JavaScriptAction BeforeCloseAction
Before close action is executed before a document will be closed.
JavaScriptAction BeforePrintAction
Before print action is executed before a document will be printed.
JavaScriptAction BeforeSaveAction
Before save action is executed before a document will be saved.
DocumentInfo DocumentInfo
Get or set the document info object.
JavaScriptCollection JavaScripts
Document level JavaScripts.
MetadataSchemaCollection Metadata
Get the XMP metadata for this document.
ActionCollection OpenActions
Open actions are executed while a document is openening.
SectionCollection Sections
Collection of sections of this document.
Security Security
Get or set the security settings and user privileges of this document.
ViewerPreferences ViewerPreferences
Get or set the viewer preferences of this document.
WriteOptions WriteOptions
Encapsulates doucment write options.
Methods
Void Read(XmlReader)
Read from XML reader.
Void Write(Stream)
Write PDF document to stream in Declaritive mode.
Void Write(Stream,Boolean)
Write PDF document to stream in declaritive or Event-Driven mode.
Void Write(XmlReader,Stream)
Write document in Event-Driven mode to a stream. The document is read from an XML reader.