I have modified the sample ContentControlsMergeXML a little to illustrate the issue.
The binding method is called with FLAG_NONE to make sure that the controls are removed in the output document:
- Code: Select all
Docx4J.bind(wordMLPackage, xmlStream, Docx4J.FLAG_NONE);
The attachment "binding-simple.docx" is the original document, the attachment "OUT_ContentControlsMergeXML.docx" is ...