diff --git a/include/class.pdf.php b/include/class.pdf.php index df85cd2ef4a06abd4eb1fe247b7fce902ff5c058..8d80d4566082faa79c63894e0cde5b95be7e035f 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('', $this->options['psize']); + parent::__construct(['mode' => 'utf-8', 'format' => $psize, 'tempDir'=>sys_get_temp_dir()]); $this->_print(); } diff --git a/include/mpdf/vendor/mpdf/mpdf/src/Config/ConfigVariables.php b/include/mpdf/vendor/mpdf/mpdf/src/Config/ConfigVariables.php index ab2e7056ec801bcbf6dc058c78549292044a5ef4..95633de2a24402e48cf4d211fa27f7f0bb1dc758 100755 --- a/include/mpdf/vendor/mpdf/mpdf/src/Config/ConfigVariables.php +++ b/include/mpdf/vendor/mpdf/mpdf/src/Config/ConfigVariables.php @@ -262,7 +262,7 @@ class ConfigVariables // Reduce memory usage processing tables (but with increased processing time) 'packTableData' => false, - 'ignore_table_percents' => true, + 'ignore_table_percents' => false, 'ignore_table_widths' => true, // If table width set > page width, force resizing but keep relative sizes // Also forces respect of cell widths set by %