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?
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?
There's a method in the
Cell
class calledsetMaxHeight()
. 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.