Add Factur-X/XRechnung missing CLI options
Hi there,
I would like to add the possibility to generate Factur-X PDFs in Paheko using Weasyprint as well, but the app is in PHP and I would prefer being able to do this in the command line, like Prince does:
prince --pdf-profile="PDF/A-3a" --pdf-xmp=facturx.xmp --attach-data=factur-x.xml -o invoice.pdf invoice.html
Weasyprint already has the --pdf-variant option, and --attachment, but it's missing the ability to specify the attachment type and also an option for the XMP file.
It would be great to have this, instead of having to go through a Python wrapper script.
A possible example could be:
weasyprint --attachement 'data:factur-x.xml' --pdf-variant 'pdf/a-3u' --pdf-xmp facturx.xmp invoice.html invoice.pdf
We can fund that little modification, or we can just put more money (eg. +300 €) in our yearly donation to Weasyprint :)
Hi!
@bohwaz Sorry for the delay and thanks for the support! 🙏
We’re currently working on PDF/X and we’re still trying to find a nice way to handle XMP. It should be ready in a few days, we’ll ping you as soon as we have something to share.