我使用bulid进行了文档的嵌入
NodeCollection runs = mainDoc.getChildNodes(NodeType.PARAGRAPH, true); //获取所有节点
int dell = 0 ;
for (int i = 0; i < runs.getCount(); i++) {
Paragraph r = (Paragraph) runs.get(i);
String text = r.…... 代码如下 Document doc = new Document("input.docx"); DocumentBuilder...insertAfterNode, Document mainDoc, Document srcDoc) throws Exception...