Tine Mayr wrote:
Hello Everyone,
I need to include a footer image on the last page of the pdf.
My problem is that the last page is defined by the amount of data
contained in a preceeding datatable holding varying amounts of data.
As long as there is enough space after the table for the image
everything is fine, but if the datatable fills most of the space the
last 3 rows (displaying summary information) should move to a next
page together with the footer image.
I’m currently trying to use a PdfCellEvent that is triggered before
tha last rows are added – the idea was to set the height of a blank
cell preceeding the summary rows so the table would automatically be
broken, but it seems that setting he cell height at that time is ignored.
Any suggestions on how I could go about that?
Use writer.getVerticalPosition(true);
This causes a new line to be added after the last object you have added
and returns the space left on the page (it gives you the y coordinate).
writer.getVerticalPosition(false) does the same without adding the newline.
br,
Bruno
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions