mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Possible fix for style and images not included in produced pdf files on Windows.
This commit is contained in:
parent
09988d93de
commit
7eba89285e
@ -111,7 +111,8 @@ class PDFWriter(QObject):
|
|||||||
|
|
||||||
self.logger.debug('Processing %s...' % item)
|
self.logger.debug('Processing %s...' % item)
|
||||||
|
|
||||||
self.view.load(QUrl(item))
|
#self.view.load(QUrl(item))
|
||||||
|
self.view.setHtml(open(item, 'r+b').read().decode('utf-8'), QUrl(item))
|
||||||
|
|
||||||
def _render_html(self, ok):
|
def _render_html(self, ok):
|
||||||
if ok:
|
if ok:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user