|
Hi Paul, I think Jeremias is correct. Try adding a TranscodingHint to the PrintTranscoder - printTranscoder.addTranscodingHint(PrintTranscoder.KEY_SCALE_TO_PAGE, Boolean.FALSE); should stop the scaling, but probably not x, y offset of the printed image based on the getImageableX and getImageableY evaluated after the call to PrinterJob.validatePage. Patrick. Jeremias Maerki wrote: Have a look at the source code for PrintTranscoder. It queries the printable area (ImageableWidth/Height/X/Y) from the printer driver and adjusts accordingly. For many use cases this will be ok, but obviously not in your case. Maybe it needs a switch/TranscodingHints there.On 08.02.2006 11:39:33 Paul Carr wrote: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: Important - This e-mail and the information that it contains may be confidential, legally privileged and protected by law. Access by the intended recipient only is authorised. Any liability (in negligence or otherwise) arising from any third party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and attachments created by us belongs to the author and also asserts the right to be identified as such and object to any misuse. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: Bug ( I think) Patrick Egan
- RE: Bug ( I think) Paul Carr
- Re: Bug ( I think) Jeremias Maerki
- Re: Bug ( I think) Patrick Egan
- RE: Bug ( I think) Paul Carr
