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

16 lines
No EOL
468 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=.25 * inch,
leftMargin=.25 * inch,
topMargin=.25 * inch,
bottomMargin=.25 * inch
)