[Klug-general] printing a web page to PDF

Nathan Friend nathan.friend at gmail.com
Tue Apr 22 14:21:19 UTC 2014


Have you tried DOMPDF? http://www.digitaljunkies.ca/dompdf/about.php

There is a Code Igniter helper too
https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf

Cheers,

Nathan.


On Tue, Apr 22, 2014 at 2:56 PM, Paul Littlefield <info at paully.co.uk> wrote:

> On 22/04/14 11:03, Dan Attwood wrote:
>
>> Does anyone have a good method to put a button on a web page that when
>> clicked it will generate a pdf of all the content in '<div
>> id="content"></div>' and force it to download.
>>
>
> Oooo, an interesting one...
>
> --
>
> Paul Littlefield
>
> Telephone: 07801 125705
> Email: info at paully.co.uk
> Web: http://www.paully.co.uk
> Twitter: https://twitter.com/paullittlefield
> Wiki: http://wiki.indie-it.com/index.php?title=Special:AllPages
> Blog: http://www.littlefield.info
> Photo: http://gravatar.com/plittlefield
> Google+: https://plus.google.com/+PaulLittlefield
> LinkedIn: http://uk.linkedin.com/in/paullittlefield
> Trakt: http://trakt.tv/user/plittlefield
> LastFM: http://www.last.fm/user/paullittlefield
>
> Paul Littlefield is environmentally responsible. Please consider the
> environment before printing this email. This email and any attachment is
> intended for the named addressee only, or person authorised to receive it
> on their behalf. The content should be treated as confidential and the
> recipient may not disclose this message or any attachment to anyone else
> without authorisation. If this transmission is received in error please
> notify the sender immediately and delete this message from your email
> system. All electronic transmissions to and from me are recorded and may be
> monitored. Finally, the recipient should check this email and any
> attachments for viruses. Paul Littlefield accepts no liability for any
> damage caused by any virus transmitted by this email.
>
>
> x86_64
> Ubuntu 13.04
> X.Org X Server 1.13.3
>
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20140422/db7d9a3a/attachment.html>


More information about the Kent mailing list