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 Cristian Opincaru <cr...@gmail.com> on 2004/12/03 17:26:32 UTC

Default SVG header: How can I change it?

Hi,

When I generate an SVG with the Batic Toolkit, I get a lot of stuff in
the header (the <svg ...> tag). One of the things is a "fill:black"
which I really don't need.

Can anybody tell me how I can change this?

Thanx,
Cristian

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


Re: Default SVG header: How can I change it?

Posted by Thomas DeWeese <Th...@Kodak.com>.
Cristian Opincaru wrote:

> When I generate an SVG with the Batic Toolkit, I get a lot of stuff in
> the header (the <svg ...> tag). One of the things is a "fill:black"
> which I really don't need.
> 
> Can anybody tell me how I can change this?

   You can get the root Element and simply remove the attributes
you don't want[*].  You do need to be careful about depending on
the default values for attributes as it is common to cut & paste
(or programatically assemble) and if the section you add into has any
of these set you would need to set them back to the default value.

[*] Note that when you get the root element it is cleared from the
Graphics2D so you need to use one of the stream calls that
takes the svgRoot element.


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