TdxPDFDocument Class
A PDF document container.
Declaration
TdxPDFDocument = class(
TObject
)
Remarks
The PDF document container implements an API for the core document management functionality, such as load and save operations with support for encryption and digital signatures, content search and export, and so on. The PDF Viewer control relies on a PDF document container to load, store, and manage documents.
Create a PDF document container at runtime if you want to automatically load and process PDF documents. The TdxPDFDocument
class has members that allow you to do the following:
Load a PDF document from a file or stream into the container and perform specific actions when the load operation succeeds (LoadFromFile, LoadFromStream, and OnLoaded).
Specify the number of allowed attempts to load an encrypted PDF document (PasswordAttemptsLimit).
Enter a user or owner password programmatically when the container loads an encrypted document (OnGetPassword).
Edit document metadata (Information).
Identify the number of pages in the document (PageCount).
Obtain information on specific document pages and export page content (PageInfo).
Search text and track the search progress (FindText and OnSearchProgress).
Access file attachments (FileAttachments).
Merge multiple PDF documents (Append).
Apply batch document changes (BeginUpdate and EndUpdate).
Track document changes (OnChanged).
Access and rotate individual document pages (Pages).
Encrypt the document and enable password protection (SecurityOptions).
Configure a digital signature (SignatureOptions).
Access the document’s form with interactive fields (Form).
Identify user permissions in an encrypted document (AllowContentExtraction, AllowPrinting, and SecurityOptions.Permissions).
Save the document to a file or stream (SaveToFile and SaveToStream).
Track the document save progress (OnSaveProgress).
Close the loaded document (Clear).
Respond to a successful document close operation (OnUnloaded).
The PDF Viewer control’s Document property references a TdxPDFDocument
object.