Kumar Jalaj wrote:
> Hello, 
> Thanks a lot for replying to my querry. I want to add header in onStartPage()
> becuase I want to use document.add .If I do so what kind of problem I am 
> going 
> to face.Is there any other way to add header to the document using 
> document.add .

The Document object passed as parameter to the onStartPage event IS NOT 
a com.lowagie.text.Document, but the corresponding 
com.lowagie.text.PdfDocument object. That's not the same as the Document 
object you can add Element objects to.

I don't understand why you'd want to add a header using document.add() 
and no: you can't use document.add() in page events ever.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
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