From c38f0456ad558c494710e7a94bc756b4cec3be05 Mon Sep 17 00:00:00 2001
From: aydreeihn <adriane@enhancesoft.com>
Date: Tue, 2 Apr 2019 14:26:19 -0500
Subject: [PATCH] MPDF Issues:

1. Task Exports: This commit fixes the contructor for printing Tasks using MPDF

2. PDF Formatting: This commit fixes an issue where the header of each thread entry did not stretch across the page correctly. This was an unintentional side effect of trying to fix the way HTML tables printed in PDFs.
---
 include/class.pdf.php                                        | 2 +-
 include/mpdf/vendor/mpdf/mpdf/src/Config/ConfigVariables.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.pdf.php b/include/class.pdf.php
index df85cd2ef..8d80d4566 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 ab2e7056e..95633de2a 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 %
-- 
GitLab