我使用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.…...docx"); DocumentBuilder builder =...LANDSCAPE); } } doc.save("output.docx"); 请尝试使用 builder.getCurrentSection()...