X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3d82ed33706fca69f100b7b7c5b9eba970151568..26aa2369c47124fb322236e03084324914aa24af:/librarian/parser.py diff --git a/librarian/parser.py b/librarian/parser.py index f02b64c..fb2f986 100644 --- a/librarian/parser.py +++ b/librarian/parser.py @@ -204,8 +204,8 @@ class WLDocument(object): return epub.transform(self, *args, **kwargs) def as_pdf(self, *args, **kwargs): - from librarian import pdf - return pdf.transform(self, *args, **kwargs) + from librarian import pypdf + return pypdf.EduModulePDFFormat(self).build(*args, **kwargs) def as_mobi(self, *args, **kwargs): from librarian import mobi @@ -217,7 +217,7 @@ class WLDocument(object): def as_cover(self, cover_class=None, *args, **kwargs): if cover_class is None: - from librarian.cover import WLCover + from librarian.styles.wolnelektury.cover import WLCover cover_class = WLCover return cover_class(self.book_info, *args, **kwargs).output_file()