Open the-happy-hippo opened 10 years ago
You need to install pycrypto to handle a certain type of encryption.
I've installed pycrypto
and still get the same exception (unknown algorithm). Yet please note I hadn't got an ImportError
on pycrypto
so I don't get how this might be related to the original exception.
You will not see ImportError even if pycrypto is not installed. PDFMiner simply falls back without using it when it's not available (hence the error). You probably need to tweak pdfdocument.py to see if it's correctly imported. Again, this feature is only recently contributed so there might be still some other caveats.
Hello euske, I am working on pdfminer and for some pdf files getting the same error. Even after installing the pycrypto i am getting the same error. Could you please let me know what should be tweaked in pdfdocument.py?
@joncodo Could you please elaborate on how it worked for you?
When trying to parse PDF at http://www.ada.gov/hospcombrprt.pdf, I get the following error: