PDFium Delphi Component Docs

OnFormValueChange event

Component: TPdf  ·  Unit: PDFium
Fires after the value of the focused form field changes

Syntax

property OnFormValueChange: TPdfFormValueChangeEvent read FOnFormValueChange write FOnFormValueChange;

Description

OnFormValueChange fires after the interactive form layer applied a value change to the focused field, for instance after typing, pasting, or a script-triggered update

The component clears the page scene cache before dispatching and re-dispatches the event whilst the change triggers further changes, bounded to eight rounds, so cascading field recalculations converge

Remarks

    • Handler signature: procedure(Sender: TObject) of object
    • Read the new value through FocusedFormFieldValue or the typed FocusedFormField* properties inside the handler
    • Views refresh automatically after the dispatch settles; no manual UpdatePage is required for value-only changes

Example

procedure TMain.Pdf1FormValueChange(Sender: TObject);
begin
  Statusbar1.SimpleText := Pdf1.FocusedFormFieldValue;
end;

See Also