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

Error parsing PDF (Uncaught Exception: Unable to find xref (PDF corrupted?)) #404

Closed codeclass closed 3 years ago

codeclass commented 3 years ago

Uncaught Exception: Unable to find xref (PDF corrupted?) in .../vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php:802

PHP 7.2.34 installed latest version pdfparser by composer but this file correctly parsed at demo page https://pdfparser.org/demo

codeclass commented 3 years ago

There was a problem with PHP settings mbstring.func_overload = 2 change to mbstring.func_overload = 0 fix the problem