Many thanks to you guys Got this thing working now, removed the method that renders the text for the final page(s) out from the PageEventHandler (PdfFinalizer) class but instead I created some public methods inside this "finalizer" class that sets some flags after I have rendered the last part which means that those are set before the last onEndPage... and I can then check for those flags before adding page numbers and such. But one thing that just struck me is what happens if the last part spans multiple pages, hmm... then I'd need to set those flags while rendering the last part, as soon as I discover that another page break is needed Have to get at this problem at once... I actually had another aproach first, and that was to render the last part as a separate PdfContentByte, and then in the end concatenate the two CB's, would this be a better strategy, perhaps?
/R -- View this message in context: http://itext-general.2136553.n4.nabble.com/Adding-text-depending-on-first-any-or-last-page-tp3010076p3017393.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
