From T wiki
Jump to: navigation, search


Project overview

Java EPS Graphics Library started provides a java.awt.Graphics like interface to writing EPS files.

The EPS graphics library is a re-release of the GNU GPL library that used to be available from jibble.org. We tracked down the last version we could find that was released under GPL and started from there. Currently this library is not much more than the latest release that was made by jibble.org.


Download EPSGraphics

Minimal example

EpsGraphics g = new EpsGraphics("EpsTools Drawable Export", 
      new FileOutputStream("example.eps"), 0, 0, 150, 100,ColorMode.COLOR_RGB);
/* Draw rectangle */
g.drawRect(0, 0, 150, 100);
/* Write text */
g.drawString("This is an example!", 5, 50);
/* Draw red diagonal line */
g.drawLine(0, 0, 150, 100);

API documentation

API documentation (valid for 1.3 and 1.4)

Version change logs

1.4 (current)

- Fixed bug with stroke construction (contributed by Jacob Silterra)


- Fixed stream logging (contributed by Jacob Silterra)

- Fixed issue with setStroke (contributed by Michael Borcherds)

- Fixed issue with drawImage (contributed by Helmut Dersh)


This release of EPSGraphics is just to dust-off the project. There is no new functionality in the library, but the documentation has been improved and we have fixed the website.


This releases fixes a major bug in the copy constructor of the EpsGraphics object which made it impossible to use the EpsGraphics object to draw Swing component to.


Initial version, re-release of the code that was available under GNU GPL from http://jibble.org .

We have added support for an alternative color model besides the traditional RGB. The library support the CMYK color model that is often used for professional printing.