diff --git a/src/Smalot/PdfParser/Parser.php b/src/Smalot/PdfParser/Parser.php index b051f114..8d31656a 100644 --- a/src/Smalot/PdfParser/Parser.php +++ b/src/Smalot/PdfParser/Parser.php @@ -320,6 +320,7 @@ protected function parseHeaderElement(?string $type, $value, ?Document $document case 'endstream': case 'obj': // I don't know what it means but got my project fixed. + case 'endobj': // I don't know what this means either, but it is found in some PDF documents I tried to parse. case '': // Nothing to do with. return null;