Skip to content

Commit

Permalink
fixed last parameter lists with missing Config parameter (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
k00ni authored May 20, 2021
1 parent 0aa0180 commit b32bb7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Smalot/PdfParser/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down Expand Up @@ -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.
Expand All @@ -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);
Expand Down

0 comments on commit b32bb7a

Please sign in to comment.