问题
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