VML转换为PNG/PDF(jsp) [英] VML to PNG/PDF (jsp)

查看:115
本文介绍了VML转换为PNG/PDF(jsp)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用raphael js在Internet Explorer 8中拖动流程图.现在,我想将图形导出为图像文件.我找到了一些答案,但仍然感到困惑.有人可以帮我解决这个问题吗?一个示例代码会很棒.

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.

推荐答案

导出为PNG或PDF将涉及转换创建PDF 或运行 imagemagick a>并返回结果.伪代码是这样的:

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);

这篇关于VML转换为PNG/PDF(jsp)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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