THotPDF.FlattenLoadedXFA Method
Method summary: THotPDF.FlattenLoadedXFA Method
Declaration
function FlattenLoadedXFA(Editable: Boolean = True): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Editable | Editable |
Return value
Returns a value: Integer
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 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
- 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
Related APIs
- THotPDF
- THPDFPage
- Contents