Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to convert HTML to DOCX file on linux. I tried Converting HTML to odt, doc, docx, but did not find the right way to handle CSS while converting to DOCX.

share|improve this question

migrated from stackoverflow.com May 15 '12 at 10:23

This question came from our site for professional and enthusiast programmers.

If you are happy to use Java, you can convert your HTML to XHTML, and then use docx4j to import it. The import is CSS aware.

share|improve this answer

You must log in to answer this question.