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

有些话、适合烂在心里 提交于 2019-12-10 17:43:06

问题


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:


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/



来源:https://stackoverflow.com/questions/8896182/can-i-use-highcharts-in-a-pdf-generate-with-prawn-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!