mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
233d902107
commit
e5d1e81e17
@ -151,6 +151,8 @@ class PDFOutput(OutputFormatPlugin):
|
|||||||
oeb_output.convert(oeb_book, oeb_dir, self.input_plugin, self.opts, self.log)
|
oeb_output.convert(oeb_book, oeb_dir, self.input_plugin, self.opts, self.log)
|
||||||
|
|
||||||
if iswindows:
|
if iswindows:
|
||||||
|
# On windows Qt generates an image based PDF if the html uses
|
||||||
|
# embedded fonts. See https://launchpad.net/bugs/1053906
|
||||||
for f in walk(oeb_dir):
|
for f in walk(oeb_dir):
|
||||||
if f.rpartition('.')[-1].lower() in {'ttf', 'otf'}:
|
if f.rpartition('.')[-1].lower() in {'ttf', 'otf'}:
|
||||||
self.log.warn('Found embedded font %s, removing it, as '
|
self.log.warn('Found embedded font %s, removing it, as '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user