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…...pdf (57.9 KB) table-test-with-cleanup-two-datasets.pdf (57...ets.pdf (57.6 KB) table-test-no-cleanup-one-datasets.pdf (57...