Op 19/04/2011 14:56, [email protected] schreef:
Sorry I don't understand what you means...
I have a method onStartPage() in my class MyHeaderFooter in which I add tables or paragraph (...) in my document and it works very good.
I never had problems with that...
What's wrong  with this way ?

It causes all kinds of side-effects. For instance: the side-effect you reported in your first mail.

Also: the Document object passed to onStartPage() is NOT the Document you create with "new Document()". It's an instance of PdfDocument that is created internally. The documentation is very clear about this: use that object "for read-only purpuses only!"
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to