PDFium Delphi Component Docs

OnXfaGotoUrl property

Component: TPdf  ·  Unit: PDFium
Fired when a link navigation action is triggered within a dynamic XFA form

Syntax

property OnXfaGotoUrl: TPdfXfaGotoUrlEvent read FOnXfaGotoUrl write FOnXfaGotoUrl;

Description

Occurs when an element or script in an XFA layout requests a page navigation action to a specific destination URL

Parameters

SenderThe component that triggered the event
UrlThe target web address or anchor destination URL string
HandledSet this to True to confirm the host has managed the navigation, preventing any default handlers

Remarks

Example

procedure TForm1.Pdf1XfaGotoUrl(Sender: TObject; const Url: WString; var Handled: Boolean);
  ShellExecute(0, 'open', PChar(string(Url)), nil, nil, SW_SHOWNORMAL);
  Handled := True;
end;

See Also

OnJavaScriptResponse OnXfaUriAction