Use two strings, one for "Page" and the other for "of". You may also make two passes to know in advance the total number of pages or you may use PdfStamper to stamp the strings after the PDF is generated.
Paulo ----- Original Message ----- From: "Paul Littlefield" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, August 01, 2006 6:58 PM Subject: Re: [iText-questions] i18n approach to footer > Paulo Soares <psoares <at> consiste.pt> writes: > >> >> This is a generic internationalization problem, it doesn't depend on >> iText. >> I don't know what you'd expect iText to do. >> >> Paulo > > The problem I can't resolve is a timing problem. In order to format the > message > I need both pieces of information regarding X and Y. But in the > PageEventHandlers I only have one piece of information at a time. At the > end of > each page I have the "X" value, and when the document completes I have the > "Y" > value. > > Do you see what I'm saying? > > -Paul > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
