Ping Zhang wrote: > the rotation returns for page 1 = 0, and page 2 = 180 (I don't know why > like that)
If you created the original PDF, then you should know why, because that's the way you've defined it. If you didn't create the original PDF, ask the person who did. > Could you please explain the values are passed into > > *cb.addTemplate(page2, 0, -1f, 1f, 0, 0, > reader.getPageSizeWithRotation(2).getHeight());* That's explained on page 314-315 of "iText in Action". > If I force using above code it display page in 90 degree, how do I turn > it to right 180? If you don't have the book, please go through your high school books and look for the chapters about affine transformations. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar