Jump to content

sandimilohanic

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sandimilohanic

  • Rank
    Newbie
  1. In administration, inside the WirePdf configuration, when I set Mode: "s" then I get a an exception: mPDF Error - cannot find TTF TrueType font file - /.../site/templates/fonts/DejaVuSans.ttf": invalid checksum 26f399eb8 table: FFTM (expected 6f399eb8) Can i help me why there is a exception?
  2. 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 ); ?>
  3. I have had problems with pw version 2.5.3. When i editing a home page I got an error 404. The problem was because to the homepage i had field types Repeater. When I removed the field Repeater from homepage everything worked ok.
×
×
  • Create New...