Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFCustomViewer.OnAttachmentSave Event

In This Article

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

#Declaration

Delphi
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.

See Also