Your reply: 
If you're referring to the event class and the onEndPage() you've written, then 
the solution is simple: add member-variables to your PdfPageEvent 
implementation, add getters and setters and use the setters to keep the current 
state of the header/footer.

I still fail to see how this is an iText question as opposed to being a general 
programming question.

Because of the nature of how the PDF is streamed the setters/getters have to be 
accessed after the table is built and then the setter does not have access to 
the original value ... 

I am calling the event when the CreatePDF method is called and looping thru 
each day (setting the member variable in foreach loop) ... the EndOfPage event 
is called during creation of PDF from stream after CreatePDF ... hence the only 
stored value in the setter is the last day (Saturday) ... do you understand now 
why it is an itextsharp question? I know how to use set/get but because of the 
way itext streams after creating tables it does not know what to place in the 
page header except the last day set? Right? If not please show example ... 

Randy Hoover
ran...@projectcadd.org
www.projectcadd.org
cel: 619.228.6348
fax: 619.589.2233


-----Original Message-----
From: iText mailing list [mailto:i...@1t3xt.info] 
Sent: Sunday, July 06, 2014 10:45 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] itext with dynamic headers

On 7/7/2014 7:43 AM, iText mailing list wrote:
> On 7/6/2014 4:57 PM, Randy E. Hoover wrote:
>> and i tried onEndPage - i cant get the data i need passed up to the 
>> FTNs
>
> What are the FTNs? I've never heard of that abbreviation. 

If you're referring to the event class and the onEndPage() you've written, then 
the solution is simple: add member-variables to your PdfPageEvent 
implementation, add getters and setters and use the setters to keep the current 
state of the header/footer.

I still fail to see how this is an iText question as opposed to being a general 
programming question.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn 
processes into business applications with Bonita BPM Community Edition Quickly 
connect people, data, and systems into organized workflows Winner of BOSSIE, 
CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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