我目前正在尝试从带有 raphael 生成的图表的 html 页面生成 pdf。
它适用于所有浏览器,除了 raphael 使用 vml 的 Internet Explorer < 9。
我正在使用 wkhtmltopdf 转换页面,它使用 webkit 来呈现页面,因此在使用 IE 时它不支持 vml。
有没有办法强制 Raphael 在 IE 中渲染 svg 而不是 vml?我知道它不会显示,但我要做的是在 vml 中渲染一次,在 svg 中渲染第二次。
我已经看到我可以设置属性
Raphael.type = "SVG";
Raphael.svg = true;
但在对象实例化后它不起作用。