Search code examples
javaspringitextitext7

Attach 2 tables in iText 7


how can I attach 2 iText Tables to each other? Please see the attached image (I need to attach table A and table B).

I tried to create Table C with colspan = 1 and add A and B as cells, but it didn't help.

Thank you.

enter image description here


Solution

  • setMarginBottom() and setMarginTop() solved the problem.

    PS. setMarginBottom() and setMarginTop() replaced setSpacingBefore() and setSpacingAfter() in iText 7