nitiphone2021
New member
According to i upload my mpdf to my real host on internet and try to print pdf out but i got fail at code below:
I dont't know why this code $mpdf = new \Mpdf\Mpdf(); cann't work it's print out only "01"
I dont't know why this code $mpdf = new \Mpdf\Mpdf(); cann't work it's print out only "01"
Code:
echo "0";
require_once __DIR__ . '/vendor/autoload.php';
echo "1";
$mpdf = new \Mpdf\Mpdf();
echo "2";
$mpdf->WriteHTML('Hello World');
$mpdf->Output('filename.pdf');