THPDFHeadlessFormDataField
THPDFHeadlessFormDataValues = array of UnicodeString;
THPDFHeadlessFormDataField = record
Name: UnicodeString;
ValueKind: THPDFHeadlessFormDataValueKind;
Values: THPDFHeadlessFormDataValues;
NameValue: AnsiString;
RichText: UnicodeString;
end;
THPDFHeadlessFormDataFields = array of THPDFHeadlessFormDataField;
Name is the exact fully qualified Unicode field name; parent names and child names are joined by a period
ValueKind distinguishes absent, scalar Unicode text, an exact decoded PDF byte name and a Unicode text array; Values carries text payloads and NameValue carries the byte-name payload
RichText optionally carries an XHTML body from FDF RV or XFDF value-richtext; decoding derives a missing scalar value from the ordered rich content
Rich values require scalar text and the bounded native XHTML profile; ImportRichFormDataToFile regenerates genuine appearances using the supplied style font programs
The record and its field arrays or text arrays are independently owned snapshots; editing them does not mutate a loaded PDF until passed to ImportFormDataToFile
An absent value leaves the target unchanged; an empty text value clears a text field, while an empty array clears a choice field through FDF
XFDF has no distinct PDF name type and encodes an empty choice array as one empty value; the document adapter resolves that convention against actual choice export options