VectorGraphics2D can export Java painting operations to Encapsulated PostScript (EPS), Scalable Vector Graphics (SVG), or Portable Document Format (PDF) files. It supports the rendering of all geometric shapes provided by the Java language. More advanced features like transparency or clipping paths can be used as well. It has a very small footprint and can be easily used as a replacement for Java's java.awt.Graphics2D class.

Paints (gradients, patterns, etc.) are now supported for all file formats, transformations of clipping paths in SVG files have been fixed, and the build system has been improved and fixed to build with Java 7.

VectorGraphics2D – Freecode