THotPDF.ExportLoadedDocumentToXFDFBytes Method
Provides the ExportLoadedDocumentToXFDFBytes behavior for the document creation workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function ExportLoadedDocumentToXFDFBytes(out Bytes: TBytes; const SourcePDFHref: AnsiString = ''; const OriginalIDHex: AnsiString = ''; const ModifiedIDHex: AnsiString = ''): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Bytes | Raw byte payload embedded or validated by this API |
SourcePDFHref | Input used by ExportLoadedDocumentToXFDFBytes |
OriginalIDHex | Input used by ExportLoadedDocumentToXFDFBytes |
ModifiedIDHex | Input used by ExportLoadedDocumentToXFDFBytes |
Return value
Returns an Integer 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