开发者

Creating pdf, svg and hi-res img in Java - Cairo? Other solutions?

I want to create pdf, svg and hi-res antialiased img using Java.

The java-gnome project (http://java-gnome.sourceforge.net/4.0/开发者_JAVA百科) contains cairo bindings, but there are problems using it on xp because of the multithreaded gtk incompatibilities with xp...

Any of you guys that have successfully been using java-gnome cairo stuff compiling on xp? Are there other java solutions/libraries that can handle the same stuff with the same quality?


The Apache Batik toolkit is an implementation of SVG built on the Java 2D library: http://xmlgraphics.apache.org/batik/

One can say objectively that it is one of the best, most complete implementations of SVG: http://www.codedread.com/svg-support.php (it's at the bottom of the table)

You can use it to render PDFs (as well as PNGs and other bitmap formats) using the SVG rasterizer component: http://xmlgraphics.apache.org/batik/tools/rasterizer.html

I can also say from personal experience that it has very easy to work with, although I haven't used it very much on Windows.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜