diff --git a/src/Smalot/PdfParser/Page.php b/src/Smalot/PdfParser/Page.php index 506a9457..85c2b272 100644 --- a/src/Smalot/PdfParser/Page.php +++ b/src/Smalot/PdfParser/Page.php @@ -236,7 +236,7 @@ public function isFpdf(): bool { if (\array_key_exists('Producer', $this->document->getDetails()) && \is_string($this->document->getDetails()['Producer']) && - str_starts_with($this->document->getDetails()['Producer'], 'FPDF')) { + 0 === strncmp($this->document->getDetails()['Producer'], 'FPDF', 4)) { return true; }