ConvertXFAToAcroForm

Forms, XFA conversion

Description

Converts supported XFA template fields into editable AcroForm fields while retaining dotted names, data-bound or default values, page placement, bounds, captions, required and read-only flags, and generated appearances

Text and password edits, multiline text, list and combo choices with export and display values, check boxes, push buttons, and signature fields are supported; positioned, top-to-bottom, and left-to-right containers plus explicit page breaks determine field placement

Conversion validates the template before mutation and rolls back fields plus newly created pages if a field cannot be created

Syntax

Function TPDFlib.ConvertXFAToAcroForm(Options: Integer): Integer;

Parameters

Options0 keeps the XFA packet; PDF_XFA_CONVERT_REMOVE_XFA removes it after successful conversion

Return values

0The document has no supported fields or conversion failed without leaving partial fields
> 0The number of newly created AcroForm fields