Simon Goodfield wrote:
> Below is some simple code which reproduces the problem.

I identified the problem.
The table causes a newPage() which internally triggers initPage().
Then you change the page size.
Then you add a chapter causing another newPage(), but as no content has 
been added since the previous newPage(), initPage() is not (and may not 
be) triggered a second time.

In initPage(), the "cursor" is set, causing the wrong offset (because 
initPage() isn't triggered using the new page size).

For the moment, I haven't found a good fix for this problem.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to