mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 17:00:46 +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')
|
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')
|
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')
|
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",
|
page_template = PageTemplate(id="Main",
|
||||||
frames=[Frame(page_box.min_x, page_box.min_y, page_box.width, page_box.height)],
|
frames=frames,
|
||||||
onPage=lambda c, _: draw_header_footer(c, report_box, title_box, footer_box,
|
onPage=on_page_lambda)
|
||||||
title=title, supervisor=supervisor,
|
|
||||||
document_subheader=document_subheader,
|
|
||||||
client=client,
|
|
||||||
doc_title=document_header))
|
|
||||||
|
|
||||||
pdfmetrics.registerFont(TTFont('Futura', 'Futura.ttc'))
|
pdfmetrics.registerFont(TTFont('Futura', 'Futura.ttc'))
|
||||||
doc = ADRDocTemplate(filename,
|
doc = ADRDocTemplate(filename,
|
||||||
|
|||||||
Reference in New Issue
Block a user