From 74fb35974046ddd44ed5f9ce8db6792373cd8080 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 16 Feb 2016 10:48:40 +0200 Subject: [PATCH] pdf fontface in config --- application/Espo/Services/Pdf.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/Espo/Services/Pdf.php b/application/Espo/Services/Pdf.php index f0132ab9a4..1c1922fbfb 100644 --- a/application/Espo/Services/Pdf.php +++ b/application/Espo/Services/Pdf.php @@ -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'));