简体   繁体   English

将HTML转换为带有Fusion Charts的PDF

[英]Converting HTML to PDF with Fusion Charts on it

I am trying to convert HTML to PDF using phantomjs. 我正在尝试使用phantomjs将HTML转换为PDF。 I have charts on HTML that are rendered through Fusion Charts. 我有通过Fusion Charts呈现的HTML图表。 But while exporting it to PDF line of the chart gets greyed out. 但是在将其导出到PDF时,图表的线变灰了。 Hence chart is not clear. 因此,图表不清楚。 I tried diabling animation, tooltip etc but no luck. 我尝试播放动画,工具提示等,但是没有运气。 Any help will be appreciated. 任何帮助将不胜感激。

A similiar feature has been used in one of the FusionCharts Dashboards. FusionCharts仪表板之一中使用了类似功能。 The link is http://www.fusioncharts.com/dashboards/twitter/ You can actually search for a hashtag and share the result page in social network ( which actually shares the screenshot of the result page). 链接为http://www.fusioncharts.com/dashboards/twitter/您实际上可以搜索主题标签并在社交网络中共享结果页面(实际上是共享结果页面的屏幕截图)。 They are also using Phantom JS to capture the HTML page ( which contains FusionCharts ) as image. 他们还使用Phantom JS将HTML页面(包含FusionCharts)捕获为图像。 You can download the code also from the link above to solve your problem. 您也可以从上面的链接下载代码以解决您的问题。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM