This commit is contained in:
Jamie Hardt
2021-06-04 18:21:12 -07:00
parent 2f55b16750
commit 40b80b9997

View File

@@ -52,7 +52,8 @@ class ADRDocTemplate(BaseDocTemplate):
BaseDocTemplate.build(self, flowables, filename, canvasmaker)
def make_doc_template(page_size, filename, document_title, record: ADRLine, document_header="", left_margin=0.5 * inch):
def make_doc_template(page_size, filename, document_title, record: ADRLine, document_header="",
left_margin=0.5 * inch) -> ADRDocTemplate:
right_margin = top_margin = bottom_margin = 0.5 * inch
page_box = GRect(0., 0., page_size[0], page_size[1])
_, page_box = page_box.split_x(left_margin, direction='l')