View Full Version : Downloading PDF files
rbrostoff
08-08-2007, 10:54 AM
I would like to add a couple of pages to my web site that contain PDF documents. I would like users to be able to download the PDF document. What is the easiest way to do this? The PDF is not a "Fillable" document.
Early Out
08-08-2007, 12:49 PM
<a href="thedocument.pdf">Click here to get the PDF document</a>
Whether it opens in the user's browser or not is under the user's control. If it opens within the browser or launches Adobe Reader outside the browser, they can just hit the "save a copy" icon in Adobe Reader.
felgall
08-08-2007, 12:53 PM
To force the file to be offered for download regardless of browser settings you need to set the document disposition to attachment in the header sent with the file. The only way to do that is to use a server side scripting language such as PHP to create the PDF.
rbrostoff
09-04-2007, 12:31 PM
<a href="thedocument.pdf">Click here to get the PDF document</a>
Whether it opens in the user's browser or not is under the user's control. If it opens within the browser or launches Adobe Reader outside the browser, they can just hit the "save a copy" icon in Adobe Reader.
---> I used this html code and it worked fine the first time. Now I have revised the page, added a couple of additional pdf docs and it no longer works. I have placed the pdf's in the "index_files" folder. When I try the to use it, I get an error message that the PDF cannot be found. Any thoughts?
Incidentally, if I use the original html doc, it still works.
Thanks.
redsox9
09-04-2007, 12:58 PM
If you've changed the code in your HTML document, check it to make sure that you have it pointed to the correct spot.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.