Thanks everyone,

 

I was able to get the expected behavior by adding the required
height/width when getting svg from java rendering and this let batik
render the svg with correct dimensions.

I need not use viewBox for now.

 

Nirmesh.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2008 4:39 PM
To: [email protected]
Cc: [email protected]
Subject: Re: how to keep canvas size same as svg size

 


Hi Nirmesh, 

Nirmesh Desai <[EMAIL PROTECTED]> wrote on 07/01/2008 11:20:51 PM:

> I have large svg so I use viewBox which reduces the size of image to
> very small size. I'd like the minimum size to complete occupy the 
> canvas so as to not appear as image spot on canvas.

   I suspect I'm not understanding the question.  But it 
seems that you are using an incorrect viewBox.  The viewBox 
should be the region of the infinite canvas that you want 
mapped to the canvas's width/height.  It sounds like your 
viewBox is much larger than that. 

Reply via email to