Aggiunto formato per stampe con html2pdf

This commit is contained in:
Luca 2018-06-05 14:25:30 +02:00
parent 9a7af8a958
commit 0307cec03f
1 changed files with 2 additions and 2 deletions

View File

@ -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);