xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: svgz -> svg
Date Wed, 18 Jan 2006 11:08:08 GMT
sockensoldat@web.de wrote on 01/17/2006 10:14:17 AM:

> i have a *.svgz file and i want to draw on this file in a jsvgcanvas. 
but i 
> need to convert it "back" into a svg to append dynamically new 

   The Canvas will automatically decompress the svgz file before
displaying it.  There are two places one could append your new childnodes.
Probably the easiest is to add a SVGDocumentLoadEventListener to the 
It's 'event' object includes the SVGDocument, so you can simply use the 
to append your nodes.

   You could also read the document yourself (using the 
which will automatically decompress as well) and then append your nodes 
call 'setSVGDocument' on the canvas.

> does anybody know if or how that goes?

   Hope that helps.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message