THotPDF.ApplyXFAAsAcroForm Method

Applies xfa as acro form processing inside the XFA import and flattening workflow. The method transforms text, form packets, validation profiles, or loaded PDF data while preserving public identifiers and caller-supplied resources

Declaration

function ApplyXFAAsAcroForm(const XDPBytes: TBytes; Editable: boolean= True): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
XDPBytesRaw byte payload embedded or validated by this API
EditableControls whether generated fields remain editable after the operation

Return value

Returns an Integer value

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

Related APIs

Legacy radio groups with repeated export values preserve parent read-only state while enabling RadiosInUnison; see legacy XFA radio buttons for grouping and member behavior