And....... the rotation = reader.getPageRotation(i); returns -180
and i just want to rotate it back to 0 nomatter if i use 180 or -180, and isnt it what i do, with the cb.addTemplate(page, 1, 0, 0, -1, 0,pageHeight); what i can read in my old scoolbooks the: 1,0,0,-1,0,pageHeight rotates the page 180 degrees around the X axis, and translates the page "pageHight" up the Y axis Regards, David Nielsen -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED]] Sent: 14. februar 2003 15:48 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [iText-questions] Page rotation Negative rotations are fixed in itext-paulo-108. Rotations can now only be 0, 90, 180 and 270. Best Regards, Paulo Soares > -----Original Message----- > From: David Nielsen [SMTP:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 13:10 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Page rotation > > Hi.. > > I have modifyed the tutorial Concat.java to rotate the page 180 degrees if > rotation = reader.getPageRotation(i) == -180 > > here: > > removed lines..... > page = writer.getImportedPage(reader, i); > rotation = reader.getPageRotation(i); > System.out.println("rotation: " + rotation); > if(rotation == -180) { > System.out.println("rotating..."); > float pageHeight = > reader.getPageSizeWithRotation(i).height(); > float pageWidth = reader.getPageSizeWithRotation(i).width(); > cb.addTemplate(page, 1, 0, 0, -1, 0,pageHeight); > } > else if (rotation == 90 || rotation == 270) { > cb.addTemplate(page, 0, -1f, 1f, 0, 0, > reader.getPageSizeWithRotation(i).height()); > }else { > cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0); > } > System.out.println("Processed page " + i); > } > f++; > removed lines..... > > The pages are rotated... yes, but the text is not, its mirrored ?????, the > images are rotated correct. > why is that, ??? > > > Regards > David Nielsen > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions