yes, I have activated "shrink oversized paper to paper size" and "auto-rotate and center pages" checkboxes in Acrobat reader. This is a = cause of diffrent layout, so forget the code I submit before.
But the image position is still wrong, I modifyied one line in renderImageArea method and get that work. Attached is a new PSRenderer source code(based on fop0.20.3). Regards, Huikang -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 June, 2002 6:23 PM To: [EMAIL PROTECTED] Subject: Re: PS Renderer patch Hi Huikang I had to work with the plain java file you posted instead of the diff, because the diff seems to be made against the CVS HEAD branch instead of the maintenance branch. Anyway, using another differ I was able to extract your changes. It's still in the works, amoung other things I'm currently working on in the PS renderer. What I'd like to ask you is the following: I found that you added a translate in renderPage() and changed the scaling factor. Why exactly did you do this? Currently, without this, the PS renderer produces pages that are 99.99% identical to the PDF if printed out (at least where the PS functionality is complete. doesn't apply for SVG, yet, for example). Can it be that you've activated one of the following check boxes in Acrobat's printing dialog? - Shrink oversized paper to paper size - Expand small pages to paper size - Auto-rotate and center pages I've fallen victim to this pitfall a number of times now. Maybe you have, too. These options result in scaled and offset PDFs being printed. Please check if this is the case and if not, please send me an fo file where I can see the differences you describe. > Attached is a unified diff with current CVS. > > This patch will render the PostScript file in same appearance (position and > size of border, table and font) with PDF's. Although we noted that the size > of border and table in PDF file is smaller than it should be. I have tested > the code with Fop-0.20.3 but not current CVS. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PSRenderer.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]