mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fbcec65b71
commit
bd3ca9a0cc
@ -243,7 +243,7 @@ class PdfEngine(QPaintEngine):
|
|||||||
try:
|
try:
|
||||||
self.pdf = PDFStream(self.file_object, (self.page_width,
|
self.pdf = PDFStream(self.file_object, (self.page_width,
|
||||||
self.page_height),
|
self.page_height),
|
||||||
compress=0 if DEBUG else 1)
|
compress=not DEBUG)
|
||||||
self.init_page()
|
self.init_page()
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
@ -271,9 +271,11 @@ class PdfEngine(QPaintEngine):
|
|||||||
return QPaintEngine.Pdf
|
return QPaintEngine.Pdf
|
||||||
|
|
||||||
def drawPixmap(self, rect, pixmap, source_rect):
|
def drawPixmap(self, rect, pixmap, source_rect):
|
||||||
|
print ('drawPixmap() currently unimplemented')
|
||||||
pass # TODO: Implement me
|
pass # TODO: Implement me
|
||||||
|
|
||||||
def drawImage(self, rect, image, source_rect, flags=Qt.AutoColor):
|
def drawImage(self, rect, image, source_rect, flags=Qt.AutoColor):
|
||||||
|
print ('drawImage() currently unimplemented')
|
||||||
pass # TODO: Implement me
|
pass # TODO: Implement me
|
||||||
|
|
||||||
def updateState(self, state):
|
def updateState(self, state):
|
||||||
|
@ -133,7 +133,7 @@ class Stream(BytesIO):
|
|||||||
|
|
||||||
d = InlineDictionary({'Length':len(raw), 'DL':dl})
|
d = InlineDictionary({'Length':len(raw), 'DL':dl})
|
||||||
if filters:
|
if filters:
|
||||||
d['Filters'] = filters
|
d['Filter'] = filters
|
||||||
serialize(d, stream)
|
serialize(d, stream)
|
||||||
stream.write(EOL+b'stream'+EOL)
|
stream.write(EOL+b'stream'+EOL)
|
||||||
stream.write(raw)
|
stream.write(raw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user