pdf fontface in config

This commit is contained in:
yuri
2016-02-16 10:48:40 +02:00
parent f7ffadc76f
commit 74fb359740
+3 -2
View File
@@ -92,13 +92,14 @@ class Pdf extends \Espo\Core\Services\Base
$pdf = new \Espo\Core\Pdf\Tcpdf();
$pdf->setFont($this->fontFace, '', $this->fontSize, '', true);
$fontFace = $this->getConfig()->get('pdfFontFace', $this->fontFace);
$pdf->setFont($fontFace, '', $this->fontSize, '', true);
$pdf->setPrintHeader(false);
$pdf->setAutoPageBreak(true, $template->get('bottomMargin'));
$pdf->setMargins($template->get('leftMargin'), $template->get('topMargin'), $template->get('rightMargin'));
if ($template->get('printFooter')) {
$htmlFooter = $htmlizer->render($entity, $template->get('footer'));
$pdf->setFooterPosition($template->get('footerPosition'));