PDFium Delphi Component Docs

OnFormGoToAction event

Component: TPdf  ·  Unit: PDFium
Fires when a form field raises a go-to action

Syntax

property OnFormGoToAction: TPdfFormGoToActionEvent read FOnFormGoToAction write FOnFormGoToAction;

Description

OnFormGoToAction fires when the interactive form layer raises a go-to action. The handler receives the zero-based PageNumber, the native ZoomMode, the optional Positions array of view parameters, and a var Handled flag

Set Handled = True to perform the jump with host navigation, for instance routing it through a viewer that manages its own page cache

Remarks

    • Handler signature: procedure(Sender: TObject; PageNumber, ZoomMode: Integer; const Positions: TPdfSingleArray; var Handled: Boolean) of object
    • PageNumber is zero-based from the native layer, unlike the one-based page numbers used by TPdf.Page

Example

procedure TMain.Pdf1FormGoToAction(Sender: TObject; PageNumber, ZoomMode: Integer; const Positions: TPdfSingleArray; var Handled: Boolean);
begin
  PdfView1.PageNumber := PageNumber + 1;
  Handled := True;
end;

See Also