I am trying to create a document, with pages in alternating portrait and landscape format.
The first summary page is rendered correctly as a portrait page. The second detail page is rendered correctly as a landscape page. The third summary page is rendered incorrectly: as a landscape, instead of a portrait.
At the start of my makeSummary() method, I have this:
/* set up the document */
document.setPageSize(PageSize.A4); /* open the document */
if (document.isOpen()) {
document.newPage();
} else {
document.open();
}At the start of my makeDetail() method, I have this:
/* set up the document */
document.setPageSize(PageSize.A4.rotate()); /* open the document */
if (document.isOpen()) {
document.newPage();
} else {
document.open();
}Im I doing the right thing above? Must I set the page size after the document.newPage(), and not before? Must I do anything in addition to the above to make this work?
Regards, Graham --
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
