From 258e92bd0bb1eb588a1878a28ade4c53a8f1bd3b Mon Sep 17 00:00:00 2001 From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr> Date: Tue, 28 Feb 2023 10:06:47 +0100 Subject: [PATCH] =?UTF-8?q?Exporter=20PDF=20:=20correction=20du=20construc?= =?UTF-8?q?teur=20pour=20compatibilit=C3=A9=20avec=20la=20version=20de=20m?= =?UTF-8?q?PDF=20requise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UnicaenApp/Exporter/Pdf.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/UnicaenApp/Exporter/Pdf.php b/src/UnicaenApp/Exporter/Pdf.php index 3e3ecb77..9d6eeda4 100644 --- a/src/UnicaenApp/Exporter/Pdf.php +++ b/src/UnicaenApp/Exporter/Pdf.php @@ -638,21 +638,20 @@ class Pdf implements ExporterInterface { if (null === $this->mpdf) { -// define("_MPDF_TEMP_PATH", sys_get_temp_dir() . '/mpdf'); - // create object mpdf $this->mpdf = new mPDF([ - $mode = 's', - $this->format . ($this->orientationPaysage ? '-L' : null), - $this->defaultFontSize, - '' /* $default_font */, - $this->marginLeft, - $this->marginRight, - $this->marginTop, - $this->marginBottom, - $this->marginHeader, - $this->marginFooter, - 'tempDir' => sys_get_temp_dir() . '/mpdf', + 'mode' => $mode = 's', + 'format' => $this->format/* . ($this->orientationPaysage ? '-L' : null)*/, + 'default_font_size' => $this->defaultFontSize, + 'default_font' => '', + 'margin_left' => $this->marginLeft, + 'margin_right' => $this->marginRight, + 'margin_top' => $this->marginTop, + 'margin_bottom' => $this->marginBottom, + 'margin_header' => $this->marginHeader, + 'margin_footer' => $this->marginFooter, + 'orientation' => $this->orientationPaysage ? 'L' : 'P', + 'tempDir' => sys_get_temp_dir() . '/mpdf', ]); $this->mpdf->useSubstitutions = false; -- GitLab