Convert doc/docx to semantic HTML

前端 未结 5 1785
猫巷女王i
猫巷女王i 2021-01-07 08:17

I would like to convert doc/docx documents to semantic HTML.

Some wishes/requirements:

  1. Semantic HTML such that headers in the document are

相关标签:
5条回答
  • 2021-01-07 08:58

    There's a tool called upCast which is able to convert Word documents into XML.

    0 讨论(0)
  • 2021-01-07 09:09

    " headers in the document are " I think this is impossible. Because MS Word only write down the result, with different styles of <p> just like printed text on paper, the original info are not recorded.

    Your other wishes could be approached. There're two commercial tools can do this (don't believe those free tools or online tools, they don't do the real work.)

    1 Word Cleaner by Zapadoo www.zapadoo.com
    2 HTML Cleaner for Word by wonder Studio www.htmlcleaner.com

    I prefer the second one which released just last year. You can try them both.

    0 讨论(0)
  • 2021-01-07 09:09

    I wrote a utility which implements the requirements you listed, excluding images, graphs and maths formulas. It's beta quality (i.e., it works on my machine). I published it at http://www.modeltext.com/word

    0 讨论(0)
  • 2021-01-07 09:15

    Just more ideas.

    Use Gmail to convert word docs

    http://www.oreillynet.com/mac/blog/2006/05/use_gmail_to_convert_word_docs.html

    0 讨论(0)
  • 2021-01-07 09:18

    docx4j (for docx only, not doc) writes clean HTML output. You'd need to change things a bit if you wanted <h1> instead of <p class="h1">, but its open source so you can do that.

    0 讨论(0)
提交回复
热议问题