EPS libraries for Java
- xmlgraphics-commons from Apache turns Java2D drawing into a standards-conforming EPS file with
EPSDocumentGraphics2D, and its DSC parser reads%%BoundingBoxand other header comments from existing files. Apache-2.0.
To render EPS from Java, run Ghostscript as a separate process (gs -dEPSCrop -sDEVICE=png16m -r300 -sOutputFile=out.png in.eps); there is no maintained Java PostScript interpreter.
- xmlgraphics-commons Apache XML Graphics Commons writes EPS files from Java2D and parses DSC comments. How to create an EPS with Maven, read the bounding box.