Hi Peppe,
Peppe <[EMAIL PROTECTED]> wrote on 11/11/2006 06:08:15 AM:
> Hi, i have to save, through a button, into a svg file my document loaded
and
> modified into a JSVGCanvas...
Can you do this? I thought you were working on an Applet,
normally Applet's aren't allowed to write to the disk.
> i tried
> org.apache.batik.dom.util.DOMUtilities.writeDocument(SVGDocument, new
> FileWriter("c:\\test.svg")); but it doesn't work, the svg file created
is
> empty...why?
This would happen if the Document had no children. I don't really
know why that would happen. You might try printing the result of
SVGDocument.getFirstChild().
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]