Namespace TallComponents.PDF
Class Document
The Document class is the top-level class in the TallComponents.PDF namespace. It represents an existing or new PDF document.
Syntax
public class Document : Object
Constructors
Document()
Creates a new document.
Document(BinaryReader)
Opens an existing document.
Document(BinaryReader,String)
Opens an existing password-protected document.
Document(Stream)
Opens an existing document.
Document(Stream,String)
Opens an existing password-protected document.
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.
BookmarkCollection Bookmarks
The Bookmarks of this document
ValueFieldSequence CalculationOrder
The order of the fields that need to be recalculated.
DocumentInfo DocumentInfo
Document Info for the document like Author, Title and Subject.
DocumentType DocumentType
Type of document.
EmbeddedFileCollection EmbeddedFiles
The embedded files in this document.
FieldCollection Fields
All form fields inside this document.
FontCollection Fonts
The fonts used in this document.
JavaScriptCollection JavaScripts
Document level JavaScripts.
LayerCollection Layers
The layers that are defined in this document.
MetadataSchemaCollection MetadataSchemas
The XMP metadata for this document.
InternalDestinationCollection NamedDestinations
Named Destinations defined at Document level.
ActionCollection OpenActions
Open actions are executed while a document is openening.
PageCollection Pages
Collection of pages in this document.
Boolean Repaired
Returns whether the document was repaired.
ScriptBehavior ScriptBehavior
The script behavior for all fields in this document. (default = Format)
Security Security
The security settings of this document.
UpdateCollection Updates
The updates for this document.
UsageRights UsageRights
The usage rights this document contains.
Version Version
The PDF version for this document;
ViewerPreferences ViewerPreferences
Viewer preferences of this document.
XfaInfo XfaInfo
Additional XFA specific information for this document.
Methods
Void Calculate()
Trigger to execute the calculate actions in the value fields.
Void ClearUsageRights()
Clear the usage rights this document contains, if any.
FormData Export(SubmitFormat,Boolean)
Export data into a FormData object.
TextMatchEnumerator Find(TextFindCriteria)
Find text in this document.
TextMatchEnumerator Find(TextFindCriteria,IGlyphComparer,Boolean)
Find text in this document.
Void Import(FormData)
Import data from a FormData object.
Void Import(FormData,Boolean)
Import data from a FormData object.
Boolean PasswordRequired(BinaryReader)
This method checks if a password is required to open this document.
Void Write(BinaryWriter)
Write the modified document to any writer.
Void Write(BinaryWriter,Boolean)
Write the modified document to any writer.
Void Write(BinaryWriter,DocumentWriteMode)
Write the modified document to any writer.
Void Write(BinaryWriter,DocumentWriteMode,Boolean)
Write the modified document to any writer.
Void Write(Stream)
Write the modified document to a stream, eg a FileStream or MemoryStream.
Void Write(Stream,Boolean)
Write the modified document to a stream, eg a FileStream or MemoryStream.
Void Write(Stream,DocumentWriteMode)
Write the modified document to a stream, eg a FileStream or MemoryStream.
Void Write(Stream,DocumentWriteMode,Boolean)
Write the modified document to a stream, eg a FileStream or MemoryStream.
Void Write(Stream,WriteOptions)
Write this document to a stream given provided write options.