From 9ec7debe5692421a9d55df57ef284ffd1b0e2dc4 Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Wed, 17 Apr 2019 12:34:17 -0500 Subject: [PATCH] MPDF Tasks Use the psize that is set in the options array since $psize is not in the Task2PDF contructor. --- include/class.pdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.pdf.php b/include/class.pdf.php index 8d80d4566..bbb718f41 100644 --- a/include/class.pdf.php +++ b/include/class.pdf.php @@ -108,7 +108,7 @@ class Task2PDF extends mPDFWithLocalImages { $this->task = $task; $this->options = $options; - parent::__construct(['mode' => 'utf-8', 'format' => $psize, 'tempDir'=>sys_get_temp_dir()]); + parent::__construct(['mode' => 'utf-8', 'format' => $this->options['psize'], 'tempDir'=>sys_get_temp_dir()]); $this->_print(); } -- GitLab