Skip to content

Commit

Permalink
Do not call setPaper() within render() (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderWind authored and barryvdh committed Aug 14, 2019
1 parent 3fd8170 commit df189b0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ class PDF{
protected $view;

protected $rendered = false;
protected $orientation;
protected $paper;
protected $showWarnings;
protected $public_path;

Expand Down Expand Up @@ -67,8 +65,6 @@ public function getDomPDF(){
* @return $this
*/
public function setPaper($paper, $orientation = 'portrait'){
$this->paper = $paper;
$this->orientation = $orientation;
$this->dompdf->setPaper($paper, $orientation);
return $this;
}
Expand Down Expand Up @@ -196,8 +192,6 @@ protected function render(){
throw new Exception('DOMPDF not created yet');
}

$this->dompdf->setPaper($this->paper, $this->orientation);

$this->dompdf->render();

if ( $this->showWarnings ) {
Expand Down

0 comments on commit df189b0

Please sign in to comment.