Force a pdf file to download instead of opening.
Posted on 2004-07-31
Have a special case instance where I would like a visitor to be able to download a pdf form without the pdf file first opening in a new window.
What I have working:
straight html page (frames).
a link to name.pdf.
Using MS Frontpage
My only options for the pdf hyperlink were to have it open in the same page, specific frame, or new window.
And what seems to be a real puzzle is that I have security set on the pdf document to allow the filling in of form data, printing and saving, but nothing else.
If the user opens up the pdf in a new window and fills in any information on the form, it is saved to the pdf regardless of being on the web server??? the next user can open up the pdf and any information previously filled in, is right there still visible.
So, for my purposes with this pdf form, I need to force download instead of opening as a web page.