ImportFormDataFromXFDFString

Form fields

Description

Parses an XFDF (XML Forms Data Format) document and applies each <value> to the matching AcroForm field by full title. The parser accepts standard <fields> containers, nested <field> hierarchies for dotted names, namespace prefixes, flexible whitespace, single- or double-quoted attributes, CDATA, predefined XML entities, decimal or hexadecimal numeric character references, and <value-richtext> text fallback when a plain <value> is absent. The file variant decodes UTF-8 XFDF input before applying values

Syntax

Delphi

Function TPDFlib.ImportFormDataFromXFDFString(Const XFDF: WideString): Integer;

Parameters

XFDF / XFDFFileNameThe XFDF content as a string, or the path to an XFDF file

Return values

>= 0The number of fields whose value was set