Solved

Save PDF instead of opening it

Posted on 2001-06-11
3
245 Views
Last Modified: 2008-03-10
Hi, Folks

A friend of mine is wanting to include some PDF documents on his website, but wants to be able to set his HTML so that instead of automatically opening the PDF file in IE the user is given the option to save the document instead.

I know that one could right-click and select "Save target as..." but is there some way of modifying the <a> tag to set this option as the default?

Any help would be appreciated!

Cheers,

Andrew
0
Comment
Question by:dramaqueen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 200 total points
ID: 6179448
No there isn't, its a client side setting. The best thing he can do is to warn the user in advance. (There is a save option in the Acrobat plugin IIRC).

An alternitive would be to shove the file in a zip file, its a pain as the user then has to unzip it but it will prompt for download.
0
 
LVL 10

Expert Comment

by:dij8
ID: 6179562
This is not possible because it is a set MIME type.  At least it is once the user has Adobe Acrobat Reader installed.  If the user does not have it installe dthey will be prompted.  But that won't be much use because they won't be able to read the downloaded file.

The ONLY way you are going to get the prompt for a download is to have a file with a non-recognised (can not be rendered by the browser using a plugin) MIME type.  Like ZIP or EXE for example.  You could offer a download link which would point to a zipped copy of the PDF document as well as one that will open in the browser.
0
 

Author Comment

by:dramaqueen
ID: 6180070
That's a pity, but I'll suggest the Zip route to him. Thanks anyway, guys.

A.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question