开发者

svg to html to pdf conversion

开发者 https://www.devze.com 2023-03-02 20:54 出处:网络
I would like to use graphael to draw a simple chart on a webpage (that has other html). Is there a way to conver开发者_如何学Pythont the chart to a .gif or .png image at the same time that it is drawn

I would like to use graphael to draw a simple chart on a webpage (that has other html). Is there a way to conver开发者_如何学Pythont the chart to a .gif or .png image at the same time that it is drawn?


There are at least a few ways. The commercial product Prince ( http://www.princexml.com ) does this, as does the open source Inkscape ( http://inkscape.org/ ). In fact, there are a fair number of HTML/SVG->PDF converters on the market.

The Kendo UI DataViz library (a competitor to graphael) has some sample code in .NET for doing this server side with Inkscape: http://www.kendoui.com/code-library/dataviz/chart/kendo-ui-chart-export.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消