THotPDF.LoadXRefStreamDocumentFromFile Method
Loads xref stream document 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 LoadXRefStreamDocumentFromFile(const FileName: string; 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 |
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 LoadXRefStreamDocumentFromFile |
InfoObjNum | Input used by LoadXRefStreamDocumentFromFile |
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 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