'Lo. I've followed various examples on the site and cannot seem to get a document created via an SVGGraphics2D to be anything other than blank. What am I missing?
-- public static void main( final String[] args) throws Exception { final DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); final String svg_ns = SVGDOMImplementation.SVG_NAMESPACE_URI; final SVGDocument doc = (SVGDocument) impl.createDocument(svg_ns, "svg", null); final SVGGraphics2D g = new SVGGraphics2D(doc); g.fillOval(0, 0, 32, 32); final Element root = doc.getDocumentElement(); g.getRoot(root); g.stream(new PrintWriter(System.out)); } -- Results in: <?xml version="1.0"?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'> <svg stroke-dasharray="none" shape-rendering="auto" xmlns="http://www.w3.org/2000/svg" font-family="'Dialog'" text-rendering="auto" fill-opacity="1" contentScriptType="text/ecmascript" color-interpolation="auto" color-rendering="auto" preserveAspectRatio="xMidYMid meet" font-size="12" fill="black" xmlns:xlink="http://www.w3.org/1999/xlink" stroke="black" image-rendering="auto" stroke-miterlimit="10" zoomAndPan="magnify" version="1.0" stroke-linecap="square" stroke-linejoin="miter" contentStyleType="text/css" font-style="normal" stroke-width="1" stroke-dashoffset="0" font-weight="normal" stroke-opacity="1" ><!--Generated by the Batik Graphics2D SVG Generator--><defs id="genericDefs" /><g /></svg > I've used the same code via a swing SVG canvas and see a circle printed there, but the document is always empty. M --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org