ZUGFeRD electronic invoices with Typst

I patched Typst’s PDF export to create ZUGFeRD e-invoices

ZUGFeRD is a German/European standard for electronic invoices. The commit linked below includes a little hack for PDF/A-3b support and an optional file embedding according to the ZUGFeRD specification.

Hopefully, this kind of file embedding can either be done from inside a Typst file at some point, or the pdf export can get an extension system so that this does not require a fork anymore :slight_smile:

Is anyone else here working with Typst for electronic invoices?

8 Likes

Sounds great! So far I have been creating my invoices with Typst (plain ol’ PDF files) and I was already wondering, how to move forward when e-invoices become mandatory in the nearing future.
I will be looking forward to this!

1 Like

Draft PR to upstream most of this: Embed files associated with the document as a whole by NiklasEi · Pull Request #5221 · typst/typst · GitHub

1 Like