Thank you so much Steve! My current code is extremely close to this, and the onEndPage event is going to save my butt!
Scott Johnston Salus Systems Ltd. 23-3318 Oak St Victoria, BC V8X 1R1 250.370.9963 x23 -----Original Message----- From: Steve Appling [mailto:[EMAIL PROTECTED] Sent: October 8, 2004 1:26 PM To: Scott Johnston; [EMAIL PROTECTED] Subject: Re: [iText-questions] Page numbering problem I had a similar problem where I wanted to do some special handling of the end of a page only when I was rendering a table. I handled it by making a class derived from PdfPageEvent that has a boolean member, inTable. I always set the inTable flag before attaching a table and clear it afterwards. In the onEndPage method of the event handler, I check the flag and do some special work (drawing borders) if it is set. The technique for handling Page X of Y is documented in the examples (see Chap1004.java). Good luck. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions