How to convert an XML e-invoice to a readable PDF
You were sent an invoice as an XML file and your accountant, boss or customer wants a PDF. Doing it safely means choosing a tool that does not send the invoice to a stranger’s server.
On this page
- From difficult file to readable document.
- Why you cannot just print the XML
- Three ways to get a PDF
- The PDF is not the invoice
- Batch export
- What a good PDF from an XML invoice should show
- Step by step on a Mac
- When a PDF is enough and when it is not
- Troubleshooting a failed export
- Sharing the result safely
- If the document does not display as expected
- Questions about this file type.
From difficult file to readable document.
Open the original XML
Choose the .xml file, or the .xml.p7m if it is signed, in EU Docs. The format (FatturaPA, UBL, XRechnung, CII and others) is detected on the device.
Check the readable invoice
Review seller, buyer, invoice number, dates, lines, tax and totals. Compare the amount payable with the source document before you pass the invoice on.
Export the PDF
Use the export action to create a readable PDF and share or print it.
Why you cannot just print the XML
An e-invoice XML contains fields, not a layout. Printing it from a text editor gives pages of tags, and a generic XML-to-PDF converter has no idea which element is the VAT amount. Invoice-aware software knows the standard’s field names and arranges them the way a person expects to read an invoice.
Three ways to get a PDF
Pick the route that fits how sensitive the invoice is.
| Route | Good for | Watch out for |
|---|---|---|
| Your accounting or ERP software | Invoices you already process there | May not be installed on your phone or when travelling |
| Online XML-to-PDF converter | Test files with fictional data | The invoice is uploaded to a third party |
| Local invoice reader such as EU Docs | Real invoices with bank and tax data | The PDF is a reading copy |
The PDF is not the invoice
In many countries the structured XML is the legal e-invoice, and a PDF generated from it is a convenience copy. Italy, for example, has required FatturaPA XML through the SdI platform since 1 January 2019, according to the European Commission’s country factsheet. Do not archive only the PDF where the rules require the original electronic file.
A PDF generated by EU Docs reflects the fields the app understands. It does not certify compliance and does not replace the source XML or a submission service.
Batch export
Check the results and retain every original XML.
What a good PDF from an XML invoice should show
Parties and their tax identifiers, invoice number and dates, currency, every line with quantity, unit price and tax category, the tax breakdown, the total and payment details. If the converter drops lines, merges tax categories or shows a different total, do not use its output.
EU Docs also surfaces the amount due, the due date and the IBAN in a payment card, and warns when a supplier’s IBAN differs from invoices saved in your dossiers, which is helpful before you pay.
Step by step on a Mac
Drag the XML onto the app or use Open in Finder. Review the invoice. Choose export, pick PDF, and save it next to the XML. For a signed .xml.p7m the app unwraps the signature envelope first, so you do not have to extract the XML yourself.
On iPhone and iPad the flow is the same through Files and the share sheet.
When a PDF is enough and when it is not
A PDF is enough for approvals, internal discussion, and sharing with someone who just needs to see the figures. It is not enough for importing into accounting software, for a tax audit that asks for the original electronic invoice or for any process that verifies the signature. For those, keep and send the XML.
If you are unsure, send both files and label the PDF as a reading copy.
Troubleshooting a failed export
If the app opens the XML but the layout looks incomplete, the file may use an extension or profile the app does not support. Confirm that the XML is well formed and that it is an invoice rather than a status message from a portal. Receipts and acknowledgements are separate files with their own structure.
If an XML file will not open at all, re-download it from the source and avoid opening and re-saving it in a word processor. A changed encoding or a stray character can make an otherwise correct invoice unreadable, and for a signed file it breaks the signature.
Sharing the result safely
A readable PDF still contains the same sensitive details as the XML: names, tax numbers, bank accounts and prices. Share it only with people who need it, and prefer sending through your usual secure channel. EU Docs does not upload the file, but anything you share afterwards leaves the device under your control.
If the document does not display as expected
Keep the original filename and check that the download is complete. Renaming XML, P7M or ASiC files to PDF does not convert them. If a signed container opens, check the type of its extracted payload: it may be an invoice, PDF or another format requiring its own reader.
For an invoice, compare the document identifier, supplier, currency, tax and total with the original fields. Report an unsupported format with its non-sensitive format/version details; avoid sending private documents unless you choose an appropriate support channel.
Authoritative references
Official specifications and public-sector documentation used to check the terminology in this guide.
Questions about this file type.
Can I convert FatturaPA XML to PDF on iPhone?
Yes. Open the XML or XML.P7M in EU Docs and export the readable PDF.
Does the converted PDF contain the XML?
No. EU Docs creates a readable convenience PDF. Keep the original XML separately for accounting and archiving.
Is my invoice uploaded anywhere?
No. Opening, parsing and export run on the device, and the app has no document-upload workflow.