|
|
@ -338,7 +338,7 @@ class Bureau(object):
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: make paper size a config variable
|
|
|
|
# TODO: make paper size a config variable
|
|
|
|
pdfpath = tempfile.mkstemp(".pdf")[1]
|
|
|
|
pdfpath = tempfile.mkstemp(".pdf")[1]
|
|
|
|
self.log.debug("rendering with: " + self.html2pdf + htmlpath + " " + pdfpath)
|
|
|
|
self.log.debug("rendering with: " + htmlpath + " " + pdfpath)
|
|
|
|
weasyprint.HTML(string=templ.render_unicode(**kwargs)).write_pdf(pdfpath)
|
|
|
|
weasyprint.HTML(string=templ.render_unicode(**kwargs)).write_pdf(pdfpath)
|
|
|
|
#subprocess.call(self.html2pdf + htmlpath + " " + pdfpath +
|
|
|
|
#subprocess.call(self.html2pdf + htmlpath + " " + pdfpath +
|
|
|
|
# " A4 1920px", shell=True)
|
|
|
|
# " A4 1920px", shell=True)
|
|
|
|