如何使用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屋!
查看全文