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 one-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

Example

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

See Also

OnFormUriAction, PerformNamedAction, FormHostCallbacks