diff --git a/src/UnicaenApp/Exporter/Pdf.php b/src/UnicaenApp/Exporter/Pdf.php index 3e3ecb77453afd9101e1348552af83dd62bec1f4..9d6eeda4418c66189d659816a4e1802900d4c475 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;