Bruno,
>From your book:
/* chapter06/PdfPTableImages.java */
PdfPTable table = new PdfPTable(1);
table.addCell(img);
table.addCell(new PdfPCell(img, true));
table.addCell(new PdfPCell(img, false));
When you add an image directly to the table b, the properties of the default
cell
are used (for instance, padding = 2); the image is scaled to fit the cell by
default.
When you add an image wrapped in a cell, the properties of the default cell
aren't taken into account. If you set the parameter fit to true c, the image
is
scaled so that it fits the cell. If it's set to false d, iText tries to
adapt the cell
dimension to the image.
'iText tries to adapt the cell
dimension to the image.' ??
In my case, iText is failing to adapt the cell dimension to the image, but I
can't see why. Is there a way to be sure that the image size is placed on
the page without changing its size at all?
John
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/