Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Repeat layered text on every page,
BUT my tables span multiple pages, so cant write on every page

ChrisR

2007-06-27

Replies:


Hi

I need to write a footer on every page of my document.  The footer is text
with a non-printable white rectangle drawn over it, which requires layers.
I have tried to do this with the PdfStamper but it seems as though it wont
do layers, and non-printable layers, so my only option is to check for a new
page number in my code and write the footer when I can.  BUT when I have a
table that spans 2 pages its impossible for me to write the footer for every
page .


i.e.

// i am on page number 1 here
addFooter(writer)
document.add(3pagedTable)
// i am not on page 3
addFooter(writer)

In this example Page 2 is being missed.

Does anyone have any ideas? any help would be greatly appreciated.
Thanks
Chris
--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.