TdxPDFCustomViewer.OnAttachmentSave Event
Enables you to respond to an attempt to save a file attached to the opened PDF document.
Declaration
property OnAttachmentSave: TdxPDFViewerOnAttachmentActionEvent read; write;
Remarks
This event occurs before the “Save As” dialog appears every time a user clicks:
The active “Save Attachment” button on the Attachments page of the Navigation pane;
The “Save Embedded File to Disk…” item in the context menu invoked for a file attachment annotation in the opened document or for a file listed on the Attachments page.
Pass True as the AHandled parameter within an OnAttachmentSave event handler to forbid users to save all or only specific file attachments via the “Save As” dialog. You can also implement a custom attachment save routine to expand available attachment save options.
Refer to the TdxPDFViewerOnAttachmentActionEvent type description for detailed information on all parameters accessible within an OnAttachmentOpen event handler.