I have been fighting with this for awhile now...

I am creating a multi page document that contains several sections. Each section could 
have a different page size - landscape or portrait.

I am right now using an onEndPage event to place the page number in the bottom right 
corner of the page with a document.getPageSize().width()-50. The problem is that 
onEndPage often has the wrong page size.

When I start a new section, I set the next page size and goto the next page.
        document.setPageSize( pageSize );
        document.newPage();

This triggers the onEndPage method which has the correct page number, but then next 
pages size.

I realize that there is a iText issue here, but I can't figure out a way around the 
problem. Do you have any ideas what I can do to get an accurate page size to the 
onEndPage event?

Chris Ward


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to