[email protected] wrote:
> Hi! I am adding the header section onStartPage events

Wrong! Use an onEndPage event!

> so I am just adding a table with some cells, so I cant use resetHeader()

You have written an implementation of PdfPageEvents.
Add a membervariable: protected boolean needsHeader = true;
Add a setter for this variable.
In onEndPage, add a header only if needsHeader is true.

> to remove the header section from the last page,
> i just wanna add the last page with one paragraph.

Set the variable to false just after invoking newPage()
for the last time and before adding this paragraph.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to