THotPDF.LoadXRefStreamDocumentEncFromFile Method
Loads xref stream document enc from file input into the document import and output workflow. Use loaded objects for page copying, form inspection, validation, repair, metadata reuse, or incremental processing
Declaration
function LoadXRefStreamDocumentEncFromFile(const FileName: string; const Password: AnsiString; out RootIndex, InfoIndex, EncryptIndex, PagesIndex, RootObjNum, InfoObjNum: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileName | File path used as the source or destination for this operation |
Password | Password used for encrypted input or encrypted output workflows |
RootIndex | Zero-based index or object index used to select an existing item |
InfoIndex | Zero-based index or object index used to select an existing item |
EncryptIndex | Zero-based index or object index used to select an existing item |
PagesIndex | Zero-based index or object index used to select an existing item |
RootObjNum | Input used by LoadXRefStreamDocumentEncFromFile |
InfoObjNum | Input used by LoadXRefStreamDocumentEncFromFile |
Return value
Returns an Integer value
Usage notes
- Use this API in the document import and output workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values