From 0307cec03fae13ad596ebf917321f8a196401c7b Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 5 Jun 2018 14:25:30 +0200 Subject: [PATCH] Aggiunto formato per stampe con html2pdf --- src/Prints.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Prints.php b/src/Prints.php index f94265b9e..04d66fd2d 100644 --- a/src/Prints.php +++ b/src/Prints.php @@ -166,7 +166,7 @@ class Prints return !self::isOldStandard($print); } - protected static function oldLoader($id_print, $id_record, $filename = null) + protected static function oldLoader($id_print, $id_record, $filename = null, $format = 'A4') { $infos = self::get($id_print); $options = self::readOptions($infos['options']); @@ -215,7 +215,7 @@ class Prints $filename = !empty($filename) ? $filename : sanitizeFilename($report_name); $title = basename($filename); - $html2pdf = new Spipu\Html2Pdf\Html2Pdf($orientation, 'A4', 'it', true, 'UTF-8'); + $html2pdf = new Spipu\Html2Pdf\Html2Pdf($orientation, $format, 'it', true, 'UTF-8'); $html2pdf->writeHTML($report); $html2pdf->pdf->setTitle($title);