ExportFormDataToXFDFString

Form fields

Description

Serialises terminal AcroForm field names and values to XFDF (XML Forms Data Format), the XML counterpart of FDF. The output declares the standard XFDF namespace, uses xml:space="preserve", XML-escapes field names and plain values, emits <value-richtext> XHTML for fields with an RV rich text value, and represents hierarchical AcroForm names with nested <field> elements such as Address.Name becoming <field name="Address"><field name="Name">...</field></field>. The file variant writes UTF-8 encoded XFDF bytes

Syntax

Delphi

Function TPDFlib.ExportFormDataToXFDFString: WideString;

Return values

String / 1The XFDF content (string variant) or 1 on successful file write
'' / 0No form data or no document loaded