<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 22/04/2014 11:03, Dan Attwood wrote:<br>
</div>
<blockquote
cite="mid:CAGcBgjieDpHhaxnmiy2Q4xrCV-NzZZhB6AuSVXxv5p05Rn5t=w@mail.gmail.com"
type="cite">
<div dir="ltr">Hi
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>I've tried jsPDF but can't get it to create the PDF without
if also stripping all the formatting.</div>
<div><br>
</div>
<div>Dan</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kent mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/kent">https://mailman.lug.org.uk/mailman/listinfo/kent</a></pre>
</blockquote>
As an alternative, you could just open a new window with the html
content styled with a print view css then the user can print or
download?<br>
<br>
If this was server side i'd use HTML -> XSLT + XSL-FO -> PDF<br>
</body>
</html>