PyInvoice/pyinvoice/templates.py
2015-05-28 18:17:55 +08:00

16 lines
No EOL
444 B
Python

from reportlab.lib.pagesizes import letter
from reportlab.lib.units import inch
from reportlab.platypus import SimpleDocTemplate
class SimpleInvoice(SimpleDocTemplate):
def __init__(self, invoice_path):
SimpleDocTemplate.__init__(
self,
invoice_path,
pagesize=letter,
rightMargin=inch,
leftMargin=inch,
topMargin=inch,
bottomMargin=inch
)