Skip to content
Snippets Groups Projects
Unverified Commit 6e7e9b45 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4827 from aydreeihn/issue/mpdf

MPDF Issues
parents ea77250d 064e0020
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,8 @@ class FAQ extends VerySimpleModel {
include STAFFINC_DIR . 'templates/faq-print.tmpl.php';
$html = ob_get_clean();
$pdf = new mPDFWithLocalImages('', $paper);
$pdf = new mPDFWithLocalImages(['mode' => 'utf-8', 'format' =>
$paper, 'tempDir'=>sys_get_temp_dir()]);
// Setup HTML writing and load default thread stylesheet
$pdf->WriteHtml(
'<style>
......
......@@ -108,7 +108,7 @@ class Task2PDF extends mPDFWithLocalImages {
$this->task = $task;
$this->options = $options;
parent::__construct(['format' => $this->options['psize']]);
parent::__construct(['mode' => 'utf-8', 'format' => $psize, 'tempDir'=>sys_get_temp_dir()]);
$this->_print();
}
......
......@@ -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 %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment