PDFium Delphi Component Docs

OnAnnotationLinkClick event

Component: TPdfView  ·  Unit: PDFium
Fired when the user clicks a /Annot Subtype Link before LinkOptions auto-handling runs

Syntax

property OnAnnotationLinkClick: TPdfViewAnnotationLinkClickEvent;

Description

Fired when the user clicks a /Annot Subtype Link before LinkOptions automatic handling runs. Set Handled to True to suppress the built-in default behavior

When Handled remains False and LinkOptions has the matching auto flag enabled, the view performs the navigation or launch automatically after the event handler returns

Handlers run on the VCL main thread; navigation can therefore call modal dialogs or update form controls inline

Remarks

Example

procedure TForm1.PdfView1OnAnnotationLinkClick(Sender: TObject; const Link: TLinkAnnotation; var Handled: Boolean);
begin
  // inspect Link and decide whether to navigate
  Handled := True;
end;

See Also

LinkOptions, OnWebLinkClick, LinkAnnotation