The right module for the job.
XML and the official rules are part of the core. Add PDF, rendering, JSON, the browser viewer, or the command line when you need them.
What Paniolo can do
| Document | Formats | Write | Read | Validate | Embed in PDF/A-3 |
|---|---|---|---|---|---|
| Invoice and credit note (EN 16931, XRechnung) | UBL 2.1 Invoice / CreditNote, CII D16B | yes | yes | XSD, EN 16931, XRechnung (KoSIT, packaged) | yes (Factur-X) |
| XRechnung extension | UBL Invoice (sub invoice lines, third party payments) | yes | yes | KoSIT extension scenario | – |
| Factur-X / ZUGFeRD 2.x hybrid invoice | PDF/A-3 with CII; MINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED, XRECHNUNG | yes | yes | container, PDF/A¹, XML by profile (FeRD, packaged) | yes |
| French invoice EXTENDED-CTC-FR (XP Z12-012) | CII | yes | yes | EXTENDED XSD, EXTENDED-CTC-FR and BR-FR (FNFE-MPE, packaged) | – |
| ZUGFeRD 1.0 invoice | XML or PDF | migrate to ZUGFeRD 2 | yes | ZUGFeRD 1.0 XSD and Schematron, outdated warning | migration |
| Order, order change, order response | Order-X 1.0 (BASIC, COMFORT, EXTENDED) | yes | yes | Order-X rules (packaged) | yes |
| Despatch advice (delivery note) | UBL 2.1 DespatchAdvice (Peppol BIS 3, 1Lieferschein), CIDA | yes | yes | UBL XSD, Peppol rules² (UBL) | yes (CIDA) |
| Quotation (Angebot) | No XML syntax; visual PDF/A-3b and toInvoice() | PDF only | no | model checks | – |
| All of the above models | JSON (storage format) | yes | yes | model checks | – |
Choose your modules
| You want to … | Add |
|---|---|
| write, read, and validate XRechnung / EN 16931 XML, Order-X, despatch advices | paniolo |
| create, read, render, or validate PDFs (Factur-X / ZUGFeRD, Order-X, CIDA), also without a PDF of your own | paniolo-facturx (includes paniolo) |
| check the PDF/A conformance of these PDFs as well | paniolo-facturx and paniolo-pdfa |
| store the model as JSON | paniolo-json |
| show documents in the browser, or write them as standalone HTML | paniolo-visualizer (web component, no dependencies) |
| validate, read, write, and convert documents from shell scripts | the executable jar of paniolo-cli (GitHub Packages, not Maven Central) |
| migrate a Mustang integration step by step | paniolo-mustang (with your Mustang library) |
| use only a part, e.g. only the UBL writer, without the facade | the classes of paniolo, e.g. UblInvoiceWriter |
All artifacts use the group ID io.github.nalukit. The optional PDF modules are found at
runtime through ServiceLoader; there is nothing to configure. A PDF method called without
the module raises an IllegalStateException that names the missing dependency.
Invoices & credit notes
Read and write UBL 2.1 and CII D16B at document, party, and line level. Validate EN 16931 and XRechnung 3.0.2 with the packaged KoSIT rules; documents stating XRechnung 1.2 to 2.3 are checked against the last release of their version. The XRechnung extension adds sub invoice lines and third party payments.
Hybrid invoices
Write, read, and validate Factur-X / ZUGFeRD PDF/A-3 in all six profiles with the packaged
FeRD rules (ZUGFeRD 2.5.2 / Factur-X 1.09.2), with attachments and producer detection.
embedXml embeds existing CII byte for byte. ZUGFeRD 1.0 is read, validated, and
migrated to ZUGFeRD 2.
Profile EXTENDED & France
EXTENDED adds further parties, structured payment terms, logistics service charges, advance payments, sub-lines, and product details. The French profile EXTENDED-CTC-FR is written, read, and validated with the EXTENDED-CTC-FR Schematron and the BR-FR rules (France_RFE 1.4.0.04).
Orders & delivery notes
Order-X 1.0 orders, order changes, and responses (BASIC, COMFORT, EXTENDED with the COMFORT content) with the packaged official rules. Despatch advices after Peppol BIS 3, as 1Lieferschein, and as CIDA delivery notes in XML and PDF/A-3. Quotations (Angebot) with standard and optional lines are rendered as PDF and turned into the invoice of the accepted offer.
Reading received documents
Strict by default; ReadMode.LENIENT reads documents whose amounts the model does
not reproduce and reports each deviation. importInvoice keeps the original XML
and stated amounts, and export returns the original or the normalized document.
Validation findings
Findings carry rule ID, severity, XPath, and stage, plus an archivable XML report. Optional:
calculation check (PANIOLO-CALC-*), rule statistics for audits, an acceptance
policy for blocking warnings, and Mustang-compatible reporting of unknown documents.
Rendering & viewing
paniolo-facturx renders DIN 5008 invoices, orders, delivery notes, and
validation reports as PDF/A-3b in German, English, and French, with logo, own fonts, accent
color, and footer. paniolo-visualizer shows documents in the browser with
<paniolo-viewer>.
Command line & migration
paniolo-cli validates, inventories, reads, converts, renders, and visualizes
documents in scripts and CI, with exit codes and JSON output. paniolo-mustang
maps Mustang invoices to the model and names every value it cannot carry over.
Know the boundaries
- Rendered documents can be customized with logo, fonts, colors, and footer; for your own designs you provide the visual PDF/A document and Paniolo embeds the XML. Arbitrary PDFs are not converted to PDF/A.
- Transmission through Peppol access points, email, or portals such as ZRE or OZG-RE is outside the library, as are recipient-specific requirements beyond the official rules.
- Official Peppol Despatch Advice rules must be supplied separately.
- New ZUGFeRD 1.0 documents are not written; XRechnung 1.0 and 1.1 are validated against the current rules.
- CIDA validation is unavailable because no schema is published. Some Order-X EXTENDED and despatch advice details are outside the model.
- Java versions below 21 are not supported.