Fwd: [PHP] How to make a "Auto View" and a "Download" Link for PDF?
| From: | Nitsan Bin-Nun | Date: | Sun, 22 Jun 2008 20:09:38 +0000 |
| Subject: | Fwd: [PHP] How to make a "Auto View" and a "Download" Link for PDF? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275786@lists.php.net to get a copy of this message | ||
Oops
---------- Forwarded message ----------
From: Nitsan Bin-Nun <nitsanbn@gmail.com>
Date: 21 Jun 2008 19:23
Subject: Re: [PHP] How to make a "Auto View" and a "Download" Link for PDF?
To: Michelle Konzack <linux4michelle@tamay-dogan.net>
I am not 100 percent sure that i have understood your idea,
but if i did
you can place the PDF for online view with content-disposition header*
*>* Content-Disposition: inline; filename=pdf1.pdf
*
replace the *inline* with *attachment* and you get the save as dialog
On 21/06/2008, Michelle Konzack <linux4michelle@tamay-dogan.net> wrote:
>
> ************************************************************************
> * Do not Cc: me, because I READ THIS LIST, if I write here *
> * Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe *
> ************************************************************************
>
> Hello,
>
> I generate PDFs on the fly and I like to setup TWO links on the HTML/PHP
> page for the SAME PDF:
>
> 1) View
> 2) Download
>
> I have seen this on other Websites, but can not figure out HOW this was
> done.
>
> Suggestions?
>
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
> Systemadministrator
> 24V Electronic Engineer
> Tamay Dogan Network
> Debian GNU/Linux Consultant
>
>
> --
> Linux-User #280138 with the Linux Counter,
> http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> Michelle Konzack Apt. 917 ICQ #328449886
> +49/177/9351947 50, rue de Soultz MSN LinuxMichi
> +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
>
>