THotPDF.SetXFADocument Method
Sets xfa document state for subsequent XFA import and flattening output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetXFADocument(const XMLBytes: TBytes);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
XMLBytes | Raw byte payload embedded or validated by this API |
Return value
This member does not return a value
Usage notes
- Use this API in the XFA import and flattening 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
- XFA workflows are rejected by PDF/A and PDF/X conformance modes, so flatten or remove packets before strict archival output