mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Twiddles, testing Working Copy
This commit is contained in:
@@ -71,14 +71,19 @@ def make_doc_template(page_size, filename, document_title,
|
||||
footer_box, page_box = page_box.split_y(0.25 * inch, direction='u')
|
||||
header_box, page_box = page_box.split_y(0.75 * inch, direction='d')
|
||||
title_box, report_box = header_box.split_x(3.5 * inch, direction='r')
|
||||
|
||||
|
||||
on_page_lambda = lambda c, _:
|
||||
draw_header_footer(c, report_box, title_box,
|
||||
footer_box,title=title,
|
||||
supervisor=supervisor,
|
||||
document_subheader=document_subheader,
|
||||
client=client, doc_title=document_header)
|
||||
|
||||
frames = [Frame(page_box.min_x, page_box.min_y, page_box.width, page_box.height)]
|
||||
|
||||
page_template = PageTemplate(id="Main",
|
||||
frames=[Frame(page_box.min_x, page_box.min_y, page_box.width, page_box.height)],
|
||||
onPage=lambda c, _: draw_header_footer(c, report_box, title_box, footer_box,
|
||||
title=title, supervisor=supervisor,
|
||||
document_subheader=document_subheader,
|
||||
client=client,
|
||||
doc_title=document_header))
|
||||
frames=frames,
|
||||
onPage=on_page_lambda)
|
||||
|
||||
pdfmetrics.registerFont(TTFont('Futura', 'Futura.ttc'))
|
||||
doc = ADRDocTemplate(filename,
|
||||
|
||||
Reference in New Issue
Block a user