Hello

I am getting an arraylist of data from main class .I need to get one item
from the list and put into the header each time a new page is created...

what I am getting is the last value from the list on each new page..

so my issue is where exactly I should put the list iteration code..

Thanks






Bruno Lowagie (iText) wrote:
> 
> barik wrote:
>> Hello .
>> 
>> I need to add dynamic content to header .the header is generated in a
>> class
>> extending PdfPageEventHandler.and I am trying to initialize the contents
>> in
>> OnstartPage()
>> method  .However I am getting only the last values of the list...
> 
> What list?
> 
>> How Can it be rectified?
> 
> Rectify what?
> There is no list involved in onStartPage,
> only a PdfWriter and PdfDocument instance.
> Are we talking about the same interface???
> 
>> so that on each page new values should come from the
>> list to the header...
>> 
>> Am I initializing data in a wrong place?
> 
> Maybe your code is as unclear as your question.
> br,
> Bruno
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/adding-dynamic-content-to-header-issues-tp18403294p18437471.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to