I am trying to generate a table in my pdf document that should have two rows. The first row should not be split in columns but the second row should be split in two columns. Something that looks like below:
So far I have been able to create a table inside a PdfPCell but that is not how I want my table to look. Is there a way I can do this?
Edited: I am using itextpdf-5.5.13.3 with pdfbox-3.0.0 and commons-lang3-3.14.0.
You don't specify which version you use, nor an example but with itext8 you can use row and col span overload in
Cell
.Something like this should do the trick:
More advanced examples can be found here itext examples