Have you tried PrinceXML? The new version has some JS support. <div><br clear="all"><font face="Times" size="3"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255)">

<table cellspacing="0" cellpadding="0" border="0" width="750" bgcolor="#ffffff">
<tbody><tr><td colspan="2" valign="top" height="40" bgcolor="#ffffff" style="vertical-align:top;min-height:40px"><p style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px">--<br><span style="font-weight:bold">Matthew Ford</span></p>


<p style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px">Director of Bit Zesty</p><p style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px">T: <a href="tel:%2B44%20%280%292071250160" value="+442071250160" target="_blank">+44 (0)2071250160</a><br>


<br></p></td></tr><tr><td colspan="2" valign="top" style="vertical-align:top;min-height:10px;border-top-color:rgb(214, 214, 214);border-top-width:1px;border-top-style:solid"><p style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:11px;font-weight:bold;color:rgb(51, 51, 51);text-align:left">


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify Bit Zesty immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Bit Zesty does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. Opinions expressed in this email are those of Matthew Ford, and do not necessarily reflect those of Bit Zesty.</p>


<p style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:11px;font-weight:bold;color:rgb(51, 51, 51);text-align:left">Bit Zesty Ltd, a company incorporated in England with registered company number 06883289.<br>


<br></p></td></tr></tbody></table></div></font><br>
<br><br><div class="gmail_quote">On 2 November 2011 16:08, Stephen Bartholomew <span dir="ltr"><<a href="mailto:steve@curve21.com" target="_blank">steve@curve21.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Hey all,</div><div><br></div><div>On the subject of PDF generation, has anyone had success converting JS-heavy pages to PDF?</div><div><br></div><div>The page in question is an Open Layers based map with vector layers.  There's an example of the map here: <a href="http://communities4renewables.co.uk/open/maps/5cdbb6b2-33ed-4e7f-ad59-a24327006711" target="_blank">http://communities4renewables.co.uk/open/maps/5cdbb6b2-33ed-4e7f-ad59-a24327006711</a></div>



<div><br></div><div>I've tried using wkhtmltopdf which somewhat works but renders different layers inconsistantly depending on the configuration.  I've tried timeouts and all the advice I can find online.  I know there are paid solutions like prince etc but I'm reluctant to invest in that without an idea of the success.</div>



<div><br></div><div>Any help/experience would appreciated!</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div><div><div><br></div><font color="#888888">-- <br>Stephen Bartholomew<br><br>Curve21<br><br><a href="http://www.curve21.com" target="_blank">www.curve21.com</a><br>



<a href="tel:07729%2060%2060%2079" value="+447729606079" target="_blank">07729 60 60 79</a><br><a href="mailto:steve@curve21.com" target="_blank">steve@curve21.com</a><br><br>
</font></div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br></div>