THPDFHeadlessFormDataField

THPDFHeadlessFormDataValues = array of UnicodeString;
THPDFHeadlessFormDataField = record
  Name: UnicodeString;
  ValueKind: THPDFHeadlessFormDataValueKind;
  Values: THPDFHeadlessFormDataValues;
  NameValue: AnsiString;
  RichText: UnicodeString;
  HasFlags, HasSetFlags, HasClearFlags: Boolean;
  Flags, SetFlags, ClearFlags: Cardinal;
end;
THPDFHeadlessFormDataFields = array of THPDFHeadlessFormDataField;

Name is the exact fully qualified Unicode field name; parent names and child names are joined by a full stop

ValueKind distinguishes absent, scalar Unicode text, an exact decoded PDF byte name and a Unicode text array; Values carries the 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

Encode the field model with HPDFEncodeHeadlessFormData, then pass the resulting bytes to ImportFormDataToFile to publish an independent candidate without changing the source document object

Initialise the complete record with Default(THPDFHeadlessFormDataField) before assigning its members, and rebuild native consumers for the expanded record layout

For FDF, each Has member distinguishes an absent flag operand from an explicit zero; a non-null Ff replaces the full mask, otherwise SetFf is applied before ClrFf

Flag values preserve all 32 bits as Cardinal, including reserved bits; XFDF has no flag operand mapping in this profile

Headless FDF field flags describes ordered duplicates, parent inheritance, original read-only authority and transactional appearance updates

An absent value preserves the current field value whilst supplied flag operands can still change its mask and appearance; an empty text value clears a text field, whilst 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 the actual choice export options

Value kinds · Interchange overview