Keshav Arora wrote: > Hey Guys, > > I'm trying to create a Dynamic Header in the pdf page based on the user > whose data is being displayed on the pdf page. But for some reasons > header displays the data for last user only on each page. > > That means onEndPage is getting fired at the end of the document and > not at the end of each page. > > I've modified one of the example from iText in Action book to display > how I'm trying to setup the header. > > Here is the Example. <snip> > Please help me in understanding what I'm doing wrong.
By the time you add your first data to the document, the TranDisplayValue has been changed 69 times, but there was no need to show the first 68 values because no pages were created. This is very elementary. You've made a logical error. Please think this through. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php