Hi Asif, asif_zzz <[email protected]> wrote on 07/22/2009 07:09:24 AM:
> I've modified the code as per your said, [Block 1] > Element root = svgGenerator.getRoot(); > root.setAttributeNS(null, "viewBox", "0 0 800 600"); [Block 2] > svgGenerator.setSVGCanvasSize(new Dimension(500,500)); > label.print(svgGenerator); > Writer out = new OutputStreamWriter(System.out, "UTF-8"); > PrintWriter savefile = new PrintWriter(new FileWriter(fil)); > svgGenerator.stream(root, savefile, true, false); > > I got the outout like this,but im missing my HTML graphics content in SVG Well you swapped the location of your 'Block 1' and 'Block 2' code. If you swap them back to the way they were in your first message it will work.
