Click to See Complete Forum and Search --> : How do I create .pdf download?


screaming_banjo
01-06-2004, 05:17 AM
Hi

I would like users to be able to download .pdf files from my site to their 'My Documents' folder. Unfortunately I have no idea how to do this.

I've created links to word documents previously, where the document opens inside IE, however I would prefer a dialogue box that defaults to My Documents giving the user the option to download to a different location if they want to. I realise that a link <a href etc.... will still have the save option but I'd rather make it smoother.

Thanks in advance for any help.

pyro
01-06-2004, 07:19 AM
Take a look at http://www.infinitypages.com/research/download.htm.

screaming_banjo
01-06-2004, 07:39 AM
Once again, PHP rears it's head! I figure I'm going to have to learn it.....whether I like it or not!

I thought this was something that could be done with HTML alone.....silly me, things are never as simple as I hope!!!

Thanks a lot, it doesn't seem to be that difficult and I'm sure if I encounter any problems you'll hear from me again in the PHP forum!!

Thanks a lot!

pyro
01-06-2004, 07:46 AM
lol... Ok, good luck. :)

Robert Wellock
01-07-2004, 10:27 AM
If you have Apache server just use .htaccess and make PDF application/octet-stream its far easier and uses less bandwidth.

AddType application/octet-stream pdf