1

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.

Bayzid
  • 105
  • 11

1 Answers1

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);
Community
  • 1
  • 1
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265