Fix cases where a bytearray doesn't work in place of bytes
parent
185ddeb2ab
commit
083f11b165
|
@ -120,6 +120,7 @@ class PDFParser(PSStackParser):
|
|||
objlen += len(line)
|
||||
if self.fallback:
|
||||
data += line
|
||||
data = bytes(data)
|
||||
self.seek(pos+objlen)
|
||||
# XXX limit objlen not to exceed object boundary
|
||||
log.debug('Stream: pos=%d, objlen=%d, dic=%r, data=%r...', pos, objlen, dic, data[:10])
|
||||
|
|
Loading…
Reference in New Issue