Jess8 wrote:
> Hi, I try to put the footer on each page of pdf which has date string on the
> left side and page x of Y on the right side.  However, I got the footer like
> the following ==>
> 
> 05/04/20092                                             Page 1 of 2
> 
> Can someone tell me what might cause it? Thanks in advance.

You are adding the total number of pages twice:

> cb.addTemplate(tpl, document.left() + dateStrSize, textBase);

> cb.addTemplate(tpl, document.right() - adjust, textBase);

In other words: you get what you ask for!
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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