mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
dompdf fontdir
This commit is contained in:
@@ -68,6 +68,12 @@ class DompdfInitializer
|
||||
->setDefaultFont($this->getFontFace($template))
|
||||
->setIsJavascriptEnabled(false);
|
||||
|
||||
$fontDir = $this->metadata->get('app.pdfEngines.Dompdf.additionalParams.fontDir');
|
||||
|
||||
if ($fontDir) {
|
||||
$options->setFontDir($fontDir);
|
||||
}
|
||||
|
||||
$pdf = new Dompdf($options);
|
||||
|
||||
$this->mapFonts($pdf, $params->isPdfA());
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalParams": {
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"description": "Additional engine-wise parameters."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user