Welcome to VectorGraphics2D
VectorGraphics2D provides implementations of Java's Graphics2D interface and exports the graphics in various vector file formats. Currently, there's support for the following vector file formats:
Additional formats can be easily added.
- Support for EPS, PDF, and SVG formats
- Rendering of all geometric shapes provided by the java.awt.Graphics2D interface
- Shapes and text can be made transparent (except in EPS)
- Arbitrary clipping paths can be defined
- Output of bitmap images
- Easily extensible
- Very small footprint (JAR is about 30 kilobytes)
You can download VectorGraphics2D in various formats on the download page.
VectorGraphics2D uses the GNU Lesser General Public License (LGPL) so loosely speaking you may use the library for your own application regardless of the license it uses. Any changes to the library itself however have to be licensed under the LGPL, too.
Currently, only very basic operations are supported, i.e. VectorGraphics2D still lacks support for gradient, different text encodings, font embedding, compression or metadata support. Although its early stage VectorGraphics2D is already in use for exporting vector graphics in its fellow projects GRAL and WARP.
If you want to report issues, bugs, or file feature requests just register with the link on top of this page. If you like to contribute your own code please send me an email message to <dev [at] erichseifert [dot] de>. You will get an account for the wiki pages and for the VectorGraphics2D subversion repository.
VectorGraphics2D isn't the only library to implement Graphics2D vector export. There are several other libraries which support EPS, PDF, SVG, and even more formats:
- http://xmlgraphics.apache.org/commons/ (Apache License) supports EPS and PostScript
- http://java.freehep.org/vectorgraphics/ (GNU LGPL 2.1) supports EMF, PDF, PostScript, EPS, SVG and SWF