Skip to main content
A newer version of this page is available. .

File Attachment

  • 2 minutes to read

This document introduces the file attachment feature and describes actions that can be performed on attachments in the PDF Viewer.

The document consists of the following sections:

Overview

An attachment is a file that is attached to a PDF document. The PDF Viewer displays the attachments in the Attachments panel of the navigation pane.

Attachment

Note

Use the PDF Document Processor if you wish to generate a PDF document and attach a file to it. For more information, see the How to: Attach a File to a Document example.

The Attachments panel can contain multiple attachments in any format (that is, images, text files, PDFs).

Open an attachment

You need to have an application supporting the corresponding file format on your computer to open a file attachment. To view an attachment, do one of the following:

  • double-click the attached file;

    or

  • select the file and click the “Open file in its native application” button in the Attachments panel.

    OpenAttach

The Security Warning message appears. It warns you that the PDF Viewer will use an external application to open the attached file.

AttachmentWarning

Click Yes to open the attached file, otherwise click No.

The image below shows the “player.png” image that was opened in the Photos application.

AttachmentContent

You can customize the attachment opening behavior (that is, to hide the Security Warning message box) by handling the PdfViewer.FileAttachmentOpening event.

Save an attachment

To save attachments to your disk, select the file and click the “Save attachment” button, as shown below.

ClickSaveAttachment

The Save As dialog appears.

SaveAttachmentToDisk

Choose the file attachment location on the disk, specify the file name, and click Save.

You can also customize a navigation pane where the Attachments button is located. For more information, refer to the Navigation Pane document.

See Also