Hi Thomas,
> The width and height of the document is available from:
> Dimension2D BridgeContext.getDocumentSize()
> This is the 'size in pixels' of the rootmost SVG element, if it
> has width/height attributes, otherwise it is whatever is returned
> by batik.bridge.UserAgent.getViewportSize().
It is always returns height and width of the rootmost SVG element. But while
zoomin/zoomout, it is not returning the exact scaled width and height
values. Is there anyway to find scaled transfom's width and height?
Earlier i used following code to find the scaled width and height using
SVGCanvas. Is there anyother way to find it without SVGCanvas??
GraphicsNode node = svgCanvas.getGraphicsNode();
Rectangle2D viewRect = (Rectangle2D)node.getBounds().clone();
AffineTransform vCoordi = _svgCanvas.getViewBoxTransform();
final Rectangle docSize = vCoordi.createTransformedShape(new Rectangle(0, 0,
(int)viewRect.getWidth(),
(int)viewRect.getHeight())).getBounds();
Thanks,
Sudhakar
--
View this message in context:
http://www.nabble.com/Multi+page+print+support-t1625300.html#a4517950
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]