Open-Source Libraries and Tools

Inofficial page on free Factur-X, Order-X and Deliver-X (and XRechnung) libraries and tools.

ZUGFeRD/Factur-X is a standard to embed machine readable XML in electronic invoice PDFs.

Libraries

Python

PHP

  • @gp has a factur-x library for PHP

  • horstoeko has MIT licensed PHP projects for ZUGFeRD, Order-X and e.g. a Visualizer

  • dealerweb/einvoice MIT licensed PHP library (pure PHP, no Java) to read, validate, visualize and create XRechnung, ZUGFeRD/Factur-X and Peppol BIS invoices in UBL and CII. Validates with the XML schemas and the Schematron rules of EN 16931, XRechnung and ZUGFeRD/Factur-X, and with the Peppol BIS 3.0 rules in an own implementation; reads the XML out of a ZUGFeRD/Factur-X PDF and writes the PDF/A-3 with the XML embedded.

C++

.net/ C#

Java

Typescript

  • E-invoice EU Typescript and CLI

  • @attestwire/en16931 TypeScript library (MIT, zero dependencies) to validate and generate EN 16931 XML: XRechnung in UBL and CII, Peppol BIS 3, and the Factur-X/ZUGFeRD CII payload. Reads the XML out of a Factur-X PDF; does not write the PDF.

Ruby

PDF tools

Creation

Validators

  • FNFE uses a odoo plugin which is based on VeraPDF and the CEN Schematron

  • The ZUGFeRD-community online validation is based on Mustang and embeds VeraPDF and the CEN Schematron as well

  • Philip Helgers open-sourve-validator Phive can validate almost any invoice XML, including XRechnung, unfortunately not covering PDF-hybrid formats. Plus he has published the Kaltblut Factur-X/ZUGFeRD Validator

  • The DealerWeb online validator (German, free) for XRechnung, ZUGFeRD/Factur-X and Peppol BIS is based on dealerweb/einvoice; it shows a readable view of the invoice and does not store the file. For a PDF it checks the embedded XML, not the PDF itself.

  • VeraPDF, validates PDF-A,

  • Exiftool allows to quickly check PDF/A meta data,

Official Sources

  • The ZUGFeRD Infopaket includes schema and schematron, example files, specs, codelist and a refererence (called technical appendix)

  • The CEN Schematron can be used to validate ZUGFeRD/Factur-X XML

Other tools

ZUGFeRD/Factur-X Creating

ZUGFeRD/Factur-X Consuming

  • Open-source homebanking application: Hibiscus

Display

Redaction

Miscellaneous