Pietroke wrote:
> Hi,
> 
> I am using the method setExtendLastRow to fill the remaining space on the
> page but I want to give a summary of the content of the PdfPTable on the
> last page of the Pdf.

OK, but you'll have to create the content of that summary yourself. For 
instance: if it's the sum of some values in some columns, you need to 
keep track of the final value. (The usual answer is: "iText isn't Excel")

> Is there a possibility to set the height of a PdfpTable to a fixed size?

It's possible to set the height of a PdfPCell to a fixed size.
Maybe you can wrap a table in a cell or a column if you need to set the 
height of the table. I'm not sure if I understand the question.

> Another possibility is to put the summary in a footer on the last page. How
> can I determine if a page is the last page in the pdf?

There's no way for iText to know if some page is the last page, because 
you can always add new data. However: there's an event onCloseDocument 
that is similar to onEndPage, except that it's triggered only once: just 
before the document is closed. Maybe that's what you're looking for.

> I've looked in the book and in all the examples.

setFixedHeight is shown on page 173
onCloseDocument is mentioned on page 432
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to