Greeting,
I need help to use a font 'dejavusans'? I have problems with the display Croatian letters š, đ, č, ć, ž.
I use
$pdf = $modules->get('WirePDF');
but I can not set the font 'dejavusans'
<?php
$pdf = $modules->get('WirePDF');
$mpdf = $pdf->mpdf;
$pdfPath = $config->paths->files . $page->id . "/" . $page->title.'.pdf';
$stylesheet = file_get_contents($config->paths->templates.'/pages2pdf/styles.css');
$wireSendOptions = array('exit' => false, 'forceDownload' => false, 'downloadFilename' => '');
$mpdf->WriteHTML($stylesheet,1);
$html = "";
$html .= "<html lang='hr'><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /></head><body>";
$html .= '<table border=0>';
$html .= 'text example š đ č ć ž';
$html .= "</body></html>";
$mpdf->WriteHTML($html);
$mpdf->Output($pdfPath, 'F');
wireSendFile($pdfPath, $wireSendOptions );
?>