View Full Version : Inserting Word documents, pdf files

10-13-2007, 06:50 AM
Please guide... I need to put complete pdf file and word documents to be available for download on a web page. These files need not open in web browser but the user should be able to download them, like we download and save images. kindly advice how to go about it. M using dreamweaver MX

thanks a lot,

10-13-2007, 07:11 AM
just point to the document like you would a web page

10-13-2007, 12:02 PM
just point to the document like you would a web page
Depending on your preferences, that very well might open the document in the browser.

niknik, the quick and dirty solution is to give instructions to right-click and save-as.

10-15-2007, 06:55 PM
if it is in a ZIP file it will prompt them to download, but Dom is probably right, then again even that might be to much for people depending on your target audience?

10-16-2007, 02:08 PM
You'd be best putting all PDF's and then they can open in the browser or be saved as from more experienced users.

You could use http://www.zamzar.com/ to convert you word .docs to .pdf


10-16-2007, 02:28 PM
in PHP you can set it to point to the file like this...

header('Content-disposition: attachment; filename=file.doc');
header('Content-type: application/msword doc');

so you would just pass in the path of the doc and the name and let php send you the file.

This should prompt for a download.

the only downside is you need a PHP environment

10-16-2007, 02:35 PM
Did you test this DJ? It looks like if the browser has it's default set to open Word embedded *inside* the browser, this would still happen.

10-16-2007, 02:45 PM
Mmm this has always prompted me to save before download