In This Topic
Extracting embedded files (attachments) from a PDF document
In This Topic
You can attach other files to a PDF document in two ways. That said, you can also extract those embedded files from your PDF document in two different ways. Here is how to do it using GdPicture.NET.
- Embedded files can be included as a whole directly to a PDF document; these are named File Attachments. They should be located in the Attachments panel in viewer applications. This simple piece of code shows you how to find out the number of attached files and how to extract the first one into a single file.
- Embedded files can also be attached as File Attachment Annotations as part of a particular comment located somewhere on the page. Such a comment appears on that page with a file attachment icon, and you should find the corresponding file in the Comments panel in viewer applications. This example demonstrates how to find out attached files in comments and how to extract them subsequently.