I have two MailMerge tables, of which one can be empty.
I use
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_UNUSED_REGIONS);
to not render the table at all, if it is empty.
The problem is, the t…...docx: table-test.docx (66.2 KB) Result files: table-test-no-cleanup-two-datasets...atasets.pdf (57.9 KB) table-test-with-cleanup-two-datasets.pdf...