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 behaviour

While Handled stays False and LinkOptions has the matching auto flag enabled, the view navigates or launches automatically once the event handler returns

Handlers run on the VCL main thread; navigation can therefore call modal dialogues 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