如何使用 Tika 或 POI 将 doc 转换为 docx? [英] How to convert doc to docx using Tika or POI?
本文介绍了如何使用 Tika 或 POI 将 doc 转换为 docx?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我使用 apache Tika 或 apache POI 将 .doc 文件转换为 .docx 吗?我尝试了很多方法,但始终无法将文档转换为 docx 格式.
Can Anyone help me to convert a .doc file to .docx using apache Tika or with apache POI? I tried a lot of ways but stuck in converting the document to docx format.
感谢帮助.
谢谢和问候,阿伦RS
Thanks and Regards, Arun R S
推荐答案
我最近在做这个.
我使用aspose words
将.doc
转换成.docx
.
非常方便.
Document doc = new Document(filePath);
doc.save(descFilePath);
只有两行.
这篇关于如何使用 Tika 或 POI 将 doc 转换为 docx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文