Hi Martin,

Martin Jacobson <[email protected]> wrote on 07/16/2009 05:10:35 
AM:

> I have searched, fruitlessly, for an explanation of why JSVGCanvas 
> scales images the way it does. I am producing maps in SVG destined for 
> a high-res printer (300dpi), so I have something like the following:

   Have you tried to load your svg document into the standard
squiggle browser?

> <svg
>    xmlns:xlink="http://www.w3.org/1999/xlink";
>    xmlns="http://www.w3.org/2000/svg";
>    width="8in" height="10in"
>    viewBox="0 0 2400 3000"
>  >
> 
> (Actually, my width and height are specified in mm, but you get the 
> idea)

    Are these attributes added dynamically?

> Because of the way I extract data from the database, my code will 
> generate some polygons outside the viewBox limits. The SVG, when 
> passed through the FOF PDFTranscoder, produces excellent quality PDFs.
> 
> The SVG, when rendered by JSVGCanvas, is a small facsimile of the map 
> with the extraneous polygons shown. The JSVGCanvas element is wrapped 
> by a JScrollPane.

   The JScrollPane will scale to fit (i.e. show the extra polygons)
if it can't find the viewBox attribute.  So my guess is that the problem
is with how you set the attributes and/or the way you initialize 
everything.

> Eventually, I will want to be able to zoom in and out of the image: 
> for the moment, all I want is an image of the map at real size, inside 
> scroll bars when the image is larger than the scroll pane.  How do I 
> obtain this?
> 
> I am developing on Mac OS X 10.5.7 on a 2.5GHz MacBook Pro with 4GB 
> memory. I am running Java 1.6, Netbeans 6.7, Batik 1.7
> 
> Any help will be much appreciated.
> Martin
> 
> Martin Jacobson
> [email protected]
> from my MacBookPro
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to