Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Interactive Forms
   [Expand]Navigation
   [Collapse]Interactivity
     File Attachment
     Navigating and Viewing a Document
     Content Copying
     Document Rotation
     Zooming
     Printing
    Deployment
   [Expand]Examples
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

File Attachment

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:

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

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

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

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

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.

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

Expanded Save an attachment

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

The Save As dialog appears.

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.

Expanded See Also

How would you rate this topic?​​​​​​​