Commit 5780ade2 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Exporter PDF : correction du constructeur pour compatibilité avec la version de mPDF requise

parent 7605f564
Loading
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -638,20 +638,19 @@ 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,
                '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',
            ]);