PDFKit.NET 5.0 PDFKit.NET 5.0

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


Creates a new document.

Opens an existing document.

Opens an existing password-protected document.

Opens an existing document.

Opens an existing document.

Opens an existing password-protected document.

Open an existing PDF document with given options.

Properties


After print action is executed after a document is printed.

After save action is executed after a document is saved.

Before close action is executed before a document will be closed.

Before print action is executed before a document will be printed.

Before save action is executed before a document will be saved.

The Bookmarks of this document

The order of the fields that need to be recalculated.

Document Info for the document like Author, Title and Subject.

Type of document.

The embedded files in this document.

All form fields inside this document.

The fonts used in this document.

Document level JavaScripts.

The layers that are defined in this document.

The LogicalStructure for this document

The XMP metadata for this document.

Named Destinations defined at Document level.

Open actions are executed while a document is openening.

The output intents that are defined in this document.

Collection of pages in this document.

Returns whether the document was repaired.

The script behavior for all fields in this document. (default = Format)

The security settings of this document.

The updates for this document.

The usage rights this document contains.

The PDF version for this document;

Viewer preferences of this document.

Additional XFA specific information for this document.

Methods


Trigger to execute the calculate actions in the value fields.

Clear the usage rights this document contains, if any.

Export data into a FormData object.

Find text in this document.


Sets the widgets on all pages to be flattened when the document is written.

Sets the widgets on all pages to be flattened when the document is written.

Import data from a FormData object.

Import data from a FormData object.

This method checks if a password is required to open this document.

Rewrite a given PDF using optionally using algorithms to reduce the file size

Rewrite a given PDF using optionally using algorithms to reduce the file size

Write the modified document to any writer.

Write the modified document to any writer.

Write the modified document to any writer.

Write the modified document to any writer.

Write the modified document to a stream, eg a FileStream or MemoryStream.

Write the modified document to a stream, eg a FileStream or MemoryStream.

Write the modified document to a stream, eg a FileStream or MemoryStream.

Write the modified document to a stream, eg a FileStream or MemoryStream.

Write this document to a stream given provided write options.