Skip to content

NOW MANAGED ON CODEBERG

Adjusted dompdf font path to writable folder

Dan Brownc2cc1ec5e5d6
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