mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a8e8551110
commit
962209439f
@ -168,7 +168,8 @@ class PDFWriter(QObject): # {{{
|
|||||||
# We have to set the engine to Native on OS X after the call to set
|
# We have to set the engine to Native on OS X after the call to set
|
||||||
# filename. Setting a filename with .pdf as the extension causes
|
# filename. Setting a filename with .pdf as the extension causes
|
||||||
# Qt to set the format to use Qt's PDF engine even if native was
|
# Qt to set the format to use Qt's PDF engine even if native was
|
||||||
# previously set on the printer.
|
# previously set on the printer. Qt's PDF engine produces image
|
||||||
|
# based PDFs on OS X, so we cannot use it.
|
||||||
if isosx:
|
if isosx:
|
||||||
printer.setOutputFormat(QPrinter.NativeFormat)
|
printer.setOutputFormat(QPrinter.NativeFormat)
|
||||||
self.view.page().mainFrame().evaluateJavaScript('''
|
self.view.page().mainFrame().evaluateJavaScript('''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user