git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@128 1aa58f4a-7d42-0410-adbc-911cccaed67c

pull/1/head
yusuke.shinyama.dummy 2009-08-25 14:08:27 +00:00
parent 5964e197db
commit 16ddc94c77
1 changed files with 1 additions and 1 deletions

View File

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