I am testing the latest version as we have noticed a problem with an older one, but that problem seems to be present in the latest version too.
Specifically, I created this test document to showcase the issue:
test-dev…...MailMerge mm = document.getMailMerge(); mm.setFieldMergingCallb(new...setFieldMergingCallb(new ImageMerge()); mm.setTrimWhitespaces(true); // creo...