Skip to content
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

PDF Download #225

Open
ghost opened this issue Feb 23, 2018 · 3 comments
Open

PDF Download #225

ghost opened this issue Feb 23, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2018

PDF files keep opening inside php desktop.
Is there a way to force them to download instead

tnx in advance

@cztomczak
Copy link
Owner

cztomczak commented Feb 23, 2018

Use --disable-pdf-extension flag to force downloading of PDF files. See the "command_line_switches" option on the ChromeSettings wiki page. Alternatively you can send appropriate headers to force download of a file, if PDF is sent by a PHP script.

@antonismixail
Copy link

antonismixail commented Dec 4, 2018

Try to embed the link with the download tag example : <a href="yo.pdf" download>

@mikemania
Copy link

I have the opposite problem. Originally it worked fine, but all of a sudden PDF links go straight to the download dialog. I'm using js to open a new window to a fpdf generated pdf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants