Hi all,

My document has a header and a footer.  It also has some dynamic content which 
may span multiple pages and begins immediately after the header.  I now need to 
add some static text that will appear on the first page, after whatever dynamic 
content is on the first page - if there is very little or no dynamic content on 
the first page, this text needs to appear right after the header.  Otherwise, 
this text needs to appear after the dynamic content (followed by a blank space 
if there is enough room, followed by the footer).  If the dynamic content is 
long enough, then the second page of the document will consist of the header, 
the next portion of the dynamic content, and the footer.  Same for the third 
page and however many pages are needed to fit in all the dynamic content.

I've got all of this going already except for the dynamic content, using my own 
subclass of the PDFPageEventHelper class to handle the header and footer.  Is 
there any way to easily handle the problem I've described above?

I'm not very expert with iText, so maybe there is an easy solution?  One idea I 
had was to try and use a footer on the first page (that would include the 
static content), and then switch to my regular footer for all subsequent pages. 
 However, a) I'm not sure this is even possible and b) I think this would force 
the static content to appear immediately above the footer (rather than right 
after the header) if there is very little dynamic content on the page.  

In any case, any help / suggestions would be greatly appreciated!

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to