mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-11 07:05:22 +01:00
Aggiunto formato per stampe con html2pdf
This commit is contained in:
parent
9a7af8a958
commit
0307cec03f
@ -166,7 +166,7 @@ class Prints
|
|||||||
return !self::isOldStandard($print);
|
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);
|
$infos = self::get($id_print);
|
||||||
$options = self::readOptions($infos['options']);
|
$options = self::readOptions($infos['options']);
|
||||||
@ -215,7 +215,7 @@ class Prints
|
|||||||
$filename = !empty($filename) ? $filename : sanitizeFilename($report_name);
|
$filename = !empty($filename) ? $filename : sanitizeFilename($report_name);
|
||||||
$title = basename($filename);
|
$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->writeHTML($report);
|
||||||
$html2pdf->pdf->setTitle($title);
|
$html2pdf->pdf->setTitle($title);
|
||||||
|
Loading…
Reference in New Issue
Block a user