Hi all, I have a strange problem with Batik 1.6 and org.jibble.epsgraphics. If I export a JSVGCanvas to an eps file using the org.jibble.epsgraphics library, I get a really weired looking eps image ( http://thomas.m.king.googlepages.com/home - click on the eps file - the svg file is also listed as reference).
First, I create a JSVGCanvas like described in the following (I acutallly use the canvas to show a SVG file in my application): JSVGCanvas svgCanvas = new JSVGCanvas(); svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); svgCanvas.setURI(imageFile.toURI().toURL().toString()); svgCanvas.setForeground(Color.BLACK); svgCanvas.setBackground(Color.WHITE); svgCanvas.setPreferredSize(CANVAS_PREFERRED_SIZE); svgCanvas.addMouseMotionListener(new RadioMapViewportMouseMotionListener()); svgCanvas.addMouseListener(new RadioMapViewportMouseListener()); Second, to export the canvas I do the following: FileWriter = new FileWriter(new File("example.eps")); Graphics2D g2d = new EpsGraphics2D("RadioMap"); svgCanvas.paint(g2d); out.write(g2d.toString()); out.flush(); out.close(); Did I miss something or is batik or epsgraphics buggy? Thanks in advance. Thomas