title: Rendering client side charts on the server
body: <p>The product I'm working on has some nice graphs on a HTML5 dashboard. The graphs are rendered in Javascript using <a href="http://www.flotcharts.org" rel="nofollow">Flot</a>. </p>
  
  <p>Users would like this Dashboard emailed to them daily as a PDF report, on a fixed schedule. So for example they want an email every day at 8am to be emailed to them.</p>
  
  <p>I've thought of using Python's <a href="http://docs.python-requests.org/en/master/" rel="nofollow">Requests</a> (i.e. do a <code>request.get</code>) to get the HTML5 source of the page and then convert the resulting HTML5 page to PDF using <a href="http://weasyprint.org" rel="nofollow">Weasyprint</a> but this is obviously not going to work.</p>
  
  <p>The Javascript charts are the biggest headache as they won't render unless viewed in a browser that has decent Javascript support, so the outlined approach won't render the Javascript graphs. </p>
  
  <p>What's the recommended way of converting a dynamically generated HTML5 page into PDF? How do other people do this?</p>