New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download pdf and continue execution of code #416

aveshnaik007 opened this Issue Nov 23, 2018 · 3 comments


None yet
3 participants

aveshnaik007 commented Nov 23, 2018

I have successfully install html2pdf. All the functionality is working fine. My requirement is to download the pdf and redirect to other page.

The file is getting downloaded but system does not redirect to other page.

$html2pdf->output("ok.pdf", "D");


This comment has been minimized.

imadetouil commented Nov 26, 2018

$html2pdf->output("ok.pdf", "D");


This comment has been minimized.

aveshnaik007 commented Nov 28, 2018

Yes I did that. The system is not reading the redirect code.


This comment has been minimized.


LittleBigFox commented Nov 28, 2018

Try to use some javascript (document.location.href="..."), because when you generate the pdf, the buffer is sent and the response is stopped...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment