git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@128 1aa58f4a-7d42-0410-adbc-911cccaed67c
parent
5964e197db
commit
16ddc94c77
|
@ -164,7 +164,7 @@ class PDFStream(PDFObject):
|
||||||
buf = data
|
buf = data
|
||||||
# some FlateDecode streams have garbage (newlines, etc) appended to the
|
# some FlateDecode streams have garbage (newlines, etc) appended to the
|
||||||
# end. remove chars from the end to try and decompress the buffer
|
# end. remove chars from the end to try and decompress the buffer
|
||||||
while len(buf) > 10:
|
while 8 <= len(buf):
|
||||||
try:
|
try:
|
||||||
# will get errors if the document is encrypted.
|
# will get errors if the document is encrypted.
|
||||||
dco = zlib.decompressobj()
|
dco = zlib.decompressobj()
|
||||||
|
|
Loading…
Reference in New Issue