A PDF can carry other files inside it: the machine-readable XML of an electronic invoice, the spreadsheet behind a report, the source of a drawing. This tool reads the list of files attached to the document and returns each one as its own download under its original name. If the PDF has no attachments, it tells you so.
How to use it
- Drop the PDF that carries the attached files on the page, or click to choose it.
- Click Extract attachments.
- Download each attached file from its own link.
- Open the files with the program for their type, for example a spreadsheet or XML viewer.
What is found and what is not
Two kinds of attachment are extracted. The first is the list that belongs to the document as a whole, the one a PDF viewer shows in its attachments panel. The second is a file pinned to a spot on a page, shown as a paperclip or pushpin icon. Each file comes back as it was stored, under its own name; one whose name has no usable extension is saved as .bin.
Pictures shown on the pages are not attachments; for those use Extract images. A pinned file stored with an unusual kind of compression is skipped, which is rare.
Electronic invoices
ZUGFeRD and Factur-X invoices are PDFs for people with an XML file for accounting software attached inside. Dropping such an invoice here gives you that XML as a separate file, ready to import or inspect. The PDF itself is not changed.
Limits and refusals
Up to 200 attachments are extracted from one PDF; a document holding more is refused. The extracted files together may not exceed 1 GB, which matters because an attachment is stored compressed and can be far larger than the PDF around it.
A protected PDF is refused until the protection is removed with Unlock PDF. To send a PDF on without its attachments, Sanitize PDF is the tool for cleaning a document before sharing.
Questions
How do I know whether a PDF has attachments?
Run it here: you either get the files or a message that the PDF has no attached files. Most PDF viewers also list attachments in a side panel, often marked with a paperclip.
How do I get the XML out of a ZUGFeRD or Factur-X invoice?
Drop the invoice PDF on this page and click Extract attachments. The XML file embedded in the invoice comes back as its own download, under the name it was stored with.
Does it extract a file attached to a page with a paperclip icon?
Yes. Files pinned to a page are extracted along with those in the attachment list of the document. A paperclip that is only a comment, with no file behind it, gives nothing to extract.
What kinds of file can come out?
Any kind, since a PDF can carry any file. Each is returned exactly as stored and is not converted or opened. Treat files from a PDF you do not trust as you would any attachment from a stranger.
Does extracting remove the attachments from the PDF?
No. You get copies, and your PDF is not altered. To produce a version without them, run the PDF through Sanitize PDF.
Are the extracted files kept on the server?
No. The PDF and everything extracted from it are deleted automatically within one hour.