Re: Bust out a PDF via the print stylesheet?
| From: | Bastien | Date: | Fri, 18 May 2012 19:46:47 +0000 |
| Subject: | Re: Bust out a PDF via the print stylesheet? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317903@lists.php.net to get a copy of this message | ||
Bastien Koert
On 2012-05-18, at 12:34 PM, Brian Dunning <brian@briandunning.com> wrote:
> Hey all -
>
> The articles on my web site already have a very nice stylesheet that produces a print version.
> Does anyone know if there's a such a thing as a PHP class that would let me put up a
> "Download PDF" link that would generate a PDF doc on the fly, using that same stylesheet?
> I've used various PHP PDF classes before, but I'd rather see if I can shortcut this rather
> than assembling the doc from scratch.
>
> - Brian
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Have a look at dompdf. It's a class that allows you to turn the HTML into a PDF
Bastien