Hi Rob, Rob Davis-5 <[EMAIL PROTECTED]> wrote on 05/13/2008 12:11:53 PM:
> I have a svg file with size 100mm x 70mm > PS I also set the area of interest: > > Rectangle2D areaOfInterest = new Rectangle2D.Float > ( 0.0, 0.0, 100.0 /*width */, 70.0 /*height */100); > t.addTranscodingHint(ImageTranscoder.KEY_AOI, areaOfInterest); It is a bit hard to tell without the full example. But if you are expecting the 70mm by 100mm to come from your area of interest you will have problems. The output size is determined by the width and height attributes on the outermost SVG element, or from the command line/KEY_WIDTH, KEY_HEIGHT. The Area of Interest says what part of the infinite canvas should be mapped to that width and height. > I want to render it as a png at 300 dpi > > So, 100mm = 100 / 25.4 = 3.93 inches (to nearest 2 decimal places), so i > would expect the width to be 1181 pixels > and, 70mm = 70 / 25.4 = 2.76 inches (to nearest 2 decimal places), so i > would expect the height to be 826 pixels > > BUT instead the value is 3508 x 2480 pixels So I'm guessing your width and height are 297mm x 210mm.
