xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evenblij, Paul" <Paul_Evenb...@nl.compuware.com>
Subject RE: set viewBox using SVGGraphics2D
Date Tue, 15 Jan 2002 09:38:00 GMT
> From: Stevenson, Chris (SSABSA) [mailto:chris@ssabsa.sa.gov.au]
>[...]
>>Info 
>> in the tutorial on "Customizing the generated SVG style" 
>> (http://xml.apache.org/batik/svggen.html#custom) may be
>> of interest to you.
>[...]
> If I include the two lines after *** I get the entire file as attached
> below. 
> Note complete absence of viewBox and any other data! The draw 
> method is not 

If I remember correctly, getRoot() on the generator clears out the tree. The
example I mentioned retrieves the root, adds some stuff, and then streams
*this root* to output. Did you try this?

 // dump the root content to a given Writer myWriter
 svgGenerator.stream(root, myWriter);

Paul

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


Mime
View raw message