THotPDF.FlattenLoadedXFA Method
Provides flatten loaded xfa behavior for the XFA import and flattening workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function FlattenLoadedXFA(Editable: boolean= True): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Editable | Controls whether generated fields remain editable after the operation |
Return value
Returns an Integer value
Usage notes
Supported declared property classes use schema defaults; font sizes and graphic or widget edge widths preserve fractional PDF-point values
- Use this API in the XFA import and flattening 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
- XFA workflows are rejected by PDF/A and PDF/X conformance modes, so flatten or remove packets before strict archival output
- Fields and static content keep the positions and sizes from the XFA template, in points, whatever Resolution is set to; text and graphics you draw before and after the call still use 1/Resolution inch
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values