mPDF Manual – Troubleshooting

Notice warnings

If you get something like:

Notice: Undefined index: win-1252 in D:\Program Files\Zend\Apache2\htdocs\mpdf\mpdf.php on line 3741

you need to suppress NOTICE warnings using e.g.

error_reporting(E_ALL ^ E_NOTICE);

// or

error_reporting(0);

Include this at the start of your script before including the mpdf.php file.