THotPDF.ApplyXFAAsAcroForm Method
Method summary: THotPDF.ApplyXFAAsAcroForm Method
Declaration
function ApplyXFAAsAcroForm(const XDPBytes: TBytes; Editable: Boolean = True): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
XDPBytes | Bytes |
Editable | Editable |
Return value
Returns a value: Integer
Usage notes
Physical XFA pagination preserves supported empty trailing pages and ordered terminal break requests from the original current page, keeps existing document pages, and restores the original current-page selection during cleanup
Supported declared property classes use schema defaults, including Courier at 10pt and a 0.5pt edge width; explicit fractional font and border measurements retain their precision in native PDF appearance and border dictionaries
- Use this API in the XFA import and flattening workflow before the affected page, resource, field or catalogue 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
Related APIs
Legacy radio groups with repeated export values preserve parent read-only state whilst enabling RadiosInUnison; see legacy XFA radio buttons for grouping and member behaviour