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

Open
aveshnaik007 opened this Issue Nov 23, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@aveshnaik007

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");

@imadetouil

This comment has been minimized.

imadetouil commented Nov 26, 2018

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

@aveshnaik007

This comment has been minimized.

aveshnaik007 commented Nov 28, 2018

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

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 28, 2018

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

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