X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0b83514c0335addda3b76710aec04df93f85479d..fc0b706f8c7eb67531df0a2acd972412e47c7010:/src/reporting/utils.py?ds=inline diff --git a/src/reporting/utils.py b/src/reporting/utils.py index ef4b1d0b2..797542abf 100755 --- a/src/reporting/utils.py +++ b/src/reporting/utils.py @@ -32,7 +32,7 @@ def render_to_pdf(output_path, template, context=None, add_files=None): texml = BytesIO(rendered.encode('utf-8')) tempdir = mkdtemp(prefix="render_to_pdf-") tex_path = os.path.join(tempdir, "doc.tex") - with open(tex_path, 'w') as tex_file: + with open(tex_path, 'wb') as tex_file: Texml.processor.process(texml, tex_file, encoding="utf-8") if add_files: