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.
Asked
Active
Viewed 3,696 times
2

Jayan
- 18,003
- 15
- 89
- 143

Jalal Sordo
- 1,605
- 3
- 41
- 68
-
Both formats are microsoft specific. What value do you get by using poi? The conversion may be lossy, it is better done via ms tools. – Jayan Dec 10 '13 at 05:03
-
how can i do this using ms tools, any documentation, useful links ? – Jalal Sordo Dec 10 '13 at 10:24
-
Glad this is done. I am removing poi tag. You may write your solution as an answer. It is going to help lot of folks. – Jayan Dec 11 '13 at 06:18
-
exactly, i will need some time, to put a detailed solution. – Jalal Sordo Dec 11 '13 at 09:06
1 Answers
3
Use LibreOffice, driven via JODConverter.

JasonPlutext
- 15,352
- 4
- 44
- 84
-
That's what i'm trying right now, but i have problems setting OpenOffice 4 to run as a service on windows, do you have any documentation, useful links ? – Jalal Sordo Dec 10 '13 at 15:16
-
it's working now like a charm, if anyone needs assistance on this, i'am keen to help. – Jalal Sordo Dec 10 '13 at 16:10
-