I have used mpdf for pdf creation. Now, I want to download the generated pdf file to my local machine.
I used below code for this.
$mpdf->Output('dummy.pdf', 'D');
But, its not working for me. Please help me
I have used mpdf for pdf creation. Now, I want to download the generated pdf file to my local machine.
I used below code for this.
$mpdf->Output('dummy.pdf', 'D');
But, its not working for me. Please help me
Maybe try this:
$mpdf->Output('filename.pdf', Path::FILE);
Or look at the documentation: https://mpdf.github.io/reference/mpdf-functions/output.html
Hope this helps.