Hi everybody,
There is a option in report module in suiteCRM called “Download PDF”. I want to add a specific font for the PDF file like “Meiryo”.
In the AOR_Report/controller.php file, there is a function called "“protected function action_downloadPDF()” has following line.
$pdf = new mPDF(‘en’, ‘A4-L’, ‘’,’’) ;
$pdf->SetAutoFont();
How can I set up this specific font like “Meiryo” for PDF file.
Is there anyone who can help me about it? I need help.
I suspect you are using SuiteCRM 7.11.x? Let us know the version you are using as 7.12.x now has an updated PDF library.
IF it’s 7.11.x have a look at the documentation of mPDF here for adding Fonts. Fonts in mPDF 5.x – Fonts & Languages – mPDF Manual That SetAutoFonts I don’t believe it’s implying to be, but it detects the language of the input/characters to pick right font for that language i.e. german, chinese etc.