Add Attachment to PDF
Contents
[
Hide
]Attachments can contain a wide variety of information and can be of a variety of file types. This article explains how to add an attachment to a PDF file.
To add an attachment to a PDF document:
- Create a FileSpecification object that contains the file you want to attach, and file description.
- Add the FileSpecification object to a Document object’s EmbeddedFiles collection using the add(..) method. The EmbeddedFiles collection contains all the attachments added to a PDF file.
The following code snippet shows how to add an attachment to a PDF document.