// readme

Factur-X and Order-X JS library

Generate, extract, parse and validate Factur-X / ZUGFeRD and Order-X e-invoices in TypeScript, using pdf-lib and libxml2-wasm.

Conforms to Factur-X 1.09 / ZUGFeRD 2.5 (the EN 16931 European e-invoicing standard, CII D22B).

๐Ÿ“– Read the full documentation โ†’

Features

  • ๐Ÿ“Ž Generate a PDF-A/3 invoice by embedding the XML into a PDF โ€” generate
  • ๐Ÿ“ค Extract the XML back out of a Factur-X / Order-X / ZUGFeRD PDF โ€” extract
  • ๐Ÿ” Parse an XML invoice into a fully-typed model โ€” xmlToInvoice
  • ๐Ÿงฑ Build a Cross Industry Invoice model and serialize it to XML โ€” invoiceToXml
  • โœ… Validate against the official 1.09 XSD, and optionally the Schematron EN 16931 BR-* business rules and code lists โ€” check (schematron: true) / validateSchematron
  • ๐Ÿ—‚ All five Factur-X profiles: minimum, basicwl, basic, en16931, extended

See Profiles & flavors for the supported flavors, levels and autodetection rules.

##โ€ฆ