Search code examples
itextitext7

iText7 Single Cell spliting in two pages after page break


As you can see below, the same cell got splitted in two pages... But I need them in the same page, how can I do that?

I tried to use "SetHeight" in cell but no success...

enter image description here


Solution

  • You can try

    new Cell().SetKeepTogether(true)