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

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: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-foo

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

2011-03-23 Thread 1T3XT BVBA
Op 23/03/2011 14:38, phle...@free.fr schreef: > Hello, > > I used the following exemple (I have not yet received the book). > > Exemple : Part1.Chapter5.MoviesCountries1.java > > Exemple : Part2.Chapter6.TwoPasses.java I think you must use it if you want > page 1/100. Those are indeed the correct

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

2011-03-23 Thread Klas Lindbäck
I assume you want the same date and time on all pages. So you should generate the date/time string only once and then use it on each page. I assume you want different page numbers on each page. So you should generate the page number once for each page. It loooks like you are applying the page n

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

2011-03-23 Thread phlegay
-questions@lists.sourceforge.net Envoyé: Mercredi 23 Mars 2011 13h42:37 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [iText-questions] Question about page number footers Op 23/03/2011 12:49, dwhite schreef: > Hi, I am just trying to add current page number to the footer of my

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

2011-03-23 Thread 1T3XT BVBA
Op 23/03/2011 12:49, dwhite schreef: > Hi, I am just trying to add current page number to the footer of my document. > I followed the example from "iText in Action" Which example? Can you give me a page or listing number? > public void onOpenDocument(PdfWriter writer, Document document) {

[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 follo

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. --