On 16/09/2011 14:07, sudhaofficial wrote:
> Hi Friends,
> Am also facing the same problem. Datatable may contain any number of
> columns. Now i dont want to wrap the content of column (atleast for column
> headers). I tried with NoWrap also. But it is overlapping with the adjacent
> cells. Please help me in this.

As explained in the book, NoWrap will continue writing outside the 
bounding box of the cell.

If you want to avoid cell content to be wrapped, you can define a fixed 
cell height. With a fixed cell height the content will be cut of. So if 
you have a "verylongwordthatdoesntfit". Part of the word won't be 
visible; for instance: "verylongwordthatdo" ("esntfit" will be cut of).

If this isn't what you want, if you don't want to lose any content, then 
we have to disappoint you: PDF isn't HTML! If you want all the content 
to fit exactly in the cell, you'll have to do plenty of math, measuring 
strings and choosing your column width accordingly.

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to