1
I’m having problems with mPDF library, I searched the internet for some tutorials but did not solve my problem.
when I try to access an error page :
Error - mPDF requires mb_string functions. Ensure that PHP is Compiled with php_mbstring.dll enabled.
My php page is programmed as follows:
include("../mpdf.php");
$mpdf=new mPDF('c');
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
Where i $html
is my html written.
How can I solve this problem ? There is another library to generate PDF easily and quickly ?
I’m using the centos to develop.
You need to enable the
php_mbstring
in php.ini if you haven’t done it yet.– rray
what line will enable ?
– Renan Rodrigues
Remove the semicolon from this line =>
extension=php_mbstring.dll
and restart apache, test again now should work.– rray
@rray in mine does not have this line
– Renan Rodrigues
Is it windows or linux? see if there is this dll in the folder
ext
and add the previous comment line.– rray
my server runs on linux
– Renan Rodrigues
I think you need to install it, via command line, ask the question which linux you are using, whether it is Ubuntu, debian, centos etc.
– rray
my linux is cent'os
– Renan Rodrigues