Guess Who wrote:
David? :)
I'm having a little trouble with images that were
transcoded with batik. In particular, I'm working
with svg documents that contain almost all text
elements. When the doc is transcoded into an image,
coords of the text that appears in the image don't
seem to correspond with the coords specified in the
svg doc.
I've already taken into account the aspectratio in
testing the coords' congruency.
Aspectratio = imgwidth/svg:aoiwidth
Actually the proper name for this is the 'scale factor'. The Aspect ratio is typically the width/height (or vice versa).
the aoi that i'm using is the rect element just inside the page group.
Well that is the same as the default area of the SVG so the scale factor here should be 1 (as is when I tested it).
For instance, xcoord:image = xcoord:svgdoc * aspectratio
Correct me if I am wrong about the above calcs. Here is the svg doc...
In the future using an attachment works much better as often things get munged by line-wrapping. Also how are you generating the image? When I use the svgrasterizer I get text exactly where I think it should be:
./build.sh svgrasterizer -a 0,0,612,792 text.svg
But since your image seems to be scaled somehow I must assume you are not using the default w/h for rendering.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]