Solved

Save PDF instead of opening it

Posted on 2001-06-11
3
244 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
HTML5 storage and web apps 11 54
alert on input text 2 26
Use Mid in Html 6 23
JavaScript character count without counting spaces in Textarea (Code provided) 3 14
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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