That's dead easy. PdfReader reader = new PdfReader(...); for (int k = 1; k <= reader.getNumberOfPages(); ++k) { reader.getPageN(k).put(PdfName.ROTATE, new PdfNumber(90)); } PdfStamper stp = new PdfStamper(reader, ...); stp.close();
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of = k3Rn = > Sent: Thursday, April 29, 2004 7:03 PM > To: [EMAIL PROTECTED] > Subject: Re: [iText-questions] Rotate Pages from existing PDF files > > From: "Bruno" <[EMAIL PROTECTED]> > To: "= k3Rn =" <[EMAIL PROTECTED]> > > Quoting = k3Rn = <[EMAIL PROTECTED]>: > > > > > I'd want to simply rotate all pages of an existing pdf 90 degrees > > > to the right - from portait to landscape orientation. > > > > This can be done with iText. > > > > > In my case i would need that to rotate pdf pages that are in > > > portrait orientation, but the text is vertically printed (because > > > it used to be a landscape printout). > > > > I'm not sure what you mean. If you say the pages are in > > portrait now but people have to turn their heads 90 degrees > > to read the text on a screen, then you can use iText. > > Thats exactly what i want to do. > I'll attach a small example pdf i would like to rotate. > May you give me a hint on how complex the itext code would be > to do that rotation? Can this be done in some rows of code? > > Thx for you support! > Greetings > Markus > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions