ImportFormDataFromFDFString

Form fields

Description

Parses an FDF (Forms Data Format) /Fields array and applies each field value to the matching AcroForm field by title. Each FDF entry has the form << /T (FieldName) /V (FieldValue) >>; the parser inverts the PDF literal-string escaping (parentheses, backslash, and \ddd octal). This closes the previous asymmetric gap where ExportFormDataToFDFString existed but no import path did.

Syntax

Delphi

Function TPDFlib.ImportFormDataFromFDFString(Const FDF: AnsiString): Integer;

Parameters

FDF / FDFFileNameThe FDF content as a string, or the path to an FDF file

Return values

>= 0The number of fields whose value was set (matched by title)