THotPDF.FlattenLoadedXFA Method

Provides the FlattenLoadedXFA 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

NamePurpose
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; font sizes and graphic or widget edge widths preserve fractional PDF-point values

Related APIs