title: Exporting SVG to PDF in a offline TideSDK webapp
body: <p>I have an offline HTML5/CSS/JS app built with TideSDK in which a bar chart is drawn with Highcharts as an SVG "tag" using data entered by the user. I need to export this chart in a PDF document, which will also contain text and tables.</p>
  
  <p>As it is an offline app I can't use the export module included in Highcharts (except the getSVG() method) or other solutions like DocRaptor.</p>
  
  <p>I'm open to use another JS plugin for drawing the chart, but I really love the "look and feel" and the features of Highcharts graphs.</p>
  
  <p>As you may know, with TideSDK I can embed Python, PHP or Perl scripts/modules in my app (I prefer avoid Perl as I've never used it).</p>
  
  <p>The other limitation is that I cannot ask to the final users to install another software than mine, so I can't use <code>wkhtmltopdf</code> with PHP. Except if I manage to install it through my app in a transparent process (not sure it is particularly easy to do).</p>
  
  <p>After having search for several days, my final idea is to use the CairoSVG Python module to export the graph in a first PDF. Then I will find a JS (jsPDF) or Python tool to include this PDF in the final PDF containing text and tables.</p>
  
  <p>I will start to test this solution soon and let you know if I managed it. Nevertheless, if some of you already have to manage a similar problem, I will be very happy to hear your solutions.</p>
  
  <p>The app will run, in a first time, on Windows platform and should be adapted to MacOS, Linux, Android and iOS in later phases.</p>