I just tried printing the same SVG from inkscape, and it's perfect, so there is definitely a problem with batik's PrintTranscoder. I'm ruling out the Print API as I've used java before to print A4 JPEGS that had to be accurately sized and positioned and it worked fine. (well.... apart from using most of the RAM in the machine !)
I've managed to get an extension till Friday before I give my techy recommendations for the project.....if anyone has any idea what's going on here, please let me know a.s.a.p. Thanks again Paul. -----Original Message----- From: Paul Carr [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 10:19 To: [email protected] Subject: RE: Bug ( I think) Thanks Cameron, Have you tried printing a hardcopy ? It looks correct in squiggle, but when I print it to A4 the right hand side of the image is not on the edge of the paper, neither is the bottom. The image has been scaled down to 200 x 288 mm, which isn't cool when you're trying to print accurately to a somewhat expensive certificate. I've attached a scan of the A4 result after printing your SVG to help clarify the issue.(had to use serious compression to get through apache's mail daemon....so apologies if it looks a bit naff)If you open it in something with a grey background it is easy to see where the paper edge is. I'm not sure whether it's my printer doing some jiggery pokery. If anyone would like to help diagnose this please use squiggle to print off a hardcopy of the attached SVG ( making sure you set all the margins to 0.0 in the print dialog) Cheers Paul. -----Original Message----- From: Cameron McCormack [mailto:[EMAIL PROTECTED] Sent: 07 February 2006 21:37 To: [email protected] Subject: Re: Bug ( I think) Hi Paul. Paul Carr: > Has anyone got an example portrait A4 SVG file that will print to all > extremities of the page from squiggle ? This does: <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" height="297mm" viewBox="0 0 210 297"> <rect width="100%" height="100%" stroke="black" stroke-width="1" fill="none"/> <circle cx="0" cy="0" r="20"/> <circle cx="210" cy="0" r="20"/> <circle cx="0" cy="297" r="20"/> <circle cx="210" cy="297" r="20"/> </svg> Note how the viewBox defines the area of the coordinate system that is mapped into the 210mm x 297mm space. In this case, one user unit is the same as 1mm. If you convert this file to a PDF you should see that it displays properly on the A4 page, and that the rect and the mid-points of the circles are right on the corners of the page: java -jar batik-rasterizer.jar a4.svg -m application/pdf -d a4.pdf -- Cameron McCormack ICQ: 26955922 cam (at) mcc.id.au MSN: cam (at) mcc.id.au http://mcc.id.au/ JBR: heycam (at) jabber.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
