Re: Printer friendly version script
| From: | Pedro Garre | Date: | Thu, 13 Jun 2002 18:35:36 +0000 |
| Subject: | Re: Printer friendly version script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102019@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
I think the only solution is to convert it to PDF. In theory, CSS2 provides
with the possibility to configure the print format, but no browser supports
it.
Pedro.
On Thursday 13 June 2002 19:56, Miguel Cruz wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
>
> On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote:
> > Anybody knows a good printer friendly version php script
> > thank´s in advance
>
> Well, it's entirely dependent on your particular HTML; there's no
> general-purpose solution.
>
> <?
> $P = ($_GET['printerfriendly'] == 'yes') ? 1 : 0;
> ?><html><body><?
>
> if ($P)
> {
> ?><img src="images/printerfriendly.gif"><?
> }
>
> else
> {
> ?><img src="images/printerhostile.gif"><?
> }
>
> ?></body></html>
>
> miguel