This commit is contained in:
Kovid Goyal 2012-12-15 22:10:06 +05:30
parent fbcec65b71
commit bd3ca9a0cc
2 changed files with 4 additions and 2 deletions

View File

@ -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):

View File

@ -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)