Thanks for the help. The examples you have presented were helpful. I
don't believe I have clearly stated my situation. My project requires
that I generate a report as follows.

Each page of the report will contain 
1. A company logo, with message at the top of each page.
2. In between a table of the report data.
3. At the bottom of each page there will be a copyright

The first page will also contain under the company logo a description of
the report. 

The table generated will have a header but only on the first page, if
the table does not fit on the first page the remaining rows must flow to
the additional pages with out the table header. 

Taking a queue from how paragraphs follow each other I believe I have
found a solution. In the onEndPage I use the writeSelectedRows method of
the table object and the rows of the table do not overflow the copyright
table.


-----Original Message-----
From: 1T3XT info [mailto:[email protected]] 
Sent: Wednesday, February 11, 2009 3:24 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] My PdfPTable is over running my footer

Lopes, James wrote:
> I have a page header and page footer with a PdfPTable in between the
> PdfPTable over runs the page footer. My original e-mail said nothing
> about adding a page number, although I will have to add them.

A creative solution would be to forget about HeaderFooter (always a good

idea) and even about PageEvents. Why not use a solution like this:

http://1t3xt.info/examples/browse/?page=example&id=107

This way, the table controls the header/footer.
Page numbers can be added using a cell event as is done here:
http://www.1t3xt.info/examples/browse/?page=example&id=323

Note that there's a known bug in this last example. If you look at the 
result, you can see there's a problem with the borders:
http://www.1t3xt.info/examples/results/classroom/filmfestival/movies15.p
df
I know about this bug, but I didn't have the time to fix it yet.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------
------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to