Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.5
-
None
-
None
-
Operating System: Mac OS X 10.4
Platform: PC
-
52966
Description
As reported recently in the users mailing list the code:
OutputStream out = new FileOutputStream("mini-test.eps");
EPSDocumentGraphics2D g2d = new EPSDocumentGraphics2D(false);
g2d.setGraphicContext(new GraphicContext());
g2d.setCustomTextHandler(new NativeTextHandler(g2d, null));
g2d.setupDocument(out, 200, 100);
g2d.setFont(new Font("Helvetica", Font.PLAIN, 12));
g2d.drawString("Hi there", 50, 50);
g2d.finish();
out.close();
generates invalid EPS files.