Again am stuck into a situation while creating PDF document usong mPDF. I have done the following code which works fine in Firefox and Safari but not working in Google Chrom
I had the same problem, i just added the extension with filename inside output function
$mpdf->Output('myfile.pdf', "D");
Now it is working in both firefox and chrome.
This is my code:-
$html = " Isac Yara "; $mpdf = new \Mpdf\Mpdf(); $mpdf->WriteHTML($html, 2); $mpdf->Output("myfile.pdf", 'D');