PDFium Delphi Component Docs

FormField property

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

Reads or assigns a value by zero-based widget index on the current page; FormFieldInfo provides metadata instead

With FormFill enabled, reading resolves the terminal field's inherited value; text and combo-box assignments use the native editor to commit the shared value and appearance

Read-only fields refuse assignment; if text assignment is refused or altered, the original value is restored where possible and an error is raised

Inherited widgets need FormFill for reading and a supported native editor for assignment; directly combined widgets retain raw-dictionary fallback for other field types

Reading allows 16 MiB of UTF-16 data and assignment 8,388,608 UTF-16 units; successful assignment invalidates every page scene cache, since a field can own widgets on several pages

Regenerate externally edited or initially missing appearances with GenerateFormAppearances before flattening, then save and reopen to check that values persist

FormFieldInfo, GenerateFormAppearances, FPdfFormMerge