# 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.
#
from traceback import print_exc
from celery.task import task
from celery.utils.log import get_task_logger
from django.conf import settings
from traceback import print_exc
from celery.task import task
from celery.utils.log import get_task_logger
from django.conf import settings
wldoc = Book.objects.get(pk=book_id).wldocument()
pdf = wldoc.as_pdf(
customizations=customizations,
wldoc = Book.objects.get(pk=book_id).wldocument()
pdf = wldoc.as_pdf(
customizations=customizations,