You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by MrPatol <lo...@cryms.com> on 2006/07/13 08:27:37 UTC
Re: avoid extra borders or SVG regenerated
Hello again, i investigated more and found that the following piece of code
SVGGraphics2D svgGenerator = new SVGGraphics2D(mapDoc);
Element root = mapDoc.getDocumentElement();
svgGenerator.getRoot(root);
make the source to be rebuilt completely by batik giving this result
http://www.cryms.com/retest.svg
now just have to find out what is missing or wrong and how to patch the
regenerated SVG
--
View this message in context: http://www.nabble.com/avoid-extra-borders-tf1930768.html#a5302647
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: avoid extra borders or SVG regenerated
Posted by MrPatol <lo...@cryms.com>.
:-) Final resolution
after this code
SVGGraphics2D svgGenerator = new SVGGraphics2D(mapDoc);
Element root = mapDoc.getDocumentElement();
svgGenerator.getRoot(root);
the attribute stroke of svg root tag has black as default value, which is
taken as default for the rest of the document.
I just added this:
root.setAttribute("stroke","none");
and everything get generated fine.
hope it will be useful to other people ;-)
ciao MrPatol
--
View this message in context: http://www.nabble.com/avoid-extra-borders-tf1930768.html#a5302780
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org