I'm not quite sure of what you are saying but the actual rotation number in
the page can be anything but is converted to positive values. itext-0.96
gets the right negative rotation value but not the right page rotation in
PdfReader.getPageSizeWithRotation().
If you still have doubts send me a small runnable example and any files
needed to reproduce here the problem.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: David Nielsen [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 15:10
> To:   'Paulo Soares'; [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Page rotation
> 
> 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

Reply via email to