Extract Attachments from a PDF
A PDF can carry whole files inside it, and most readers either bury the panel that lists them or refuse to save them out. Drop the PDF here and every embedded file comes back as a download — with a note on what each one actually is, which is not always what its name claims.
Drop PDFs here
Several at once is fine — each is listed separately
What counts as an attachment
An attachment is a complete file stored inside the PDF's structure, listed in its embedded-files name tree. It is not the same thing as an image drawn on a page — a photograph in a report is page content, and Extract images is the tool for those. Attachments are files a PDF is carrying rather than showing.
Where they turn up in practice:
- Electronic invoices. ZUGFeRD and Factur-X are ordinary-looking PDF invoices with a machine-readable XML of the same invoice embedded inside. The XML is the part your accounting system wants, and this is how you get at it.
- Reports with their data. A chart is more useful with the CSV behind it, and embedding it keeps the two together.
- Signed and archival documents. PDF/A-3 permits arbitrary attachments, which is how regulated documents carry their own source material.
- Drawings and models. Engineering PDFs often embed the CAD file they were plotted from.
Why the contents are checked
Every attachment is examined for its magic number and the result is shown next to it. A file called
invoice.xml whose first bytes are %PDF is worth knowing about before you
hand it to a parser, and the extension inside a PDF is just a string somebody typed. Where the name
and the bytes disagree, the listing says so.
A PK header is flagged as a ZIP container rather than guessed at, because
.xlsx, .docx, .odt and .epub are all ZIP files
and the extension is the only thing separating them.
When nothing comes out
Most PDFs have no attachments at all, and an empty result usually means exactly that. The two other possibilities are worth ruling out: the file may be encrypted, in which case nothing inside it can be read until it is unlocked; or what you are after may be page content rather than an attachment, in which case Extract images or PDF to text is the tool you want.
The other direction
To put files into a PDF, use Attach files to PDF. The two tools round-trip: anything embedded there comes back out here byte for byte.
Privacy
100% client-side. The PDF is parsed and the attachments are unpacked in your browser. Nothing is uploaded — which matters here more than on most pages, because an embedded file is frequently the confidential part of the document. See the privacy policy.