Solved

Save PDF instead of opening it

Posted on 2001-06-11
3
229 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
css to place image in corner of html table cell. 5 40
Animate a Title 7 37
C3-->D3 Line Chart 4 18
CSS measurement 10 14
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now