1. Home
  2. Guides
  3. Validate ZUGFeRD / Factur-X

Validate a ZUGFeRD or Factur-X PDF and fix the usual errors

A hybrid invoice can fail in the PDF, in the metadata that ties the PDF to the XML, or in the XML itself. The free validator checks all of it in one go and shows which layer failed. Here is what each layer checks and how to fix what goes wrong.

Updated 21 October 2026 · Last reviewed 20 October 2026

In brief

A ZUGFeRD or Factur-X PDF is checked in four layers: PDF/A-3 conformance (veraPDF), the XMP metadata and attachment, the XML schema of the profile, and the Schematron business rules including EN 16931 (Mustang). An error in any layer makes the file invalid. The free validator runs all four in the browser and stores nothing.

The four layers

LayerChecksEngine
1. PDF/A-3The PDF conforms to ISO 19005-3veraPDF
2. Hybrid metadataXMP declares the Factur-X/ZUGFeRD data; the attachment is there with the right name and relationshipMustang
3. XML schemaThe XML matches the XSD of its profileMustang
4. Business rulesSchematron of the profile, including the EN 16931 rulesMustang
curl https://validate.invoir.dev/api/v1/validate \
  -H "Authorization: Bearer inv_YOUR_KEY" \
  -F file=@invoice.pdf

The JSON report has one entry per layer, in that order, each with its findings (API docs). Files are processed in memory and never stored.

PDF/A-3 errors

The file is not PDF/A-3 at all
A normal PDF, or PDF/A-1 or PDF/A-2 (which don't allow arbitrary embedded files). The XMP must declare pdfaid:part 3, and the file must actually conform. Most PDF libraries need an explicit PDF/A-3 mode.
Fonts not embedded
The most frequent PDF/A error. Every font, including Helvetica or Arial used by default, must be embedded. Use an embedded TrueType/OpenType font in your template.
No output intent
PDF/A needs an output intent with an ICC colour profile (usually sRGB) whenever device colours are used.
Forbidden features
Encryption, JavaScript, external content references and some transparency settings are not allowed in PDF/A.

Metadata and attachment errors

No Factur-X extension schema in the XMP
PDF/A requires custom XMP properties to be described. The Factur-X properties (document type INVOICE, file name, version, conformance level) need their extension schema block in the metadata.
Conformance level doesn't match the XML
The XMP says EN 16931 but the XML's guideline ID says BASIC, or the other way round. Write both from the same setting.
Wrong attachment name
Current versions expect factur-x.xml (and xrechnung.xml for the ZUGFeRD XRECHNUNG profile); ZUGFeRD 2.0 used zugferd-invoice.xml. The name in the XMP must match the attachment.
Attachment not associated
PDF/A-3 wants the embedded XML listed as an associated file of the document, with an AFRelationship and a MIME type (text/xml).

XML errors

Schema errors for the profile
Each profile has its own XSD. An element that is fine in EN 16931 can be forbidden in BASIC or BASIC WL. Declare the profile that matches the data you write.
CII details
Dates as <udt:DateTimeString format="102">20261019</udt:DateTimeString>; elements in the schema's order; the rsm, ram, udt and qdt namespaces of the current CII version.
EN 16931 business rules
Mostly totals and VAT: BR-CO-15, BR-CO-13, BR-CO-17, BR-S-08; and identification: BR-S-02 (seller VAT ID), BR-CO-26. Fixes are on the EN 16931 page.

What no validator checks

  • Whether the PDF and the XML say the same thing. Render both from the same data. In Germany the XML prevails when they differ (BMF FAQ, question 12a).
  • Whether the profile is enough. A MINIMUM or BASIC WL file can be perfectly valid and still not count as an e-invoice in Germany (question 7). Use EN 16931.

To look at the XML inside a PDF, use the embedded XML viewer or POST /api/v1/extract. Background on the formats: ZUGFeRD, Factur-X.

Frequently asked questions

What is the most common PDF/A-3 error?
Fonts that are not embedded. Every font must be embedded, including the Helvetica or Arial many libraries use by default.
What must the embedded XML file be called?
factur-x.xml in current versions (xrechnung.xml for the ZUGFeRD XRECHNUNG profile); ZUGFeRD 2.0 used zugferd-invoice.xml. The name in the XMP must match the attachment.
Does the validator check that the PDF and the XML show the same data?
No validator does. Render both from the same data; in Germany the XML prevails when they differ (BMF FAQ, question 12a).
My MINIMUM file is valid. Is it an e-invoice?
Not in Germany: a MINIMUM or BASIC WL file can be valid for its profile and still not count as an e-invoice (BMF FAQ, question 7). Use the EN 16931 profile.
How can I see the XML inside a PDF?
Use the embedded XML viewer in the browser, or POST /api/v1/extract over the API.
Check a file in your browser, or over the API.

The free validator runs the official rules (KoSIT, CEN and Peppol Schematron, Mustang, veraPDF) and lists every error with its rule ID. Nothing is stored. The same check is one HTTP call with a free API key: 25 documents a month, no credit card.

Sources

More guides