Decoding Error

Bug #1347991 reported by Luke Rehmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyPdf
New
Undecided
Unassigned

Bug Description

http://rehmann.co/downloads/pypdfproblem.pdf

While trying to decode and then extract the text from the above/attached file, I encountered this error:

  File "mypython.py", line 149, in <module>
    pdf.decrypt('')
  File "/home/mibearin/lsr/projects/fcc/python/pyPdf/pdf.py", line 894, in decrypt
    return self._decrypt(password)
  File "/home/mibearin/lsr/projects/fcc/python/pyPdf/pdf.py", line 904, in _decrypt
    user_password, key = self._authenticateUserPassword(password)
  File "/home/mibearin/lsr/projects/fcc/python/pyPdf/pdf.py", line 959, in _authenticateUserPassword
    encrypt["/Length"].getObject() / 8, owner_entry,
TypeError: 'NullObject' object is unsubscriptable

Although the file is not encrypted (or may be encrypted with a blank key), if I do not attempt to decrpyt the file, I receive the following error:

Exception: file has not been decrypted

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.