Wkhtmltopdf无法打印SVG路径(高图) [英] Wkhtmltopdf fails to printing SVG path (highchart)

查看:489
本文介绍了Wkhtmltopdf无法打印SVG路径(高图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试从一个JS的大图创建PDF,就像这样: http:// www.highcharts.com/stock/demo/



它需要JS延迟,所以


wkhtmltopdf --javascript-delay 1000
http://www.highcharts .com / stock / demo / pdftest1.pdf


在结果中,我只看到一条灰色粗线。

我在Windows 7上使用组件版本0.11.0 rc2。是否有其他人遇到同样的问题?

解决方案

这里变通方法的详情。诀窍是将plotOptions.series.enableMouseTracking设置为false。



这是因为灰线是图表的鼠标轨道区域,由于某些原因,它并未隐藏由wkhtmltopdf。


I am trying to create a PDF from a JS highchart chart, like this one: http://www.highcharts.com/stock/demo/

It needs JS delay so

wkhtmltopdf --javascript-delay 1000 http://www.highcharts.com/stock/demo/ pdftest1.pdf

In the result I see only a grey thick line.

I'm using the version 0.11.0 rc2 of the component on Windows 7. Is anyone else experiencing the same issues?

解决方案

Here a workaround. The trick is to set plotOptions.series.enableMouseTracking to false.

This because the gray line is the "mouse track" area of the chart and for some reasons it's not hidden by wkhtmltopdf.

这篇关于Wkhtmltopdf无法打印SVG路径(高图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆