THotPDF.SaveLoadedDocument Method
Saves loaded document output from the document import and output workflow to a file or stream. Prepare document metadata, pages, resources, signatures, and conformance options before invoking the save operation
Declaration
procedure SaveLoadedDocument(const TargetFile: TFileName);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
TargetFile | File path used as the source or destination for this operation |
Return value
This member does not return a 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
- A forced full rewrite targeting the loaded source path is written to a sibling temporary file and atomically replaces the source only after successful serialization