Here my code
in contoller
TCPDF::writeHTML($html_content, true, false, true, false, '');
return TCPDF::Output('test.pdf', 'D');
in blade
<a href="/tes.pdf" type="button" target="_self">Download</a>
The problem only in android phone after downloaded file become 'test.pdf.html', any solution?
You can modify your controller code to output the PDF as a string and then return a response with the correct headers.