PyInvoice/test.py
2015-05-28 01:09:44 +08:00

14 lines
295 B
Python

from pyinvoice.components import AddressTable
from pyinvoice.templates import SimpleInvoice
story = []
address_table = AddressTable([
['Name', 'zhangshine'],
['City', 'Jining']
], horizontal_align='RIGHT')
story.append(address_table)
doc = SimpleInvoice('test.pdf')
doc.build(story)