Namespace: BitMiracle.Docotic.Pdf
public sealed class PdfDocument : IDisposable
Public NotInheritable Class PdfDocument Implements IDisposable
The PdfDocument type exposes the following members.
Name | Description | |
---|---|---|
![]() | PdfDocument() |
Creates a new blank PDF document.
|
![]() | PdfDocument(Byte[]) |
Opens an existing PDF document.
|
![]() | PdfDocument(PdfConfigurationOptions) |
Creates a new blank PDF document using specified configuration options.
|
![]() | PdfDocument(Stream) |
Opens an existing PDF document.
|
![]() | PdfDocument(String) |
Opens an existing PDF document.
|
![]() | PdfDocument(Stream, PdfConfigurationOptions) |
Opens an existing PDF document using specified configuration options.
|
![]() | PdfDocument(Stream, PdfDecryptionHandler) |
Opens an existing encrypted PDF document.
|
![]() | PdfDocument(String, PdfConfigurationOptions) |
Opens an existing PDF document using specified configuration options.
|
![]() | PdfDocument(String, PdfDecryptionHandler) |
Opens an existing encrypted PDF document.
|
![]() | PdfDocument(Stream, PdfDecryptionHandler, PdfConfigurationOptions) |
Opens an existing encrypted PDF document using specified configuration options.
|
![]() | PdfDocument(String, PdfDecryptionHandler, PdfConfigurationOptions) |
Opens an existing encrypted PDF document using specified configuration options.
|
Name | Description | |
---|---|---|
![]() | AutoCreateUriActions |
Gets or sets a value indicating whether to check each text string
drawn with DrawString()
or DrawText(String, PdfTextDrawingOptions) for
URIs and create PdfUriActions for each found URI.
|
![]() | GrantedPermissions |
Gets the permissions granted for the current document.
|
![]() | HasSignaturePermissions |
Gets a value indicating whether this document has digital signature permissions.
|
![]() | Info |
Gets the interface for the document metadata.
|
![]() | InitialView |
Gets or sets the PdfDocumentView to open when the
document is opened.
|
![]() | IsLinearized |
Gets a value indicating whether this document is linearized (optimized for
fast viewing on the web).
|
![]() | Layers |
Gets the collection of layers (also known as optional content groups) in this document.
|
![]() | Metadata |
Gets the XMP metadata attached to the document.
|
![]() | NeedAppearances |
Gets or sets a value indicating whether the viewing application should construct
appearances of all controls and widgets in this document.
|
![]() | OnOpenDocument |
Gets or sets the action to be performed when the document is opened.
|
![]() | OutlineRoot |
Gets the document outline root.
|
![]() | PageCount |
Gets the number of pages in this document.
|
![]() | PageLabels |
Gets the collection of page labeling ranges in this document.
|
![]() | PageLayout |
Gets or sets the page layout to be used when the document is opened
by a PDF viewer application.
|
![]() | PageMode |
Gets or sets how the document should be displayed when opened
by a PDF viewer application.
|
![]() | Pages |
Gets the collection of pages in this document.
|
![]() | SharedAttachments |
Gets the collection of document-level attachments.
|
![]() | SharedScripts |
Gets the collection of shared JavaScript actions in this document.
|
![]() | UsesObjectStreams |
Gets a value indicating whether this document uses object streams to store internal
structures more compactly.
|
![]() | Version |
Gets the version of the PDF specification to which this document conforms.
|
![]() | ViewerPreferences |
Gets the interface for the viewer preferences of this document.
|
Name | Description | |
---|---|---|
![]() | AddColoredPattern |
Adds a new colored tiling pattern to the end of the collection
of document patterns.
|
![]() | AddColorProfile(Byte[]) |
Adds a new ICC color profile to the end of the collection of document
color profiles.
|
![]() | AddColorProfile(Stream) |
Adds a new ICC color profile read from specified
stream to the end of the collection of document color profiles.
|
![]() | AddColorProfile(String) |
Adds a new ICC color profile read from file with
specified name to the end of the collection of document color profiles.
|
![]() | AddFont(Byte[]) |
Creates a new font using provided font bytes and adds the new font to the
end of the collection of document fonts.
|
![]() | AddFont(PdfBuiltInFont) |
Adds a new instance of built-in font to the end of the collection
of document fonts.
|
![]() | AddFont(Stream) |
Creates a new font using provided stream with font bytes and adds the new
font to the end of the collection of document fonts.
|
![]() | AddFont(String) |
Adds a new font with specified face name to the end of the
collection of document fonts.
|
![]() | AddFont(Byte[], Boolean, Boolean) |
Creates a new font with specified properties using provided font bytes and
adds the new font to the end of the collection of document fonts.
|
![]() | AddFont(PdfBuiltInFont, Boolean, Boolean) |
Adds a new instance of built-in font with specified properties
to the end of the collection of document fonts.
|
![]() | AddFont(Stream, Boolean, Boolean) |
Creates a new font with specified properties using provided stream with font
bytes and adds the new font to the end of the collection of document fonts.
|
![]() | AddFont(Byte[], Boolean, Boolean, Boolean, Boolean) |
Creates a new font with specified properties using provided font bytes and
adds the new font to the end of the collection of document fonts.
|
![]() | AddFont(Stream, Boolean, Boolean, Boolean, Boolean) |
Creates a new font with specified properties using provided stream with font
bytes and adds the new font to the end of the collection of document fonts.
|
![]() | AddFont(String, Boolean, Boolean, Boolean, Boolean) |
Adds a new font with specified properties to the end of the
collection of document fonts.
|
![]() | AddFontFromFile(String) |
Creates a new font using provided font file and adds the new font to the
end of the collection of document fonts.
|
![]() | AddFontFromFile(String, Boolean, Boolean) |
Creates a new font with specified properties using provided font file
and adds the new font to the end of the collection of document fonts.
|
![]() | AddFontFromFile(String, Boolean, Boolean, Boolean, Boolean) |
Creates a new font with specified properties using provided font file
and adds the new font to the end of the collection of document fonts.
|
![]() | AddImage(Byte[]) |
Adds new image(s) with the data and properties read from the
buffer with image bytes to the end of the collection of
document images.
|
![]() | AddImage(PdfImageFrame) |
Creates a new image from specified PdfImageFrame and adds it
to the end of the collection of document images.
|
![]() | AddImage(Stream) |
Adds new image(s) with the data and properties read from the specified
stream to the end of the collection of document images.
|
![]() | AddImage(String) |
Adds new image(s) with the data and properties read from the
file with specified name to the end of the collection of document images.
|
![]() | AddImage(Byte[], PdfColor) |
Creates image(s) with the data and properties read from the
buffer with image bytes, applies specified mask color to them and adds
resulting image(s) to the end of the collection of document images.
|
![]() | AddImage(Byte[], Byte[]) |
Creates a new image with the data and properties read from the buffer with
image bytes, applies mask constructed from the buffer with mask
image bytes to it and adds resulting image to the end of the
collection of document images.
|
![]() | AddImage(Stream, PdfColor) |
Creates image(s) with the data and properties read from the specified stream,
applies specified mask color to them and adds resulting image(s) to the end
of the collection of document images.
|
![]() | AddImage(Stream, Stream) |
Creates a new image with the data and properties read from the specified
stream, applies mask read from another stream to it and adds resulting image
to the end of the collection of document images.
|
![]() | AddImage(String, PdfColor) |
Creates image(s) with the data and properties read from the file with
specified name, applies specified mask color to them and adds resulting
image(s) to the end of the collection of document images.
|
![]() | AddImage(String, String) |
Creates a new image with the data and properties read from the file with
specified name, applies mask read from another file with specified name to it
and adds resulting image to the end of the collection of document images.
|
![]() | AddPage |
Adds new page to the end of the collection of document pages.
|
![]() | AddUncoloredPattern |
Adds a new uncolored tiling pattern with specified underlying
color space to the end of the collection of document patterns.
|
![]() | Append(Byte[]) |
Appends the contents of specified buffer with PDF data to
this PdfDocument.
|
![]() | Append(Stream) |
Appends the contents of specified stream with PDF data to
this PdfDocument.
|
![]() | Append(String) |
Appends the contents of existing PDF file with the specified name
to this PdfDocument.
|
![]() | Append(Stream, PdfDecryptionHandler) |
Appends the contents of the specified stream with PDF data to this
PdfDocument.
|
![]() | Append(String, PdfDecryptionHandler) |
Appends the contents of existing PDF file with the specified name
to this PdfDocument.
|
![]() | Append(Stream, PdfDecryptionHandler, PdfMergingOptions) |
Appends the contents of the specified stream with PDF data to this
PdfDocument.
|
![]() | Append(String, PdfDecryptionHandler, PdfMergingOptions) |
Appends the contents of an existing PDF file with the specified name
to this PdfDocument.
|
![]() | ContainsTransparencyGroups |
Checks if there are any objects with transparency groups in this document.
|
![]() | CopyPages(Int32[]) |
Copies pages with specified indexes into new PdfDocument.
|
![]() | CopyPages(PdfPage[]) |
Copies specified pages into new PdfDocument.
This PdfDocument remains unchanged.
|
![]() | CopyPages(Int32, Int32) |
Copies a range of pages into new PdfDocument.
This PdfDocument remains unchanged.
|
![]() | CopyPages(Int32, Int32, PdfConfigurationOptions) |
Copies a range of pages into new PdfDocument using specified
configuration options. This PdfDocument remains unchanged.
|
![]() | Create3dView |
Creates a 3D view object.
|
![]() | CreateFileAttachment(String) |
Creates attachment from the specified file and returns file specification for the
attachment.
|
![]() | CreateFileAttachment(Byte[], String) |
Creates attachment from provided bytes and returns file specification for the
attachment.
|
![]() | CreateFileAttachment(Stream, String) |
Creates attachment from contents of provided stream and returns file specification for
the attachment.
|
![]() | CreateFileAttachment(String, String) |
Creates attachment from the specified file and returns file specification for the
attachment.
|
![]() | CreateFileAttachment(Byte[], String, String) |
Creates attachment from provided bytes and returns file specification for the
attachment.
|
![]() | CreateFileAttachment(Stream, String, String) |
Creates attachment from contents of provided stream and returns file specification for
the attachment.
|
![]() | CreateGoToPageAction(Int32, Double) |
Creates a new PdfGoToAction with specified properties.
|
![]() | CreateGoToPageAction(PdfPage, Double) |
Creates a new PdfGoToAction with specified properties.
|
![]() | CreateHideAction |
Creates a new PdfHideAction.
|
![]() | CreateHyperlinkAction(String) |
Creates a new PdfUriAction with specified
uniform resource identifier (URI) to resolve.
|
![]() | CreateHyperlinkAction(Uri) |
Creates a new PdfUriAction with specified
uniform resource identifier (URI) to resolve.
|
![]() | CreateImportDataAction |
Creates a new PdfImportDataAction.
|
![]() | CreateJavaScriptAction |
Creates a new PdfJavaScriptAction with specified script contents.
|
![]() | CreateLaunchAction |
Creates a new PdfLaunchAction.
|
![]() | CreateLayer(String) |
Creates a new PdfLayer with specified name and adds it to the collection
of documents layers.
|
![]() | CreateLayer(String, Boolean, PdfLayerIntent[]) |
Creates a new PdfLayer with specified name and properties and adds it to
the collection of documents layers.
|
![]() | CreateRemoteGoToPageAction |
Creates a new PdfRemoteGoToAction with specified properties.
|
![]() | CreateResetFormAction |
Creates a new PdfResetFormAction.
|
![]() | CreateSubmitFormAction(Uri) |
Creates a new PdfSubmitFormAction with specified properties.
|
![]() | CreateSubmitFormAction(Uri, Boolean) |
Creates a new PdfSubmitFormAction with specified properties.
|
![]() | CreateSubmitFormAction(Uri, Boolean, PdfSubmitFormat) |
Creates a new PdfSubmitFormAction with specified properties.
|
![]() | CreateView(Int32) |
Creates a new PdfDocumentView for specified page
and adds it to the collection of document views.
|
![]() | CreateView(PdfPage) |
Creates a new PdfDocumentView for specified page
and adds it to the collection of document views.
|
![]() | CreateXObject() |
Creates a new XObject that can be used with one of the
DrawXObject() methods.
|
![]() | CreateXObject(PdfPage) |
Creates a new XObject using a page as template. The created XObject can be used with
one of the DrawXObject() methods.
|
![]() | Dispose |
Frees and releases all resources allocated by this
PdfDocument.
|
![]() ![]() | DocumentsAreEqual(Stream, Stream) |
Compares the data and structure of two not encrypted PDF documents.
|
![]() ![]() | DocumentsAreEqual(String, String) |
Compares the data and structure of two not encrypted PDF documents.
|
![]() ![]() | DocumentsAreEqual(Stream, Stream, PdfDecryptionHandler) |
Compares the data and structure of two PDF documents.
|
![]() ![]() | DocumentsAreEqual(String, String, PdfDecryptionHandler) |
Compares the data and structure of two PDF documents.
|
![]() ![]() | DocumentsAreEqual(Stream, Stream, PdfDecryptionHandler, PdfConfigurationOptions) |
Compares the data and structure of two PDF documents.
|
![]() | Equals | (Inherited from Object.) |
![]() | ExportFdf(Stream) |
Takes the values from the controls in this PdfDocument and
exports them into FDF document.
|
![]() | ExportFdf(String) |
Takes the values from the controls in this PdfDocument and
exports them into FDF document.
|
![]() | ExtractPages(Int32[]) |
Extracts pages with specified indexes into new PdfDocument.
|
![]() | ExtractPages(PdfPage[]) |
Extracts specified pages into new PdfDocument.
|
![]() | ExtractPages(Int32, Int32) |
Extracts a range of pages into new PdfDocument.
|
![]() | ExtractPages(Int32, Int32, PdfConfigurationOptions) |
Extracts a range of pages into new PdfDocument using specified
configuration options.
|
![]() | FlattenControls |
Flattens all controls in the document. In effect, replaces controls with their
appearance. Putting it differently, merges controls down on to their respective pages.
|
![]() | GetActions |
Returns the enumerator that iterates through the collection of actions in this document.
|
![]() | GetColorProfiles |
Returns the enumerator that iterates through the collection of color profiles in this document.
|
![]() | GetControl |
Gets the control by name.
|
![]() | GetControls |
Returns the enumerator that iterates through the collection of document controls.
|
![]() ![]() | GetEncryptionInfo(Stream) |
Retrieves information about encryption scheme used in a PDF document.
|
![]() ![]() | GetEncryptionInfo(String) |
Retrieves information about encryption scheme used in a PDF document.
|
![]() ![]() | GetEncryptionInfo(Stream, PdfConfigurationOptions) |
Retrieves information about encryption scheme used in a PDF document.
|
![]() ![]() | GetEncryptionInfo(String, PdfConfigurationOptions) |
Retrieves information about encryption scheme used in a PDF document.
|
![]() | GetFonts |
Returns the enumerator that iterates through the collection of document fonts.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetImages() |
Returns the enumerator that iterates through the collection of document images including
inline images and images added to document but not yet drawn on any canvas.
|
![]() | GetImages(Boolean) |
Returns the enumerator that iterates through the collection of document images including
or excluding the inline images. The enumerator includes images added to document but not
yet drawn on any canvas.
|
![]() | GetPage |
Gets the page with the specified index.
|
![]() | GetPatterns |
Returns the enumerator that iterates through the collection of patterns in this document.
|
![]() | GetPdfaConformance |
Gets PDF/A standard conformance level for this PdfDocument.
|
![]() | GetPdfxConformance |
Gets PDF/X standard conformance level for this PdfDocument.
|
![]() | GetText() |
Retrieves all text drawn on all pages of the document in plain text format.
|
![]() | GetText(PdfTextExtractionOptions) |
Retrieves all text drawn on all pages of the document according to the specified options.
|
![]() | GetTextWithFormatting |
Retrieves all text drawn on all pages of the document formatted as seen
in a PDF viewer.
|
![]() | GetType | (Inherited from Object.) |
![]() | GetViews |
Returns the enumerator that iterates through the collection of document views
added to this document.
|
![]() | GetWidgets |
Returns the enumerator that iterates through the collection of document widgets
(annotations and controls).
|
![]() | ImportFdf(Byte[]) |
Takes the values from the FDF document and imports them into this PdfDocument.
|
![]() | ImportFdf(Stream) |
Takes the values from the FDF document and import them into this PdfDocument.
|
![]() | ImportFdf(String) |
Takes the values from the FDF document and imports them into this PdfDocument.
|
![]() | IndexOf |
Gets the index of page in the document page collection.
|
![]() | InsertPage |
Inserts new page into the collection of document pages at the
specified index.
|
![]() | MovePage |
Changes position of the page within the collection of document pages.
|
![]() | MovePages(Int32[], Int32) |
Changes positions of all pages specified by their indexes within the
collection of document pages.
|
![]() | MovePages(Int32, Int32, Int32) |
Changes positions of all pages in specified range within the collection
of document pages.
|
![]() | OpenImage(Byte[]) |
Opens the image and constructs a collection of its frames (pages).
|
![]() | OpenImage(Stream) |
Opens the image and constructs a collection of its frames (pages).
|
![]() | OpenImage(String) |
Opens the image and constructs a collection of its frames (pages).
|
![]() | RemovePage(Int32) |
Removes the page at the specified index of the collection of
document pages.
|
![]() | RemovePage(PdfPage) |
Removes the specified page from the collection of document pages.
|
![]() | RemovePages(Int32) |
Removes a range of pages from the collection of document pages.
|
![]() | RemovePages(Int32[]) |
Removes pages with specified indexes from the collection of
document pages.
|
![]() | RemovePages(PdfPage[]) |
Removes specified pages from the collection of document pages.
|
![]() | RemovePages(Int32, Int32) |
Removes a range of pages from the collection of document pages.
|
![]() | RemovePieceInfo |
Removes all page-piece dictionaries from the document.
|
![]() | RemoveSignaturePermissions |
Removes all digital signature permissions from the PDF document.
|
![]() | RemoveStructureInformation |
Removes all structure information from the PDF document.
|
![]() | RemoveTransparencyGroups |
Removes all transparency groups from the PDF document.
|
![]() | RemoveUnusedFontGlyphs() |
Tries to remove unused glyphs from all fonts in the document.
|
![]() | RemoveUnusedFontGlyphs(IEnumerable<PdfFont>) |
Tries to remove unused glyphs from the specified fonts in the document.
|
![]() | RemoveUnusedResources |
Removes references to resources such as fonts, xobjects, images, patterns.
|
![]() | RemoveWidget |
Removes the specified widget from the document.
|
![]() | ReplaceDuplicateObjects() |
Replaces duplicate document objects with the first duplicate.
|
![]() | ReplaceDuplicateObjects(PdfDuplicateObjectKinds) |
Replaces duplicate document objects with the first duplicate.
|
![]() | Save(Stream) |
Saves the document to the specified stream.
|
![]() | Save(String) |
Saves the document to the file with the specified name.
|
![]() | Save(Stream, PdfSaveOptions) |
Saves the document using the specified save options to the specified stream.
|
![]() | Save(String, PdfSaveOptions) |
Saves the document using the specified save options to the file with the specified name.
|
![]() | SaveAsTiff(Stream, PdfDrawOptions) |
Creates images of each page in the document, then creates a multipage TIFF from the
images and saves the TIFF to the specified stream.
|
![]() | SaveAsTiff(String, PdfDrawOptions) |
Creates images of each page in the document, then creates a multipage TIFF from the
images and saves the TIFF to the file with specified name.
|
![]() | SetPdfAOutputIntent |
Sets the PDF/A output intent for this document.
|
![]() | SetPdfXOutputIntent |
Sets the PDF/X output intent for this document.
|
![]() | SignAndSave(PdfSigningOptions, Stream) |
Digitally signs the document using the specified signing options. Then saves the
document to the specified stream.
|
![]() | SignAndSave(PdfSigningOptions, String) |
Digitally signs the document using the specified signing options. Then saves
the document to the file with the specified name.
|
![]() | SignAndSave(PdfSigningOptions, Stream, PdfSaveOptions) |
Digitally signs the document using the specified signing and save options. Then saves
the document to the specified stream.
|
![]() | SignAndSave(PdfSigningOptions, String, PdfSaveOptions) |
Digitally signs the document using the specified signing and save options. Then saves
the document to the file with the specified name.
|
![]() | SwapPages |
Interchanges positions of two pages.
|
![]() | SyncMetadata |
Synchronizes values in XMP Metadata and
Document Info.
|
![]() | ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | AddFont(Font) | Overloaded.
Adds the new font with the properties of the specified
Font to the end of the collection of document fonts.
(Defined by PdfDocumentGdiExtensions.) |
![]() | AddFont(String, FontStyle) | Overloaded.
Adds the new font with specified properties to the end of the
collection of document fonts.
(Defined by PdfDocumentGdiExtensions.) |
![]() | AddImage(Image) | Overloaded.
Adds new image(s) with the data and properties of specified
Image to the end of the collection of document images.
(Defined by PdfDocumentGdiExtensions.) |
![]() | AddImage(Image, PdfColor) | Overloaded.
Creates image(s) with the data and properties of specified
Image, applies specified mask color to them and adds resulting
image(s) to the end of the collection of document images.
(Defined by PdfDocumentGdiExtensions.) |
![]() | AddImage(Image, Image) | Overloaded.
Creates a new image with the data and properties of specified
Image, applies mask constructed from specified
Image to it and adds resulting image to the end of the
collection of document images.
(Defined by PdfDocumentGdiExtensions.) |
![]() | OpenImage |
Opens the image and constructs a collection of its frames (pages).
(Defined by PdfDocumentGdiExtensions.) |