Pablo Bellissimo wrote:
> this code has some problem when I use page events (OnStartPage and 
> OnEndPage) for insert Header and Footer because they result out of 
> synch, not align with content of page.

Never ever use onStartPage to add a header and/or footer.
Explain what you mean by: "they result out of synch, not align with 
content of page."
Surely, you are adding the header/footer using showTextAligned() and 
therefore YOU are the one deciding where they go. It's up to you to 
define the coordinates so that te header/footer are aligned.

> I've try to use Chapters; but Chapter go in conflict with page event.

Excuse me? You'll have to explain that too.

> My problem is: one document has one or more pages, I don't know first, 
> and every page have header and footer that contain summary of 
> current document.

Why do you say "My problem is"? I don't see any problem there.

> When I add an new page, this page contain older data in Header or Footer.

Because you programmed it that way.
The content of the header/footer should be kept in a member variable of 
your page event implementation. You should change it with a setter. The 
header/footer should be added in onEndPage. That way, it doesn't contain 
"older data".

I don't think the main problem to understand your question is a problem 
of "not knowing enough English". The main problem is that you don't 
provide any code sample to show us what you are doing. You are just 
saying things like "Chapter go in conflict with page event." That's like 
saying: "your software doesn't work" and that's not very polite.

It probably doesn't work because you're doing something wrong, like 
ignoring the documentation and adding stuff in the onStartPage event. 
But we can't tell, because you're not showing us any of your code.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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

Reply via email to