PHP mPDF save file as PDF
The mPDF docs state that the first argument of Output()
is the file path, second is the saving mode - you need to set it to 'F'
.
$mpdf->Output('filename.pdf','F');
Try this:
$mpdf->Output('my_filename.pdf','D');
because:
D
- means DownloadF
- means File-save only