smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.42k stars 538 forks source link

Message: Object list not found. Possible secured file. #209

Closed diasisac closed 3 years ago

diasisac commented 6 years ago

Ao enviar PDF libraries/pdfparse sem titulo

Pesche007 commented 5 years ago

Same here, PDF file is not secured and can be opened as normal

CarlosHDOliveira commented 4 years ago

Same here, no solution?

chumleesockson commented 4 years ago

Same here.

murcoder commented 4 years ago

Same here. I'm using a non secured PDF 1.6 file. The Error occurres at PdfParser/Parser.php::102. It seems like, the regex in parseContent() can not find the xref data. After saving the file as PDF 1.3 the parsing works fine until accessing the content, then it runs into mb_convert_encoding(): Illegal character encoding specified. Any idea?

I'm using version 0.16.0

xdebug-screenshot

EDIT by @k00ni: Embedded screenshot for better reading.

k00ni commented 4 years ago

I am not aware of any solution.

Could you provide us upload the PDF which triggers the exception? It must be free to use and will be part of our test suite.

k00ni commented 4 years ago

We made some changes recently regarding the mb_convert_encoding(): Illegal character encoding specified error (#313).

I assume you use 0.16.0? Could you try again with master branch?

murcoder commented 4 years ago

We made some changes recently regarding the mb_convert_encoding(): Illegal character encoding specified error (#313).

I assume you use 0.16.0? Could you try again with master branch?

Thanks, this fixed the issue with version 1.3 PDF. But the original v1.6 PDF file still runs into the error Object list not found. Possible secured file.

k00ni commented 4 years ago

OK, i will prepare a new release (0.16.1) so at least the encoding problem goes away. For the other one I need a PDF uploaded here so we can make a "failing" test to outline this problem still exist.

k00ni commented 4 years ago

FYI, new release 0.16.1 https://github.com/smalot/pdfparser/releases/tag/0.16.1 is available.

ackwo commented 4 years ago

Got the same error. Object list not found (0.16.1)

SLD-Paste_deutsch_03_2017.pdf

andreescocard commented 3 years ago

Same problem.