If it worked like that in 1.02b it was a bug. A PdfPCellEvent must provide the real cell dimensions, in this case the fixed height.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Michael Seib > Sent: Thursday, September 22, 2005 7:24 AM > To: [email protected] > Subject: [iText-questions] using CellEvent to check wether > Text fits in cell or not > > Hi, > > i would like to use the Cell Event to check wether a certain > text fits in a > cell or not. > With version 1.02b I used the method setFixedHeight for > PdfPCell to set the > height the cell should use. In the CellEvent I then checked > if the current > height of the cell [cell.height()} is larger than the > fixedHeight and then > put a * into the cell to tell the user to look in the > appendix for the > complete text. > With version 1.3 the actual height of the cell seems to be > limited to the > fixedHeight, so I can't check height > fixedHeight any more. > Also all text > that doesn't fit in is truncated. > Is this correct? > What can I do to make it work again. > > Thanks in advance and > best regards > Mike > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv > or your very > own Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
