PyInvoice/test.py

15 lines
295 B
Python
Raw Normal View History

2015-05-27 17:09:44 +00:00
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)