Re: [iText-questions] Question about page number footers

2011-03-23 Thread dwhite
Also, the above code is called before document.open() -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3399321.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Question about page number footers

2011-03-23 Thread dwhite
Hi, I am just trying to add current page number to the footer of my document. I followed the example from iText in Action and it works except for one small issue. For some reason the page number gets broken up. I have pasted the following code I use to write the footer but it produces the

Re: [iText-questions] Question about page number footers

2011-03-23 Thread dwhite
Wow, you're right. The example in the book (page 173 fig 5.18) doesn't use that method. I added it because I think I'm mixing up my versions. I will look into showTextAligned() . Thanks -- View this message in context:

Re: [iText-questions] Question about page number footers

2011-03-23 Thread dwhite
Sorry guys, I found the problem. I thought I set the footer flag to false, but it was true which is why it kept appending the actual page number to the end of my footer string. Also I wasn't incrementing the page number so when I printed it the value was 0. Thanks for your help. -- View this