Lars Nagel (Trium) wrote:
> Hi all,
>
> Is it possible to set / manipulate the height of a Table's Cell?
See "iText in Action" page 172-173
Use methods setFixedHeight() or setMinimumHeight()
(depending on your exact requirement).
> I have Cells containing one Phrase each, and some of the Phrases (and
> complete rows) wrap only empty Strings. Now I want to avoid that Cells
> with empty Phrases collapse.
setMinimumHeight() will avoid that PdfPCells with
empty Phrases collapse; setFixedHeight will make
sure the PdfPCell has an exact height (all extra
content will be discarded).
These methods are available in class PdfPCell,
NOT in class Cell. If for some reason you can't
switch to PdfPTable and PdfPCell (as advised in
the book), your only alternative is to use a
non-breaking space character: new Phrase("\u00a0")
br,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/