Get Attachments from a PDF Document

Extract Particular Attachment from PDF File

To get an individual attachment from the EmbeddedFiles collection, use its index value. The index represents the specific number (in the collection) of the file to be fetched. This way, you get a FileSpecification object. Once the object is available, retrieve either all the file’s properties or the file itself.

The following code snippet shows you how to get an individual attachment from the PDF document.