VML to PNG/PDF (jsp)

社会主义新天地 提交于 2019-12-01 11:45:00

问题


I have used raphael js for drwaing my flowchart in internet explorer 8. Now I want to export my drawing as image file. I found some answer but still confused what to do. Can anyone help me regarding this issue? A sample code would be great.


回答1:


Exporting to PNG or PDF would involve converting the VML2SVG using the stylesheets, the VML element, and transformNode, then converting the SVG to PNG using a AJAX request which posts the image to a script which creates the PDF or runs imagemagick and returns the result. The pseudocode is something like this:

svg = vml.transformNode(vml2svg)
$.post("/svg/png-or-pdf", svg, showImg);


来源:https://stackoverflow.com/questions/9462007/vml-to-png-pdf-jsp

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