Embed invoice XML in PDF/A-3b
Attach existing UTF-8 invoice XML as an associated file in an existing PDF/A-3b document.
Choosing by use
| Use | What to do | What to check |
|---|---|---|
| Package a visual invoice with its XML | Choose the existing PDF/A-3b and the UTF-8 XML for the same invoice. | Compare invoice numbers and totals between the PDF and XML before sharing. |
| Prepare an invoice copy for archiving | Embed the XML as an associated file, then download the new PDF/A-3b. | Check the attachment in a PDF reader and validate the new PDF with veraPDF. |
Questions and answers
Can I start from an ordinary PDF?
Start with an existing PDF/A-3b. This tool adds the associated XML file and keeps the XML bytes as supplied.
Does this create a Factur-X or ZUGFeRD invoice?
Attaching XML alone does not create a compliant invoice. Those formats also require specific XML schemas, filenames and PDF metadata. Use veraPDF to validate PDF/A, and a separate Factur-X or ZUGFeRD validator to check invoice requirements before issuing one.
Factur-X / ZUGFeRD documentation · Validate PDF/A with veraPDF