English 中文(简体)
是否有任何办法将Raphael的纸面结果转化为PNG/SVG,用于任何浏览器(包括旧的IEs)?
原标题:Is there a way to transform a Raphael paper result to PNG/SVG in any browser (including older IEs)?

我看到许多人与此事作斗争,但我无法找到适当的解决办法,也不能满足我的需要。

I m doing some charts with Raphael, and I basically need to get them as PNG (for export, or later use in a PDF, and some other stuff). For Firefox, Chrome, IE 9, and any other browser with SVG support is easy. There are actually two ways to achieve it: using canvg to render the SVG into a canvas element and then obtain the image data; or sending the SVG to the server (C#) and using a library to rasterize it.

当然,问题在于第8和第7条。 在这些浏览器中,Raphael 输出VML ,而且从中看不出特别志愿人员的来源。 我找不到任何VML rasterizer,因此,我只想一个解决办法:将VML翻译到SVG,或者在SVG重新编辑该文件。

我检查了病媒突发图书馆的孔径,实际上利用了XSLT的转变,将VML转化为SVG,但我无法使其发挥作用(我曾尝试过几个工具测试SL,但似乎都没有工作)。

我试图通过改变其特性<条码>、<条码>、<条码>、<条码>、<条码>、<条码>、<条码>、>条码>、<条码>、<条码>、<>条码>、<条码>、<>条码>、<>条码>、<>条码>、<>条码>、<条码>、<>条码>、<>条码>、<>条码>、

I think there might be a way to write the SVG tree into a hidden DIV while in IE; despite the fact it won t be shown by the browser, the text should be there.

Does anyone knows a way to achieve it? Thanks!

问题回答

To render SVG you can also use CanVG library.
It is SVG parser and renderer with canvas resulting output.
Next you can simply output pixel data from canvas to PNG.

解决国际电子计算方法的局限性:你可以使用





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签