<div dir="ltr">Have you tried DOMPDF? <a href="http://www.digitaljunkies.ca/dompdf/about.php">http://www.digitaljunkies.ca/dompdf/about.php</a><div> </div><div>There is a Code Igniter helper too <a href="https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf">https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf</a></div>
<div><br></div><div>Cheers,</div><div><br></div><div>Nathan.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 2:56 PM, Paul Littlefield <span dir="ltr"><<a href="mailto:info@paully.co.uk" target="_blank">info@paully.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 22/04/14 11:03, Dan Attwood wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
</blockquote>
<br></div>
Oooo, an interesting one...<br>
<br>
-- <br>
<br>
Paul Littlefield<br>
<br>
Telephone: 07801 125705<br>
Email: <a href="mailto:info@paully.co.uk" target="_blank">info@paully.co.uk</a><br>
Web: <a href="http://www.paully.co.uk" target="_blank">http://www.paully.co.uk</a><br>
Twitter: <a href="https://twitter.com/paullittlefield" target="_blank">https://twitter.com/<u></u>paullittlefield</a><br>
Wiki: <a href="http://wiki.indie-it.com/index.php?title=Special:AllPages" target="_blank">http://wiki.indie-it.com/<u></u>index.php?title=Special:<u></u>AllPages</a><br>
Blog: <a href="http://www.littlefield.info" target="_blank">http://www.littlefield.info</a><br>
Photo: <a href="http://gravatar.com/plittlefield" target="_blank">http://gravatar.com/<u></u>plittlefield</a><br>
Google+: <a href="https://plus.google.com/+PaulLittlefield" target="_blank">https://plus.google.com/+<u></u>PaulLittlefield</a><br>
LinkedIn: <a href="http://uk.linkedin.com/in/paullittlefield" target="_blank">http://uk.linkedin.com/in/<u></u>paullittlefield</a><br>
Trakt: <a href="http://trakt.tv/user/plittlefield" target="_blank">http://trakt.tv/user/<u></u>plittlefield</a><br>
LastFM: <a href="http://www.last.fm/user/paullittlefield" target="_blank">http://www.last.fm/user/<u></u>paullittlefield</a><br>
<br>
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.<br>
<br>
<br>
x86_64<br>
Ubuntu 13.04<br>
X.Org X Server 1.13.3<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk" target="_blank">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br></div>