Closed m3nu closed 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'])
This loads an empty PDF, adds a minimum XML template, sets some fields and then saves it to PDF and XML.
The test script I'm using: