Home » Python » python – PDFminer possible permissions issue-Exceptionshub

python – PDFminer possible permissions issue-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I have some PDF files that I am (mostly) able to convert to text using the Nitro PDF tool. When I attempt to convert the same PDFs using the code posted here, I get output suggesting that there is a permissions issue. Is there a parameter that I’m setting incorrectly?

Here is the output that I’m getting:

'from the SAGE Social Science Collections. All Rights Reserved.\n\n\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c'

The original PDF is here.

How to&Answers: