PDFium Delphi Component Docs

FormField property

Component: TPdf · Unit: PDFium
property FormField[Index: Integer]: WString read GetFormField write SetFormField;

Reads or writes a field value using a zero-based widget index on the current page; use FormFieldInfo for a metadata record

With FormFill enabled, reading resolves inherited values from the terminal field; text and combo-box assignment uses the native editor and commits the shared field value and appearance

Read-only fields reject assignment; a rejected or altered text assignment attempts to restore its original value and raises an error

Inherited widgets require FormFill for reading and a supported native editor for assignment; direct combined widgets retain their raw dictionary fallback for other field types

Values are bounded to 16 MiB of UTF-16 bytes for reading and 8,388,608 UTF-16 units for assignment; all page scene caches are invalidated after a successful assignment because fields may own widgets on multiple pages

Call GenerateFormAppearances before flattening externally edited or initially missing appearances, then save and reopen to verify persistent values

FormFieldInfo, GenerateFormAppearances, FPdfFormMerge