From b32bb7a35e24f39c4bd5cfff124b590767dea2e0 Mon Sep 17 00:00:00 2001 From: Konrad Abicht Date: Thu, 20 May 2021 13:55:13 +0200 Subject: [PATCH] fixed last parameter lists with missing Config parameter (#424) --- src/Smalot/PdfParser/Page.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Smalot/PdfParser/Page.php b/src/Smalot/PdfParser/Page.php index 55a929b1..11d3152e 100644 --- a/src/Smalot/PdfParser/Page.php +++ b/src/Smalot/PdfParser/Page.php @@ -211,7 +211,7 @@ public function getText(self $page = null) } $header = new Header([], $this->document); - $contents = new PDFObject($this->document, $header, $new_content); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); } } elseif ($contents instanceof ElementArray) { // Create a virtual global content. @@ -222,7 +222,7 @@ public function getText(self $page = null) } $header = new Header([], $this->document); - $contents = new PDFObject($this->document, $header, $new_content); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); } return $contents->getText($this); @@ -259,7 +259,7 @@ public function getTextArray(self $page = null) } $header = new Header([], $this->document); - $contents = new PDFObject($this->document, $header, $new_content); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); } } elseif ($contents instanceof ElementArray) { // Create a virtual global content. @@ -271,7 +271,7 @@ public function getTextArray(self $page = null) } $header = new Header([], $this->document); - $contents = new PDFObject($this->document, $header, $new_content); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); } return $contents->getTextArray($this);