PDF/A-3 and e-invoicing

How hybrid invoices like ZUGFeRD put machine-readable XML inside an archival PDF.

A hybrid e-invoice is one file for two readers: a person sees the invoice, an accounting system reads the embedded XML. PDF/A-3 is the first PDF/A part that allows embedding files of any format.

Why PDF/A

Invoices must be kept for years (often ten in the EU), and the visual document is usually the legal one. It has to render correctly at the end of that period, which is exactly what PDF/A guarantees.

Formats

All of them share one semantic model, EN 16931. Only the first is a PDF.

Format Shape Used in
ZUGFeRD / Factur-XHybrid: PDF/A-3 with embedded CII XMLGermany and France. One specification, two names.
XRechnungPure XML (UBL or CII)German public sector.
FatturaPAPure XML via a state exchange systemItaly.
Peppol BIS BillingPure XML (UBL) over the Peppol networkCross-border, EU and beyond.

What the PDF must contain

  • Everything PDF/A-2 requires: embedded fonts, an OutputIntent, metadata, no encryption.
  • The XML as an embedded file, linked from the document catalog.
  • An AFRelationship on it (/Data, /Source or /Alternative).
  • An XMP extension schema naming the profile, version and attachment filename.

A perfect XML payload doesn't help if a font isn't embedded: the file fails PDF/A-3 and gets rejected.

Two checks

  1. The container Is it valid PDF/A-3 with the attachment and metadata the profile requires?
  2. The payload Is the XML valid against its schema and the EN 16931 business rules?

gopdfrab today

gopdfrab verifies and converts PDF/A-1b and PDF/A-2b. PDF/A-3 is on the roadmap. The checks invoices fail most often, such as unembedded fonts, missing OutputIntents and metadata mismatches, already apply and carry over to PDF/A-3.

FAQ

Why do e-invoices use PDF/A-3?

It is the first PDF/A part that allows embedding files of any format, so one file can be both the readable invoice and the XML record.

Is ZUGFeRD the same as Factur-X?

Yes, the same specification under a German and a French name. Both embed CII XML in a PDF/A-3 file.

How is XRechnung different?

XRechnung is pure XML, used by the German public sector. A ZUGFeRD file at the XRechnung profile carries XRechnung XML inside PDF/A-3.

Can gopdfrab validate a ZUGFeRD invoice?

Not yet. That needs PDF/A-3, which is on the roadmap. gopdfrab also does not validate the XML itself.