Dirk Ulrich wrote:
>     mainChapter.add(Chunk.NEXTPAGE);
>     document.setPageSize(Pagesize.A4.rotate());

Oops, I gave you the standard answer without looking at the context.
Again you are mixing two different things:
1. you add content to a Chapter object.
2. you change the orientation of the pages in the document.
But these two things are completely unrelated:
the document doesn't know what you do with the chapter
object; the chapter doesn't know what you do with the
document object...

> I use Helper classes on PageEvents (onEndPage as well as onGenericTag). 
> Could this cause problems?

I haven't tried this, but it looks like something
that could have unwanted side-effects: the document
object passed to a page event, is of type PdfDocument,
it's not an ordinary Document object.

> So: How can i tell iText to switch from one orientation to another 
> within a single Chapter?

I don't know. The question never came up.
It's not implemented.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to