Sorin Marti wrote:
> Hi all,
> 
> As I read, it is not possible to scale images within a table cell.

It isn't? Where did you read this? In my book it says:
"Suppose you want to make a table containing the specifications
of all the products that are sold by your company. One of the
columns should contain an image displaying the product. These
images have various heights and widths, so you want iText to
scale each image so that it fits into the table.
That's easy to achieve, but make sure you use the right method.
There are three different ways to add an image to a table.
When you add an image directly to the table (1), 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 (2), the image is scaled so that it fits the cell.
If it's set to false (3), iText tries to adapt the cell dimension
to the image."
Please tell me where you've read your faulty information.
If it's on one of the official sites, I'll remove it.
If not: why don't you get your information from the book?
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to