From c2cc1ec5e5d6c37b75506498ce34e0ac44d21b30 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 15 May 2021 12:19:07 +0100 Subject: [PATCH] Adjusted dompdf font path to writable folder Related to #2746 --- app/Config/dompdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Config/dompdf.php b/app/Config/dompdf.php index 87be53df5..094739cd9 100644 --- a/app/Config/dompdf.php +++ b/app/Config/dompdf.php @@ -38,7 +38,7 @@ return [ * Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic, * Symbol, ZapfDingbats. */ - "DOMPDF_FONT_DIR" => app_path('vendor/dompdf/dompdf/lib/fonts/'), //storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) + "DOMPDF_FONT_DIR" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) /** * The location of the DOMPDF font cache directory @@ -219,7 +219,7 @@ return [ * * @var bool */ - "DOMPDF_ENABLE_JAVASCRIPT" => true, + "DOMPDF_ENABLE_JAVASCRIPT" => false, /** * Enable remote file access