Hi, I'm not sure if this is what you want: http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom
This page describes how you can boot the SVG and CSS DOM Interfaces without using a JSVGCanvas. I haven't yet tested if this is enough to get the size information about elements from batik. Perhaps you could send me an email when you tried it, because I'm also planning a console batik application which depends on calculated bounding boxes. Kind regards, Sebastian On Mo, Jul 13, 2009 at 12:19:41 -0700, you wrote: > > Hi, > > I've got a kind of a basic question about the usage of Batik. For now I've > only worked with the Swing components and the JSVGCanvas. > > Now I need a simple Java commandline tool (without any visualization) to > read and modify SVG files. Most important is to determine the transformed > size and position of elements and change these. > > I tried to build a SVGDocument and get the transform matrix from an > SVGLocatable by using the getTransformToElement() method, like I do with the > JSVGCanvas - but of course that doesn't work, as I get a Nullpointer then. > > Is it possible to do this kind of suff with the Batik toolkit - or is there > some alternative? > > thanks, best regards > -- > View this message in context: > http://www.nabble.com/Read-and-Modify-SVG-without-rendering-tp24457183p24457183.html > Sent from the Batik - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
