How to convert doc to docx using Tika or POI?

折月煮酒 提交于 2019-12-24 05:06:07

问题


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.

Help is appreciated.

Thanks and Regards, Arun R S


回答1:


I am doing this recently.

And I use aspose words to convert .doc to .docx.

Very convenience.

Document doc = new Document(filePath);
doc.save(descFilePath);

Just two lines.



来源:https://stackoverflow.com/questions/23886205/how-to-convert-doc-to-docx-using-tika-or-poi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!