Kishore_Antrias wrote: > Hi, > I have five cells in a table where three cells have the > contents, and two cells don’t have any contents. The problem is the > cell which do not have contents occupy the same space as the cell > which have the contents. In html cell width are adjusted according > to the content automatically.
NEWS BREAK: PDF isn't HTML! > In PdfPcell, how can I adjust cell width according the cell > contents automatically?, though if it is cell.setNoWrap(true) You can't. PDF nor iText are designed to do that. You have to specify the width of the cells yourself. If you want a longer answer (the answer to the 'why' or 'why not' questions), please read the book "iText in Action". -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- 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 Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
