invoice-x / factur-x-ng

Python lib for Factur-X, the e-invoicing standard for France and Germany
Other
34 stars 8 forks source link

START HERE #1

Closed m3nu closed 6 years ago

m3nu commented 6 years ago

The test script I'm using:

from datetime import datetime as dt
from facturx import *

factx = FacturX('Invoice-15733.pdf')
factx['seller'] = 'Manu'
factx['date'] = dt.now()

factx.write_pdf('test.pdf')
factx.write_xml('text.xml')

factx = FacturX('test.pdf')
print(factx['seller'])
print(factx['date'])
m3nu commented 6 years ago

This loads an empty PDF, adds a minimum XML template, sets some fields and then saves it to PDF and XML.