Can I use highcharts in a pdf generate with prawn in Rails?

1.6k views Asked by At

In my rails application, I use highcharts to display some charts. And now, I need to generate a pdf with charts (I will use prawn). I want to know if I can use highcharts in my pdf. Maybe with ExecJS ? Or with an alternative to prawn ?

Thanks!

1

There are 1 answers

3
Jesse Wolgamott On BEST ANSWER

You can use wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) to render the javascript charts as a PDF

This blog post is helpful: http://www.claytonlz.com/index.php/2011/02/broken-highcharts-wkhtmltopdf/