Hi Nick, "Nick Labadie" <[EMAIL PROTECTED]> wrote on 07/07/2006 01:11:32 AM:
> I want output SVG Tiny document with using Batik. > Does Batik support SVG 1.1 and SVG Tiny? > SVGGraphics2D g = new SVGGraphics2D(document); So you are asking if the Batik SVGGraphics2D supports SVG 1.1 and/or SVG Tiny (there is a lot more to Batik). The short answer is yes the SVGGraphics2D supports SVG 1.1 (really no different than SVG 1.0 for full profile) and no the SVGGraphics2D implementation doesn't support restricting it's output to SVG Tiny. > g.setSVGCanvasSize(new Dimension(500, 500)); > output SVG document > <svg fill-opacity="1" [...] > I want that baseProfile="tiny" . > A baseProfile attribute of svg element has value, "tiny". It is easy to modify the output of the SVGGraphics2D so that it 'claims' to be SVG Tiny (you can get the root of the generated SVG and add/modify it's attributes). Assuming what you are drawing maps directly to SVG Tiny, I believe that this is essentially all that is needed (you might want to turn off the use of css). However, if you start using opacity, filters and the like then Batik won't automatically turn that into a raster and include it as an inline image for example. So it might still be very useful, but then again it might not... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
