Document Methods

The Document type exposes the following members.

Methods
  NameDescription
Public methodBindXml(Stream)
Bind xml to document
Public methodBindXml(String)
Bind xml to document
Public methodBindXml(Stream, Stream)
Bind xml/xsl to document
Public methodBindXml(String, String)
Bind xml/xsl to document
Public methodBindXml(Stream, Stream, XmlReaderSettings)
Bind xml/xsl to document
Public methodChangePasswords
Changes document passwords. This action can be done only using owner password.
Public methodCheck
Validates document.
Public methodConvert(DocumentCallBackGetHocr)
Convert document and save errors into the specified file.
Public methodConvert(PdfFormatConversionOptions)
Convert document using specified conversion options
Public methodConvert(Stream, PdfFormat, ConvertErrorAction)
Convert document and save errors into the specified stream.
Public methodConvert(String, PdfFormat, ConvertErrorAction)
Convert document and save errors into the specified file.
Public methodStatic memberConvert(Stream, LoadOptions, Stream, SaveOptions)
Converts stream in source format into stream in destination format.
Public methodStatic memberConvert(Stream, LoadOptions, String, SaveOptions)
Converts stream in source format into destination file in destination format.
Public methodConvert(Stream, PdfFormat, ConvertErrorAction, ConvertTransparencyAction)
Convert document and save errors into the specified file.
Public methodStatic memberConvert(String, LoadOptions, Stream, SaveOptions)
Converts source file in source format into stream in destination format.
Public methodStatic memberConvert(String, LoadOptions, String, SaveOptions)
Converts source file in source format into destination file in destination format.
Public methodConvert(String, PdfFormat, ConvertErrorAction, ConvertTransparencyAction)
Convert document and save errors into the specified file.
Public methodConvertPageToPNGMemoryStream
Convert page to PNG for DSR, OMR , OCR
Public methodDecrypt
Decrypts the document. Call then Save to obtain decrypted version of the document.
Public methodDispose
Closes all resources used by this document.
Public methodEncrypt(String, String, Permissions, CryptoAlgorithm)
Encrypts the document. Call then Save to get encrypted version of the document.
Public methodEncrypt(String, String, DocumentPrivilege, CryptoAlgorithm, Boolean)
Encrypts the document. Call then Save to get encrypted version of the document.
Public methodEncrypt(String, String, Permissions, CryptoAlgorithm, Boolean)
Encrypts the document. Call then Save to get encrypted version of the document.
Public methodEquals (Inherited from Object.)
Public methodExportAnnotationsToXfdf(Stream)
Export all document annotations into stream.
Public methodExportAnnotationsToXfdf(String)
Exports all document annotations to XFDF file
Public methodFlatten
Removes all fields from the document and place their values instead.
Public methodFlatten(FormFlattenSettings)
Removes all fields from the document and place their values instead.
Public methodFreeMemory
Clears memory
Public methodGetCatalogValue
Returns item value from catalog dictionary.
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectById
Gets a object with specified ID in the document.
Public methodGetType (Inherited from Object.)
Public methodGetXmpMetadata
Get XMP metadata from document.
Public methodImportAnnotationsFromXfdf(Stream)
Imports annotations from stream to document.
Public methodImportAnnotationsFromXfdf(String)
Imports annotations from XFDF file to document.
Public methodOptimize
Linearize document in order to - open the first page as quickly as possible; - display next page or follow by link to the next page as quickly as possible; - display the page incrementally as it arrives when data for a page is delivered over a slow channel (display the most useful data first); - permit user interaction, such as following a link, to be performed even before the entire page has been received and displayed. Invoking this method doesn't actually saves the document. On the contrary the document only is prepared to have optimized structure, call then Save to get optimized document.
Public methodOptimizeResources
Optimize resources in the document: 1. Resources which are not used on the document pages are removed; 2. Equal resources are joined into one object; 3. Unused objects are deleted.
Public methodOptimizeResources(OptimizationOptions)
Optimize resources in the document according to defined optimization strategy.
Public methodProcessParagraphs
Process paragraphs for generator.
Public methodRemoveMetadata
Removes metadata from the document.
Public methodRemovePdfaCompliance
Remove pdfa compliance from the document
Public methodRemovePdfUaCompliance
Remove pdfUa compliance from the document
Public methodRepair
Repairs broken document.
Public methodSave
Save document incrementally (i.e. using incremental update technque).
Public methodSave(Stream)
Stores document into stream.
Public methodSave(String)
Saves document into the specified file.
Public methodSave(Stream, SaveFormat)
Saves the document with a new name along with a file format.
Public methodSave(Stream, SaveOptions)
Saves the document to a stream with a save options.
Public methodSave(String, SaveFormat)
Saves the document with a new name along with a file format.
Public methodSave(String, SaveOptions)
Saves the document with a new name setting its save options.
Public methodSave(HttpResponse, String, ContentDisposition, SaveOptions)
Saves the document to a response stream with a save options.
Public methodSaveXml
Save document to XML.
Public methodSendTo(DocumentDevice, Stream)
Sends the whole document to the document device for processing.
Public methodSendTo(DocumentDevice, String)
Sends the whole document to the document device for processing.
Public methodSendTo(DocumentDevice, Int32, Int32, Stream)
Sends the certain pages of the document to the document device for processing.
Public methodSendTo(DocumentDevice, Int32, Int32, String)
Sends the whole document to the document device for processing.
Public methodSetTitle
Set Title for Pdf Document
Public methodSetXmpMetadata
Set XMP metadata of document.
Public methodToString (Inherited from Object.)
Public methodValidate(PdfFormatConversionOptions)
Validate document into the specified file.
Public methodValidate(Stream, PdfFormat)
Validate document into the specified file.
Public methodValidate(String, PdfFormat)
Validate document into the specified file.
See Also