title: how to convert HTML to .docx using docx4j?
body: <p>I read some articles about the conversion of <code>html</code> to <code>.docx</code> and I found out that <code>docx4j</code> gives pretty decent results. I wonder if anyone could provide me the following info:</p>
  
  <ol>
  <li>Needed <code>jars</code> and versions.</li>
  <li>Sample code for conversion from <code>html</code> to <code>.docx</code>.</li>
  </ol>
  
  <p>Sorry I couldn't post anything I tried because I haven't tried anything on this task yet, although I use <code>Apache POI</code> to convert the <code>bytes[]</code> I get from <code>datatabse</code> to <code>html</code> to output in a <code>rich text editor</code> on a <code>jsf</code> application. Please enlighten me, I'm lost in stress and confusion...!</p>