hey james,

i had a similar requirement, except that in place of a logo at the top,
the logo was in a left-hand sidebar, and and in place of a copyright,
there was a modification date and page number. i also ran into the
problem of a PdfPTable overflowing into the footer.

i used a PageEvent implementation to decorate each page in the
onEndPage() method as usual. however i simply adjusted the document
margins by excluding the area to the left and the bottom, so that the
document's body included only the 'content' area. in the constructor of
my PageEvent implementation, i provided the 'actual' margins so it knew
where to write stuff.

jeff

> -----Original Message-----
> From: Lopes, James [mailto:[email protected]] 
> Sent: Wednesday, February 11, 2009 7:40 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] My PdfPTable is over running my footer
> 
> 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
> 
########################################################################
"This email message, including any attachments, is for the sole use of the 
intended recipients and may contain confidential and privileged information.  
Unauthorized use, disclosure or distribution of this email is strictly 
forbidden.  If you have received this message in error, please reply to the 
above sender notifying them of this error, and then kindly delete the message."
########################################################################

------------------------------------------------------------------------------
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