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.

  • Quittio MIT licensed PHP library (PHP 8.3+, optional Laravel integration) to create, read and validate ZUGFeRD/Factur-X, XRechnung, UBL and Peppol BIS invoices based on EN 16931. Writes the PDF/A-3 with the XML embedded, validates with its own implementation of the EN 16931 and XRechnung business rules and, optionally, with the KoSIT validator and veraPDF. Documentation at quittio.dev.

C++

.net/ C#

Java

Typescript

  • E-invoice EU Typescript and CLI

  • node-zugferd A comprehensive TypeScript library for creating, validating, and parsing ZUGFeRD/Factur-X documents, currently supporting CII (Cross Industry Invoice) only.

  • @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.

  • eu-einvoice-reader TypeScript library (MIT) that parses XRechnung and ZUGFeRD/Factur-X (CII), Peppol BIS/UBL 2.1, FatturaPA, Facturae and KSeF FA(3) invoice XML into plain JavaScript objects, in the browser and in Node.js. It detects the format, pre-checks a subset of the EN 16931 and XRechnung business rules and opens .p7m (CAdES) and .xsig (XAdES) files.

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