How to set the height in iText7

2.1k views Asked by At

I use iText7 to generate PDF file. I want to set the Cell's height. I use method setHeight to do it. If the content is less, the cell is OK, but if the content is more, the cell's height is extend. How can I resolve it?

1

There are 1 answers

2
Bruno Lowagie On

There's a method in the Cell class called setMaxHeight(). However, as you can see in the API Docs, this method is only available in iText 7.0.2, and that version hasn't been officially released yet.