This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > Auto download PDF?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Auto download PDF?
|
|
| Walt F. Schaefer 2006-01-23, 6:20 am |
| My client publishes a newsletter (paper). They want copies on their website.
I get 2 copies from the publisher, a hi-res for download and printing and a
lo-res for online viewing. I want the link for the hi-res to automatically
download the file, not open it. I know I can give the user instructions,
"Right click, select Save as..." but I would prefer to make the process
simpler.
Is it possible to configure a link for a PDF so a left-click automatically
starts the download process?
Thanks.
Walt
| |
| Nelson Therrien 2006-01-23, 6:20 am |
| Hi Walt,
I may be wrong, but I don't think it's possible, 'cause allowing this would
mean that anybody could save what they want on your computer when you browse
a page... Of course, if the OS doesn't recognize the file extension or don't
have any default software to open it, it will prompt you to save it... but
most people just open .pdf in a browser window.
Nelson
P.S. hope someone will tell if I'm wrong...
"Walt F. Schaefer" <walt@waltswebworx.com> a écrit dans le message de news:
dqqtde$516$1@forums.macromedia.com...
> My client publishes a newsletter (paper). They want copies on their
> website.
> I get 2 copies from the publisher, a hi-res for download and printing and
> a
> lo-res for online viewing. I want the link for the hi-res to automatically
> download the file, not open it. I know I can give the user instructions,
> "Right click, select Save as..." but I would prefer to make the process
> simpler.
>
> Is it possible to configure a link for a PDF so a left-click automatically
> starts the download process?
>
> Thanks.
>
> Walt
>
>
| |
| jcdesigns 2006-01-23, 6:20 am |
| I believe zipping the file is the only way to make this happen. I'm not a pro though, so if there is another way, I wouldn't mind knowing that too.
| |
|
| No there isn't.
It's up to the browser on the user's machine, and the user controls that,
not the web designer.
"Walt F. Schaefer" <walt@waltswebworx.com> wrote in message
news:dqqtde$516$1@forums.macromedia.com...
> My client publishes a newsletter (paper). They want copies on their
> website.
> I get 2 copies from the publisher, a hi-res for download and printing and
> a
> lo-res for online viewing. I want the link for the hi-res to automatically
> download the file, not open it. I know I can give the user instructions,
> "Right click, select Save as..." but I would prefer to make the process
> simpler.
>
> Is it possible to configure a link for a PDF so a left-click automatically
> starts the download process?
>
> Thanks.
>
> Walt
>
>
| |
| jcdesigns 2006-01-23, 6:22 am |
| Crap, I stand corrected. Like I said, I'm not a pro. I just talked to our IT
guy. Cary is right, its what they have their machine set too. My comp happened
to be set that way, so it worked for me, and dumb XXX me assumed that it would
work everywhere. Sorry about that Walt.
| |
| Joe Makowiec 2006-01-23, 6:22 am |
| On 20 Jan 2006 in macromedia.dreamweaver, Walt F. Schaefer wrote:
> My client publishes a newsletter (paper). They want copies on their
> website. I get 2 copies from the publisher, a hi-res for download
> and printing and a lo-res for online viewing. I want the link for
> the hi-res to automatically download the file, not open it. I know I
> can give the user instructions, "Right click, select Save as..." but
> I would prefer to make the process simpler.
>
> Is it possible to configure a link for a PDF so a left-click
> automatically starts the download process?
Have a look here:
Message-ID: <c5cqr1lm4v9vm5prltpras4p0qkmn53bur@4ax.com>
--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
| |
| Gary White 2006-01-23, 6:23 am |
| On Fri, 20 Jan 2006 06:51:23 -0800, "Walt F. Schaefer"
<walt@waltswebworx.com> wrote:
>Is it possible to configure a link for a PDF so a left-click automatically
>starts the download process?
Contrary to all the no's you got, it can be done by modifying the
headers sent in response to the browser's request for the document. This
requires a bit of server side scripting. What languages are supported on
your server?
Gary
| |
|
| Whether you can or can't, why would you want to change the functionality of
a user's browser? Isn't it their browser, not yours?
"Gary White" <reply@newsgroup.please> wrote in message
news:3452t11d45ul8bopnfdohnar5bqj4hbikr@4ax.com...
> On Fri, 20 Jan 2006 06:51:23 -0800, "Walt F. Schaefer"
> <walt@waltswebworx.com> wrote:
>
>
>
> Contrary to all the no's you got, it can be done by modifying the
> headers sent in response to the browser's request for the document. This
> requires a bit of server side scripting. What languages are supported on
> your server?
>
> Gary
| |
| Murray *TMM* 2006-01-23, 6:25 am |
| That's not what is happening. What Gary is suggesting is that the page
linked to when you click on download sends the file to the client by sending
headers to the server telling the client to offer a download.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Cary" <nospam@nospam.nospam> wrote in message
news:dqri52$2qe$1@forums.macromedia.com...
> Whether you can or can't, why would you want to change the functionality
> of a user's browser? Isn't it their browser, not yours?
>
>
> "Gary White" <reply@newsgroup.please> wrote in message
> news:3452t11d45ul8bopnfdohnar5bqj4hbikr@4ax.com...
>
>
| |
| Gary White 2006-01-23, 6:25 am |
| On Fri, 20 Jan 2006 12:44:23 -0800, "Cary" <nospam@nospam.nospam> wrote:
>Whether you can or can't, why would you want to change the functionality of
>a user's browser? Isn't it their browser, not yours?
If you've read many of my posts here, you'd know that I'm one of the
most vocal about leaving the users browser alone. As Murray says, I'm
not suggesting changing anything about the browser. I'm saying that you
can send appropriate response headers that will cause the browser to
offer the user a choice to save or open a document. Giving the user
choice is rarely a bad thing.
Gary
| |
| Walt F. Schaefer 2006-01-23, 6:27 am |
| Thanks for the reply but the link only opens a mail to e-mail.
???
"Joe Makowiec" <makowiec@invalid.invalid> wrote in message
news:Xns9751719BA1750makowiecatnycapdotrE@216.104.212.96...
> On 20 Jan 2006 in macromedia.dreamweaver, Walt F. Schaefer wrote:
>
>
> Have a look here:
>
> Message-ID: <c5cqr1lm4v9vm5prltpras4p0qkmn53bur@4ax.com>
>
> --
> Joe Makowiec
> http://makowiec.net/
> Email: http://makowiec.net/email.php
| |
| Walt F. Schaefer 2006-01-23, 6:27 am |
| ASP, PHP
"Gary White" <reply@newsgroup.please> wrote in message
news:3452t11d45ul8bopnfdohnar5bqj4hbikr@4ax.com...
> On Fri, 20 Jan 2006 06:51:23 -0800, "Walt F. Schaefer"
> <walt@waltswebworx.com> wrote:
>
automatically[color=darkred]
>
>
> Contrary to all the no's you got, it can be done by modifying the
> headers sent in response to the browser's request for the document. This
> requires a bit of server side scripting. What languages are supported on
> your server?
>
> Gary
| |
|
|
|
| Then I must have misinterpreted the original poster.
I thought they were trying to get around the ability of some people using
the PDF browser plug-in that allows a user to download a PDF a page at a
time. My error.
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dqrmit$7oq$1@forums.macromedia.com...
> That's not what is happening. What Gary is suggesting is that the page
> linked to when you click on download sends the file to the client by
> sending headers to the server telling the client to offer a download.
>
> --
> Murray
| |
|
| Then I must have misinterpreted the original poster.
I thought they were trying to get around the ability of some people using
the PDF browser plug-in that allows a user to download a PDF a page at a
time. My error.
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dqrmit$7oq$1@forums.macromedia.com...
> That's not what is happening. What Gary is suggesting is that the page
> linked to when you click on download sends the file to the client by
> sending headers to the server telling the client to offer a download.
>
> --
> Murray
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|