THPDFHeadlessDocument.LoadFromFile
Unit: HPDFHeadlessDocument
procedure LoadFromFile(const FileName: string); overload;
procedure LoadFromFile(const FileName: string;
const Password: UnicodeString); overload;
procedure LoadFromFile(const FileName: string;
const Password: UnicodeString;
const RecipientIdentities: array of THPDFHeadlessRecipientIdentity); overload;
Open a PDF read-only and load its classic cross-reference history, object graph, inherited page resources, and AcroForm field tree
This call closes the previous document first and closes partial state on failure; xref streams, hybrid xrefs, and encryption have explicit typed diagnostics in this profile
The second overload authenticates Standard-security documents with a user or owner password, and the third additionally supplies PKCS#12 recipient identities for Adobe.PubSec documents as THPDFHeadlessRecipientIdentity records whose PFXBytes and Password fields hold one identity each; the identities persist on the document for later authenticated copies and signatures
API contract and format boundaries · Linux portable core · Encrypted incremental updates · Public-key reload