diff --git a/gulpfile.js b/gulpfile.js index 7291af24a..d93a314c5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -255,6 +255,8 @@ gulp.task('release', function () { '!./vendor/tecnickcom/tcpdf/fonts/*helvetica*', './vendor/mpdf/mpdf/tmp/*', './vendor/mpdf/mpdf/ttfonts/*', + '!./vendor/mpdf/mpdf/ttfonts/DejaVuinfo.txt', + '!./vendor/mpdf/mpdf/ttfonts/DejaVu*Condensed*', './vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/*', ]); diff --git a/pdfgen.php b/pdfgen.php index 4c4a6bb07..51611d721 100644 --- a/pdfgen.php +++ b/pdfgen.php @@ -158,7 +158,7 @@ if (!$old_format) { // Instanziamento dell'oggetto mPDF $mpdf = new \Mpdf\Mpdf([ - 'mode' => 'c', + 'mode' => 'utf-8', 'format' => $settings['format'], 'orientation' => $settings['orientation'], 'font-size' => $settings['font-size'],