Commit Graph

10 Commits

Author SHA1 Message Date
Alexis de Lattre bddaf359f1 Release 1.8: new tool bin/facturx-webservice (uses Flask)
The new tool facturx-webservice implements a REST webservice using Flask to generate a Factur-X PDF invoice via a simple POST request. Works on python3 only.

New argument 'attachments' for generate_facturx_from_file() which replaces argument additional_attachments:
- Possibility to set a filename for the attachment different from filename of the filepath
- Possibility to set creation dates for attachments
- Update script facturx-pdfgen to use the new attachments argument
2020-01-16 00:35:48 +01:00
Alexis de Lattre 9168806e34 Prepare 0.9 release
Add debug logs
PEP8 stuff
2019-01-25 21:12:57 +01:00
JoshuaJan e334f6b46f [MIG] Python3 2019-01-20 00:18:11 +08:00
Alexis de Lattre 7dd14f153b Avoid warning 2018-08-04 01:24:00 +02:00
Alexis de Lattre ce98ee9b52 Now fully PDF/A-3 compliant with additionnal attachments
facturx-pdfgen: don't overwrite by default and add --overwrite option
Update version number to 0.6
2018-05-01 21:38:01 +02:00
Alexis de Lattre 39fe7e9289 Fix XMP metadata structure
Now fully PDF/A-3 compliant when the input PDF file is PDF/A compliant (tested with veraPDF). This implied copying /OutputIntents and /ID datas from source PDF to Factur-X PDF.
Fix support for additionnal attachments: they can now all be saved with Acrobat Reader
Improve XML extraction from PDF Factur-x file
2018-03-29 00:59:32 +02:00
Alexis de Lattre a136ef46db Factur-x specs say /AFRelationship must be /Data (and not /Alternative)
Add support for additionnal attachments (via generate_facturx_from_file())
Add factur-x lib version in Creator metadata table
Add /PageMode = /UseAttachments, so that the attachments are displayed by default when opening Factur-X PDF invoice with Acrobat Reader
Improve and enrich PDF objects (ModDate, CheckSum, Size)
Better variable names in the code that generate PDF objects
Update Factur-X XSD to v1.0 final
2018-03-27 22:09:50 +02:00
Alexis de Lattre f15c4cf8eb Split generate_facturx in 2 new methods: generate_facturx_from_file and generate_facturx_from_binary
Update version number to 0.2
2017-10-26 23:33:11 +02:00
Alexis de Lattre ffe19ce0c7 Stop using assert for argument validation
Stop using StringIO (not compatible with Python3)
2017-09-12 23:58:54 +02:00
Alexis de Lattre abadc914fa Initial check-in 2017-09-10 01:56:48 +02:00