Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Download PDF file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Download PDF file

 Post Reply Post Reply Page  12>
Author
Awangku View Drop Down
Groupie
Groupie


Joined: 15 November 2001
Location: Malaysia
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Awangku Quote  Post ReplyReply Direct Link To This Post Topic: Download PDF file
    Posted: 18 May 2003 at 9:31pm
Does anyone here know the script for force-downloading a PDF file other than right-clicking the link? I've tried a few but they don't seem to work. I've also read the help/explanation/tutorial/whatever on the topic but they only get me more confused. Any help here?
Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 1:41am

One way is to change the content-type and stream it to the user.

But in the end, its up to the user whether they want to download it or view it in their browser. Thats why we have the option of changing it ourselves.

I'd be a little pissed off if you tried to make my mind up for me!

Cheers,
Andrew

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
Awangku View Drop Down
Groupie
Groupie


Joined: 15 November 2001
Location: Malaysia
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Awangku Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 2:16am

I totally agree with you, Bunce. In my case, though, I have to make the decisions for those people since the PDF files are quite huge (approximately 500KB). Opening them online is definitely not a good idea.

What I have in mind is when they click the link, the Save As dialog box would appear and they have the option to save it or open it online. I've tried a number of scripts but somehow they don't work.

Can you help?

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 3:05am
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 10:35am

pdf.asp:

<% response.ContentType ="application/pdf" %> 
<!--#include virtual="/myfile.pdf" -->

Back to Top
karp13 View Drop Down
Groupie
Groupie
Avatar

Joined: 03 January 2002
Location: United States
Status: Offline
Points: 152
Post Options Post Options   Thanks (0) Thanks(0)   Quote karp13 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 2:13pm
Zip them
Back to Top
Awangku View Drop Down
Groupie
Groupie


Joined: 15 November 2001
Location: Malaysia
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Awangku Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 6:42pm
Originally posted by Mart Mart wrote:

pdf.asp:

<% response.ContentType ="application/pdf" %> 
<!--#include virtual="/myfile.pdf" -->

I suppose.. but how would you do it if you have 10 PDF files in one page? Would you use 10 include virtuals?

Back to Top
Awangku View Drop Down
Groupie
Groupie


Joined: 15 November 2001
Location: Malaysia
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Awangku Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 6:46pm

Originally posted by karp13 karp13 wrote:

Zip them

Yup.. a perfect solution.. but it would defeat the purpose. I did say I want to download a PDF file, didn't I? The problem with my users is they are of an older generation and not really as net-savvy as us. Even a step-by-step instruction would be too difficult for some of them. Believe me.. I know. To my everlasting frustation.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.