Page events are not needed. After generating all the document (but before closing!) place your text and/or images at absolute positions. They will certainly go to the last page.
Best Regards, Paulo Soares > -----Original Message----- > From: Chris Ward [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 15:32 > To: iText (E-mail) > Subject: RE: [iText-questions] Page Footer At Last Page Only > > If you are using page events, you can place the text directly onto the > last page using the content byte. Check the examples in 12, i think. > > If you want to use the HeaderFooter object, you will need to keep track of > the pages, and add it before the very end of the document (unlike first > option) or it will not print. > > Chris > > -----Original Message----- > From: Patil, Manohar (CAP, GEFA, Contractor) > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 8:38 AM > To: '[EMAIL PROTECTED]' > Subject: [iText-questions] Page Footer At Last Page Only > > > Hi > > I want to add a footer on the last page only, I dont know how many pages > will be in the document. > The contain of the PDF is dynamic , so I am not able to calculate the > exact > no. of pages. > > I tried to place the footer in the last page using HeaderFooter object, > but the footer is not adding to document because new page need to add > after > the page footer. > > I also tried the same using the PageEventHelper, as I want to place the > footer on the last page only, > I want to do this on the event onCloseDocument , but the event is get > called > only when I add a new page to the document. > > > Please guide me how to achive this. > > > with regards > > Manohar > > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
