mPDF is not working

1,567 views
Skip to first unread message

dragos.han

unread,
May 16, 2011, 5:30:26 PM5/16/11
to ZZEE PHPExe
I cannot create a pdf using mPDF. I get this error: 'mPDF Error -
cannot find TTF TrueType font file - /www/mpdf51/ttfonts/
DejaVuSerifCondensed.ttf'.

Do you have any ideea how could i fix that?

I copied mPDF folder in executable's folder, but same thing happened.
Sorry for my English.

Paul (ZZEE)

unread,
May 17, 2011, 2:46:32 AM5/17/11
to php...@googlegroups.com
>I cannot create a pdf using mPDF. I get this error: 'mPDF Error -
> cannot find TTF TrueType font file - /www/mpdf51/ttfonts/
> DejaVuSerifCondensed.ttf'.

Hi,

A path should look like
"zzee:///www/mpdf51/ttfonts/DejaVuSerifCondensed.ttf" (if you really have
that "mpdf51/ttfonts/DejaVuSerifCondensed.ttf" file in the source
directory).

Paul.

dragos.han

unread,
May 17, 2011, 5:18:10 AM5/17/11
to ZZEE PHPExe
Thank you for that. I've modified _MPDF_PATH from
[dirname(preg_replace('/\\\\/','/',__FILE__)) . '/'] in
["zzee://".dirname(preg_replace('/\\\\/','/',__FILE__)) . '/'] in
mpdf.php. It should be the path that which all others paths are
related to. But it still doesn't work. I tried to copile a script that
uses tcPdf. But i got the same 'font unreacheble'.

Is ZZEE PHPExe compatible to fPDF only?

Thank you.

dragos.han

unread,
May 17, 2011, 5:21:45 AM5/17/11
to ZZEE PHPExe
I forgot to mention that after changing _MPDF_PATH the font file was
reached, but still it is no working.
Tx

Paul (ZZEE)

unread,
May 17, 2011, 6:11:46 AM5/17/11
to php...@googlegroups.com
>I forgot to mention that after changing _MPDF_PATH the font file was
> reached, but still it is no working.

Most likely some other path should be fixed too.

Reply all
Reply to author
Forward
0 new messages