Skip to main content

TdxPDFCustomViewer.OnAttachmentOpen Event

Enables you to respond to an attempt to open a file attached to the opened PDF document.

Declaration

property OnAttachmentOpen: TdxPDFViewerOnAttachmentActionEvent read; write;

Remarks

This event occurs before the control invokes the external application to open a file attachment every time a user clicks:

  • The active “Open File” button on the Attachments page of the Navigation pane;

  • The “Open File” item in the context menu invoked for a file attachment annotation in the opened document or for a file listed on the Attachments page.

You can pass True as the AHandled parameter within an OnAttachmentOpen event handler to forbid users to open all or only specific file attachments in external applications. Refer to the TdxPDFViewerOnAttachmentActionEvent procedural type description for detailed information on all parameters accessible within an OnAttachmentOpen event handler.

See Also