diff --git a/src/Smalot/PdfParser/RawData/RawDataParser.php b/src/Smalot/PdfParser/RawData/RawDataParser.php index a94be8a7..a3f9761c 100644 --- a/src/Smalot/PdfParser/RawData/RawDataParser.php +++ b/src/Smalot/PdfParser/RawData/RawDataParser.php @@ -883,7 +883,7 @@ protected function getXrefData(string $pdfData, int $offset = 0, array $xref = [ // Find all startxref tables from this $offset forward $startxrefPreg = preg_match_all( - '/(?<=[\r\n])startxref[\s]*[\r\n]+([0-9]+)[\s]*[\r\n]+%%EOF/i', + '/(?<=[\r\n])startxref(?:[\s]*[\r\n]+[\s]*|\s+)([0-9]+)[\s]*[\r\n]+%%EOF/i', $pdfData, $startxrefMatches, \PREG_SET_ORDER,