Open the XML in a ZUGFeRD or Factur-X PDF Invoice
A ZUGFeRD or Factur-X invoice is a PDF/A-3 with an XML file inside. How to save that XML in the browser or Acrobat Reader and read its key fields.
Eddocu team 6 min read

Short answer: a ZUGFeRD or Factur-X invoice is a PDF/A-3 with an XML file of the invoice data embedded as an attachment, usually named factur-x.xml, or zugferd-invoice.xml on older invoices. To see and save that XML, drop the PDF on Extract Attachments: the tool runs in your browser, uploads nothing and hands back the XML under its stored name. Adobe Acrobat Reader shows the same file in its Attachments side panel. A pure XRechnung is different: it is only XML, with no PDF at all.
Eddocu is the document editor we make, and Extract Attachments is our tool. The German e-invoicing rules below come from the Federal Ministry of Finance (BMF) questions and answers, and the format facts from the page of FeRD, the German e-invoice forum. None of this is tax advice.
What is inside a ZUGFeRD invoice
ZUGFeRD is a hybrid invoice format. A PDF/A-3 shows the invoice the way a person reads it, and an embedded XML file carries the same details in structured form for accounting software. FeRD describes ZUGFeRD as a free, cross-industry data format built on the European standard EN 16931. In France the same format is called Factur-X, and FeRD lists the two names together.
The XML sits inside the PDF the way an attachment sits in an email. An ordinary PDF viewer shows only the pages, so many recipients never notice it. Its name depends on the version:
- factur-x.xml for ZUGFeRD 2.1 and later and for Factur-X, the usual case today.
- zugferd-invoice.xml or ZUGFeRD-invoice.xml on invoices made to ZUGFeRD 1.0 and 2.0.
- xrechnung.xml from some programs that wrap the XRECHNUNG profile in a PDF.
For the German tax office the structured part is what counts. When the PDF view and the XML disagree, the BMF says the XML data prevail. So if you want to check an invoice, the XML is the part to look at, not only the pages.
Ways to get the XML, side by side
| Way | Install | File leaves your computer | Saves the XML | Shows the XML as an invoice |
|---|---|---|---|---|
| Eddocu Extract Attachments | No, in the browser | No | Yes | No, raw file |
| Adobe Acrobat Reader | Yes | No | Yes | No, raw file |
| pdfdetach (Poppler, command line) | Yes | No | Yes | No |
| Accounting or invoicing software | Usually | Depends on the vendor | Depends on the program | Yes, as a voucher |
The first three take the file out exactly as the PDF stores it. None of them lays the invoice data out as a readable invoice; accounting software and e-invoice viewers do that.
Save the XML in your browser with Eddocu
- Open eddocu.com/tools/extract-attachments in Chrome, Edge, Firefox or Safari.
- Drag the invoice PDF onto the page or choose it. The tool takes one PDF per run.
- Click Run. Every embedded file appears under its stored name, such as factur-x.xml.
- Save the XML on its own, or tick the box for a single ZIP first when the PDF holds several attachments.
The invoice is read inside the browser tab and is not sent to a server, which matters for a document full of names, addresses, bank details and amounts. Your PDF is left unchanged, and the XML comes out with the exact content the issuer embedded. Files attached to a comment on a page are found too. If the PDF has no attachment, the page says so instead of giving you an empty file, and then it is a plain PDF rather than ZUGFeRD.
The Eddocu apps for Windows, Mac and Linux have the same tool offline. View Metadata tells you beforehand how many attachments a PDF has.
Save the XML with Acrobat Reader
Adobe's help explains how to turn on the attachments panel: View, Show/Hide, Side panels, Attachments. The panel lists every embedded file. Right-click factur-x.xml to open it or save it to a folder you choose. Some Acrobat versions ask before they open a file that is not a PDF, because Adobe treats attachments with caution by default.
Other ways that cost nothing
- pdfdetach comes with the Poppler utilities, often already on Linux and installable on a Mac or Windows.
pdfdetach -list invoice.pdflists the attachments andpdfdetach -saveall invoice.pdfwrites them to the current folder. - Your accounting software. Programs that process e-invoices read the XML themselves on import and show the lines as a voucher. If all you want is to check the data, that is often the shortest route.
- Online viewers from other companies. They present the invoice nicely but usually upload the file to their server. Read how long they keep it before you use one.
How to read the XML
Any text editor opens an XML file: Notepad on Windows, TextEdit on a Mac. Dropped into a browser window, Chrome or Firefox shows it as an indented tree that is easier to scan. ZUGFeRD and Factur-X use the UN/CEFACT Cross Industry Invoice (CII) syntax, and the file starts with an rsm:CrossIndustryInvoice element. The key details are here:
| Detail | Element in the XML |
|---|---|
| Invoice number | ram:ID under rsm:ExchangedDocument |
| Invoice date | ram:IssueDateTime |
| Seller and buyer | ram:SellerTradeParty, ram:BuyerTradeParty |
| Total including tax | ram:GrandTotalAmount |
| Amount due | ram:DuePayableAmount |
| Payee IBAN | ram:IBANID |
Comparing these six values with the PDF page shows quickly whether the two parts match. If they don't, ask the issuer, because under the BMF guidance the XML is the one that counts.
XRechnung: XML with no PDF
XRechnung is the German standard for e-invoices to public authorities, and businesses use it with each other too. Unlike ZUGFeRD it carries no PDF view: you receive a single .xml file, in UBL or CII syntax. The BMF notes that you need separate software to display it and points to the tax administration's free e-invoice viewer on the ELSTER portal. Extract Attachments does not help with an XRechnung, since there is nothing to take out: the file already is the XML.
The German rules since 2025
- Receiving: since 1 January 2025, businesses in Germany must be able to receive e-invoices. The BMF says an email inbox is enough for that.
- Issuing in 2025 and 2026: a transition period. Paper is still allowed, and a plain PDF by email only with the recipient's consent.
- Issuing in 2027: businesses with a prior-year turnover of up to 800,000 euros may keep issuing other invoices until the end of 2027.
- From 2028: the transition periods are over and e-invoices are required of everyone.
The BMF counts ZUGFeRD as an e-invoice from version 2.0.1, except the MINIMUM and BASIC-WL profiles. A plain PDF with no XML is not an e-invoice but an "other invoice". The structured part has to be kept intact in its original form for eight years. So archive the whole ZUGFeRD PDF as it arrived, not only the extracted XML or a printout.
Where other tools are better
- Showing the invoice data as an invoice: Eddocu gives you the XML as a file and does not render it. Accounting software and e-invoice viewers are built for that.
- Checking that an invoice meets the standard: Eddocu does not validate e-invoices against EN 16931 or the XRechnung rules.
- Creating ZUGFeRD invoices: that is your invoicing software's job. Attaching an XML to a PDF afterwards does not make it valid ZUGFeRD.
Don't edit an invoice you received in a PDF editor either. A changed page no longer matches the XML, and the XML is what counts anyway.
Facts checked on 4 December 2026: the BMF questions and answers on e-invoicing, ZUGFeRD at FeRD, the e-invoice viewer on ELSTER and Adobe's help on attachments. What Extract Attachments does we read in its code in the native document engine.
FAQ
How do I tell whether my PDF is a ZUGFeRD invoice?
By its embedded attachment. If Acrobat's attachments panel or our tool shows a file such as factur-x.xml, it is a hybrid invoice. With no attachment it is an ordinary PDF.
Can I get the XML out on an iPhone or Android phone?
Yes, in the browser. Open Extract Attachments in Safari or Chrome, pick the invoice from your files and save the XML.
Do I have to archive the XML separately?
No. What must be kept is the structured part in its original form, and the original PDF contains it. Archive the file as it arrived.
Why won't my XRechnung open as a PDF?
Because it has none. An XRechnung is XML only; to display it you need a viewer such as the tax administration's or your accounting software.


