Hello friends!
I implemented the mPdf librarie in my project, including with the help of the staff here at the forum. The problem is that I am not able to download the pdf file through the Chrome browser. I generate the pdf with the library but when I click download the file in Chrome the file is not downloaded and a message is displayed that there is a problem with the server. In other browsers, Firefox and Edge the file is downloaded normally! Android also doesn't download.
I took a look at the CodeIgniter documentation and tried several ways to force the download of the pdf file, but without success!
In the controller, I'm calling by doing this:
.
PHP Code:
..
$pdf = $mpdf->Output('my-file.pdf', 'I')->setContentType('application/pdf');
return $pdf;
Do I need to do anything else to be able to download the file through the browser Chrome?
The version of mPdf is 8.0.
I thank you in advance for any and all help.