# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
rendered = render_to_string(template, context)
texml = StringIO(rendered.encode('utf-8'))
tempdir = mkdtemp(prefix = "render_to_pdf-")
rendered = render_to_string(template, context)
texml = StringIO(rendered.encode('utf-8'))
tempdir = mkdtemp(prefix = "render_to_pdf-")
send_name = os.path.basename(file_name)
def signal_handler(*args, **kwargs):
send_name = os.path.basename(file_name)
def signal_handler(*args, **kwargs):