I don't know if Batik itself can help you here.  But XSLT may be a solution for you. 
 
Two XSLT possiblities:
 
1.  Applying the transform scaling value to all possible elements within the group.  Probably quite complicated, however.
 
2.  A simpler solution--namely set the scale() via an xsl:param element, and make different settings of that element at runtime to adjust to the desired scaling.
 
Glen
----- Original Message -----
Sent: Thursday, April 29, 2004 2:41 PM
Subject: How to apply scaling?

I would like to read svg file and apply scaling transform to it, but not by adding say <g transform="scale(.5, .5)"> but by actually applying transform to the tree and saving the result as a new file in which there is no transform, but the image is half of the size.

Is there a simple way of doing it with batik?

 

Thanks,

-Paul

 

Reply via email to