EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
pdf: disable js
Yurii616ee676222f
diff --git a/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php b/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.phpindex 9c40e10f53..ca45f51c6f 100644--- a/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php+++ b/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php@@ -63,8 +63,10 @@ class DompdfInitializer{$options = new Options();- $options->setIsPdfAEnabled($params->isPdfA());- $options->setDefaultFont($this->getFontFace($template));+ $options+ ->setIsPdfAEnabled($params->isPdfA())+ ->setDefaultFont($this->getFontFace($template))+ ->setIsJavascriptEnabled(false);$pdf = new Dompdf($options);