When I add a chapter, itext always inserts a page break. That would be fine, because I do want one, but I need to set the page size (rotate or not) before a page break happens. Is there a way to not page break unless i tell it to?
Example of what i am doing: document.setPageSize(PageSize.A4); document.newPage(); document.add( chapter1 ); document.setPageSize(PageSize.A4.rotate()); document.newPage(); document.add( chapter2 ); document.setPageSize(PageSize.A4); document.newPage(); document.add( chapter3 ); document.setPageSize(PageSize.A4.rotate()); document.newPage(); document.add( chapter4 ); document.setPageSize(PageSize.A4); document.newPage(); document.add( chapter5 ); This does not set the right pages to rotated or not as I expected, because it seems that the .newPage() is called after inserting the chapter; so when I uses .setPageSize() it for two pages out? Chris ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
