如何使用Apache POI将.docx转换为.doc
问题描述:
我需要知道如何使用apache poi
(可能使用XWPFDocument
和HWPFDocument
类)将.docx
转换为.doc
,如果无法实现,请提供替代解决方案.
I need to know how to convert .docx
to .doc
using apache poi
, maybe using XWPFDocument
,HWPFDocument
classes, if not achievable please provide alternative solutions.
答
使用通过JODConverter驱动的LibreOffice.
Use LibreOffice, driven via JODConverter.