A PDF does not always have to contain everything directly on its pages. A project report, for example, may need the original Excel data used to generate its charts. An invoice may need supporting documents, while a technical report may need to include configuration files, logs, or other reference material. Instead of sending these files separately, they can be embedded directly in the PDF. There are two useful ways to do this. A file can be attached to the PDF as a whole, or it can be placed at a specific location on a page as an attachment annotation. This article shows how to handle both cases with Python. Document Attachments vs. Attachment Annotations Before adding a file, it helps to understand the difference between the two approaches. A document-level attachment belongs to the PDF itself. It does not appear in the visible page content. Users typically access it through the Attachments panel in a PDF reader. An attachment annotation , on the other hand, is placed on a particular...
A blog about Microsoft Office and PDF document development using .NET and Java.