The nowrap doesn't make much sense in PDF if you consider that the page can't grow forever as in HTML.
Paulo ----- Original Message ----- From: "Thomas Moorer" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, August 21, 2006 4:33 PM Subject: [iText-questions] Cell.NoWrap? > Hi, > > I have a table cell (com.lowagie.text.Cell) that has text that is wider > than the width of the cell. I would like for the text to wrap within the > cell and the cell height to grow to accomodate the new lines within the > cell. Right now, the text is truncating instead of wrapping. I did some > searching in the mailing list and this issue has been raised before. I > checked the souce for my version 1.4.3 and here is what I found: > > /** > * Get nowrap. > * > * @return a value > */ > > public boolean noWrap() { > return maxLines == 1; > } > > /** > * Set nowrap. > * > * @param value the new value > */ > > public void setNoWrap(boolean value) { > maxLines = 1; > } > > Correct me if I'm wrong, but it doesn't look like you can modify the value > of noWrap. If that's true, and it looks like it is, then is it possible to > wrap text in a table cell using com.lowagie.text.Cell in a > com.lowagie.text.Table? If so, how? If not, when or if do with this > functionality be implemented? Are there any plans to do this? It seems to > me that wrapping long text in a cell is fundamental functionality. > > Thanks, > Thomas > > Thomas C. Moorer, Jr. > email: [EMAIL PROTECTED] > > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
