Dear all,
Hope you can help me to find the right code.
I want to add an image to a cell in a table. The table has the following
characteristics.
table.setSplitRows(true);
table.setSplitLate(false);
Inorder to avoid small-scalled images to be added to a PdfPCell, the
minimumheight of the cell is set to as follows.
cell = new PdfPCell();
cell.setMinimumHeight(document.getPageSize().getHeight()/2);
Then, he image is added as follows:
cell.addElement(image);
table.addCell(cell);
The idea is that, if the cell to which the image has to be added starts
below the half of the page-height, then the table has to break, and the cell
with image has to printed in the next page. But, in my case, the image is
scaled down to fit into the available table space rather than moving into
next page.
Is their any other way to accomplish this.
Thanks in advance.
Vik
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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