mPDF library error

1

I'm having problems with the mPDF library, I searched the internet for some tutorials but I did not solve my problem.

When I try to access the page from an error:

  

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 written html.

How can I solve this problem? Are there other libraries to generate PDF easily and quickly?

I'm using centos to develop.

    
asked by anonymous 28.06.2016 / 19:31

1 answer

2

To install the extension mb_string on centos run the following command line:

yum install php-mbstring

Restart apache and see if it has been properly installed, you can look at phpinfo() by mbstring .

Based on:

How to install PHP mbstring on CentOS 6.2

    
28.06.2016 / 20:11