X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/db00cdfa47efb038db8c33393a25df1d240fd76b..00befc91b33f3e16084bbc2ab99d5cc230e95944:/catalogue/publish.py diff --git a/catalogue/publish.py b/catalogue/publish.py index 1fc4ade..293b89e 100755 --- a/catalogue/publish.py +++ b/catalogue/publish.py @@ -4,7 +4,7 @@ from django.core.urlresolvers import reverse from librarian import DocProvider, IOFile from librarian.pyhtml import EduModuleFormat from librarian.pypdf import EduModulePDFFormat -from librarian.weasy import EduModuleWeasyFormat +from librarian.pdf_from_html import EduModulePdfFromHtmlFormat from .models import Lesson, Attachment from fnpdjango.utils.text.slughifi import slughifi @@ -120,7 +120,7 @@ class PdfFormat(EduModulePDFFormat): return src_img -class WeasyFormat(EduModuleWeasyFormat): +class PdfFromHtmlFormat(EduModulePdfFromHtmlFormat): IMAGE_FORMATS = ('PNG', 'JPEG', 'GIF') DEFAULT_IMAGE_WIDTH = 1600