#
from librarian import ValidationError, NoDublinCore, ParseError, NoProvider
from librarian import RDFNS, IOFile
-from librarian.styles.wolnelektury.cover import WLCover
from librarian import dcparser
from xml.parsers.expat import ExpatError
# Converters
def as_html(self, *args, **kwargs):
- from librarian import html
+ from librarian import pyhtml as html
return html.transform(self, *args, **kwargs)
def as_text(self, *args, **kwargs):
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
def as_cover(self, cover_class=None, *args, **kwargs):
if cover_class is None:
+ from librarian.styles.wolnelektury.cover import WLCover
cover_class = WLCover
return cover_class(self.book_info, *args, **kwargs).output_file()