xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: save into a file
Date Sat, 11 Nov 2006 11:58:36 GMT
Hi Peppe,

Peppe <peppe.delia@gmail.com> 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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message