Like pic

image.png (333.9 KB)
QQ20170721-110012@2x.png

@landray.com.cn,

Thanks for your inquiry. You may use following code to accomplish your requirements. Hopefully it will help you to accomplish the task. However, if the issue persists then please share your input document as ZIP file here, we will look into it and will guide you accordingly.

Document doc = new Document("input.docx");
doc.acceptAllRevisions();
doc.getChildNodes(NodeType.COMMENT,true).clear();
....