Commit Graph

53 Commits

Author SHA1 Message Date
Nicolas Roche 0b1ccc00e5 upgrade to version 2.3 2021-12-23 14:40:26 +01:00
Alexis de Lattre 4ef9edaed1 [FIX] wrong flavor argument passed by generate_facturx_from_file() to generate_from_file()
Bump version number to 2.3
2021-12-23 14:34:11 +01:00
Alexis de Lattre 4ac212db2a Make method generate_from_binary() accessible via the lib
Bump version number to 2.2
2021-12-23 14:34:11 +01:00
Alexis de Lattre 2bfd49293d Update Order-X XSD
Bump version number to 2.1
2021-12-23 14:34:11 +01:00
Alexis de Lattre 0acacad0c2 Add support for Order-X: add XSD, update code and scripts.
Bump version to 2.0
Add lang argument to methods generate_from_file() and generate_from_binary()
Add afrelationship argument to methods generate_from_file() and generate_from_binary() and also add it as key in the attachments dict. Allows to set the /AFRelationship PDF property for all attachments.
Update README to prepare 2.0 release
2021-12-23 14:34:11 +01:00
Alexis de Lattre a9e87e41e9 Replace optparse by argparse (optparse is deprected) in all scripts under bin/
setup.py: declare compatibility with Python 3.8
2021-12-23 14:34:11 +01:00
Alexis de Lattre fd6be6a89f Release 1.12: use flateEncode() for attachments and XMP metadata 2021-12-23 14:34:11 +01:00
Alexis de Lattre 6ac0bd47a4 Fix crash UnicodeEncodeError on python 2.7
Prepare 1.11 release
2021-12-23 14:34:11 +01:00
Alexis de Lattre 3e578128a7 Update XSD to Factur-X version 1.0.5
Bump version to 1.10
2021-12-23 14:34:11 +01:00
Alexis de Lattre 9198ce07d9 Improve Python3 support in get_facturx_xml_from_pdf()
Fix the meaning of an error message
2021-12-23 14:34:11 +01:00
Benjamin Dauvergne d19d4ce939 add debian packaging 2020-02-03 22:15:18 +01:00
Alexis de Lattre ac9090bf9d README: Add a note about increasing max body size 2020-01-16 14:36:29 +01:00
Alexis de Lattre 8461ca1147 README: Add a section dedicated to the webservice 2020-01-16 14:22:43 +01:00
Alexis de Lattre 697a9c3488 Fix readme layout 2020-01-16 00:44:10 +01:00
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 d5b22cd32f Release 1.7: fix bug in XMP generation 2020-01-13 00:58:30 +01:00
Alexis de Lattre 12f97b685d Release 1.6: generate XMP via simple format() instead of using lxml 2020-01-09 23:41:21 +01:00
Alexis de Lattre aa1b5a69dc [FIX] bug in generate_facturx_from_file() when using argument additional_attachments
Bump version to 1.5
2019-11-13 10:41:56 +01:00
Alexis de Lattre 0350366edb Update Factur-X XSD to the final version of Factur-X v1.0.4
Bump version number to v1.4
2019-07-24 23:35:31 +02:00
Alexis de Lattre a364a127bd
Merge pull request #12 from lasalesi/compatibility
compatibility to public zugferd samples
2019-07-24 22:52:12 +02:00
lasalesi b861c89e9e compatibility to public zugferd samples 2019-06-26 15:23:23 +02:00
Alexis de Lattre c16bc24323 Add XSD files for EXTENDED in MANIFEST.in
Prepare 1.3 release
2019-06-12 01:26:45 +02:00
Alexis de Lattre bd5b030279 Add debug log to show XSD file used 2019-06-11 23:58:59 +02:00
Alexis de Lattre 96b110199c Add support for Extended profile
Validate XML for Minimum and Basic WL profiles with the XSD of profile EN 16931
Small fixes in the support for /Kids
Bump version to 1.2
2019-06-11 23:52:30 +02:00
Alexis de Lattre 9cb1cb0bf2 Add support for /Kids
Bump version to 1.1
2019-04-22 23:29:50 +02:00
Alexis de Lattre 0fbe504610 Switch to PyPDF4, cf explainations in README
Prepare 1.0 release
2019-01-26 23:44:12 +01:00
Alexis de Lattre 5080fea089 Add python 3.7 tag 2019-01-25 23:32:36 +01:00
Alexis de Lattre 9168806e34 Prepare 0.9 release
Add debug logs
PEP8 stuff
2019-01-25 21:12:57 +01:00
Alexis de Lattre 649f25006f
Merge pull request #9 from shine-it/mig-py3
[MIG] Python3
2019-01-25 20:51:52 +01:00
Alexis de Lattre 7162c6ed1a
Merge pull request #5 from attrib/attrib-patch-1
[FIX] Wrong path for zugferd XSD file
2019-01-25 19:57:03 +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
Karl Fritsche 62988527cb
Fixes no such file or directory for xsd file 2018-07-08 13:41:47 +02:00
Alexis de Lattre 0a5ff44826 Make pretty_print work for XMP file 2018-06-10 22:35:20 +02:00
Alexis de Lattre df78d61c36 [FIX] XMP structure under /x:xmpmeta/rdf:RDF/rdf:Description (use XML tags instead of XML attributes)
declare PDF-1.6 instead of PDF-1.3 (still declared by default by pyPDF2)
2018-05-24 00:33:05 +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 fd9373b256 Cleanup logs/exception 2018-04-27 18:19:21 +02:00
Alexis de Lattre 78f920418d Add factur-x python lib version number in metadata creator entry 2018-04-25 11:54:36 +02:00
Alexis de Lattre 94d420b8dc Fix indentation in README.rst 2018-03-29 01:00:59 +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 a3ebfa4165 [FIX] PDF specs says Names/EmbeddedFiles/Names must be ordered. It solves the issue with Acrobat Reader that could not save all attachments. 2018-03-28 10:05:34 +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 3eaf3852cd Adapt to latest change in Factur-X URN 2017-11-12 21:46:28 +01:00
Alexis de Lattre ad02c20c45 Fix value of ConformanceLevel in XMP 2017-11-10 00:04:12 +01: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 7c98716bd6 Allow unicode type for output_pdf_file of generate_facturx
Update docstring
2017-09-30 00:52:47 +02:00
Alexis de Lattre cd6584ee58 Update README to explain ZUGFeRD 2.0 = Factur-X 2017-09-15 23:33:48 +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 3f82ce8bca Remove file that has nothing to do here ! 2017-09-11 10:15:58 +02:00
Alexis de Lattre 757c68ce71 Fix README 2017-09-11 00:39:04 +02:00