From df189b08c2c0d80d7e5cd5197ad1d3582ffe8154 Mon Sep 17 00:00:00 2001 From: Sander Wind Date: Wed, 14 Aug 2019 15:11:47 +0200 Subject: [PATCH] Do not call setPaper() within render() (#595) --- src/PDF.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/PDF.php b/src/PDF.php index af3bfdd..e692bff 100644 --- a/src/PDF.php +++ b/src/PDF.php @@ -30,8 +30,6 @@ class PDF{ protected $view; protected $rendered = false; - protected $orientation; - protected $paper; protected $showWarnings; protected $public_path; @@ -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; } @@ -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 ) {