Skip to content

docx文档转html文档,包括docx中图片和数学公式(word中内置公式编辑器编辑的公式)!

Notifications You must be signed in to change notification settings

wuhuanhost/docx2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quick start

setp 1 install project dependencies

pip install -r requirements.txt

setp 2

  • copy body_xml.py from ./bank/body_xml.py to python_home/Lib/site-packages/mammoth/docx/body_xml.py

  • copy omml.py from ./bank/omml.py to python_home/Lib/site-packages/dwml/omml.py

setp 3

copy [filename].docx to ./data/docx

setp 4

$ cd ./src

$ python parse_html.py  test.docx  test.html

打包成.exe安装pyinstaller

$ pyinstaller -F -w -i manage.ico ./src/parse_html.py

或者安装打包工具目录下的cfreeze然后执行

$ cfreeze ./src/parse_html.py

About

docx文档转html文档,包括docx中图片和数学公式(word中内置公式编辑器编辑的公式)!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published