How to extract attached files from a PDF
Some PDFs carry other files inside them, like the XML data in an e-invoice. The Extract attachments tool saves each one with its original name.
Step by step
- Open Extract attachments and add your PDF.
- Select Extract attachments.
- Save the file, or the ZIP when there are several.
Good to know
- Open unknown attachments with the same care as an email attachment.
- A paperclip in your viewer often means there are attachments.
- The PDF itself is not changed.
- Use Remove hidden data to strip attachments instead.
Files hidden inside a PDF
A PDF can carry other files inside it as attachments: spreadsheets, images, source documents, XML data for electronic invoices. Many readers show them only in a small paperclip panel, so people often do not realise they are there.
What the tool does
It lists every embedded file with its name and size and lets you save them all in a zip. This is useful for e-invoices that contain machine-readable data, for portfolios that bundle several documents, and for recovering supporting files someone attached.
Safety
Treat extracted files like any download from an unknown source: scan them before opening, and be wary of executables and macro-enabled documents. Extraction does not open or run the files. If the PDF has no attachments, the tool says so.
Where attachments come from
Attachments get into PDFs in several ways. Electronic invoices that follow standards such as Factur-X and ZUGFeRD carry an XML file with the invoice data inside an ordinary-looking PDF, so accounting software can read the numbers without retyping them. PDF portfolios bundle several documents, such as a contract and its schedules, into one file. Some people attach a spreadsheet or a source document to a report so that readers can check the figures, and some authoring tools attach the original file that a PDF was created from.
Step-by-step: finding what is inside
Start by running the tool and reading the list it shows: each entry has a file name and a size. A file called factur-x.xml or invoice.xml is typically an e-invoice. A large file with a Word or Excel extension is usually a supporting document. If the list is empty, the PDF genuinely has no attachments, which is common, because most PDFs do not carry any. Note that images shown on a page are not attachments; to pull those out, use the Extract images tool instead.
Opening and checking extracted files safely
Save the zip, extract it into a new folder and look at the names and extensions before opening anything. Treat a file you did not expect with the same caution as an email attachment from a stranger: executable files, scripts and macro-enabled Office documents deserve suspicion, and it is sensible to scan the folder with your security software first. An XML invoice can be opened in a text editor to read its fields, or imported into accounting software. If an extracted file will not open, check that its extension matches its type, since a PDF can store any name.
Extra tips
If you need to keep the attachments but share a lighter file, extract them first, then use Remove hidden data to strip them from the copy you send. If you receive a PDF that mentions an attached spreadsheet but you cannot see it in your viewer, look for the paperclip or attachments panel, which some viewers hide by default. Extraction does not alter the PDF, so you can run it as often as you like.
Frequently asked questions
What if nothing is found?
The tool says the PDF has no attached files.
Is it private?
Yes. Everything runs in your browser.