i'm trying to create a pdf that must be on a5 format ( the horizontal half on an a4 )
like wikipedia source i need that my page size must be equals to the horizontal half of a4 but using this:
Document document = new Document(PageSize.A5, 10, 10, 10, 10);
it creates me this:
But i need this:
(With all table inside rotated )
How can i fix? can someone help me? thanks!!!
iText in Action, 2nd Edition, in chapter 13 has an example which rotates all pages in a PDF file by 90 degrees. The sample source code is available as RotatePages.java in the SourceForge iText SVN repository.