Hi,
I have an SVGDocument created from a SVG file. I am trying to
find all the <text> elements and determine their text length and other
properties. Here is my code and it does not seem to work. Am i doing
something wrong :
NodeList textElements = doc.getElementsByTagName("text");
for (int i=0 ; i < textElements.getLength() ; ++i) {
SVGOMTextElement textElement = (SVGOMTextElement) textElements.item(i);
SVGOMRect rect = (SVGOMRect) textElement.getBBox();
System.out.println(rect.getHeight());
System.out.println(rect.getWidth());
}
thanks in advance,
Ananth
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]