onStartPage and onEndPage execute on each page, as expected. Check that
your attributes really change page by page. That won't happen if you
have a table and the attributes change when you add something to the
table. As the table only generate pages when added to the document,
there you have the last attribute mistery. I'm just guessing, of course.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Clair W. Cabal
> Sent: Wednesday, June 20, 2007 4:31 PM
> To: [email protected]
> Subject: [iText-questions] Dynamic content in document header
>
> My task is this: create a pdf report document of many pages
> where each page has a header with both fixed content and
> dynamic content (the value changes periodically throughout
> the report).
>
>
>
> I have been unable to accomplish this. I have a class that
> builds the report and a class that builds the header which
> extends PdfPageEventHelper. The PdfPageEventHelper class has
> access to the attributes that periodically change in the
> report class. I initialize the variables that need to
> display in the onStartPage method, and display the header
> information in the onEndPage method. Whatever the LAST
> variable values are for the report is what gets printed in
> the header of every page. So, it looks like the
> PdfPageEventHelper methods do not execute until the entire
> document is complete - by which time I have lost the ability
> to capture the values I need. Is there a way to do this?
>
>
>
> Clair W. Cabal
>
> Nelson & Associates
>
>
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/