docx转doc的方法(word中docx怎么转成doc)
当你调试bug的时候 1.添加依赖 pom添加 .e-iceblue http://repo.e-iceblue.cn/reposi
当你调试bug的时候
1.添加依赖
pom添加
.e-iceblue
http://repo.e-iceblue.cn/repository/maven-public/
e-iceblue
spire.doc.free
3.9.0
2.构建工具类
public File convertDocToDocx(String srcPath, String descPath) {
Document dc = new Document();
dc.loadFromFile(srcPath);
dc.saveToFile(descPath, FileFormat.Docx_2013);
return new File(descPath);
}
srcPath可以是.doc路径也可以是.docx路径,自己试一下吧