vcl-dxpdfviewer-d8e68759.md
The procedural type for attachment action events.
TdxPDFViewerOnAttachmentActionEvent = procedure(Sender: TdxPDFCustomViewer; AAttachment: TdxPDFFileAttachment; var AHandled: Boolean) of object;
| Name | Type | Description |
|---|---|---|
| Sender | TdxPDFCustomViewer |
Provides access to the PDF Viewer control that raised the attachment action event.
Cast the Sender parameter to the TdxPDFViewer class to access all public API members.
| | AAttachment | TdxPDFFileAttachment |
Provides access to the target attachment.
Use this parameter to identify specific document attachments.
|
| AHandled | Boolean | False Default. The Sender PDF Viewer control executes the built-in command associated with the current attachment action.TrueBuilt-in attachment action routines are disabled. Use this option if you need to implement a custom attachment action or prevent users from interacting with specific attachments. |
An attachment action event occurs every time a user triggers an attachment open or save command.
The following events reference the TdxPDFViewerOnAttachmentActionEvent procedural type:
TdxPDFCustomViewer.OnAttachmentOpenEnables you to respond to an attempt to open a file attached to the opened PDF document.TdxPDFCustomViewer.OnAttachmentSaveAllows you to prevent users from saving certain PDF document attachments. See Also