THotPDF.GetLoadedEncryptionInfo Method
Reads loaded encryption info information from the current document creation state. Use the value to inspect parser results, shaping tables, resource availability, or diagnostic counters without mutating document output
Declaration
function GetLoadedEncryptionInfo(out AVersion: Integer; out AKeyLength: Integer; out APermissions: THPDFProtectOptions): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AVersion | Version, conformance, or nesting level used by the workflow |
AKeyLength | Input used by GetLoadedEncryptionInfo |
APermissions | Input used by GetLoadedEncryptionInfo |
Return value
Returns a boolean value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values