Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 479 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 479 Bytes

html-to-docx

This script transforms a HTML document into a properly formatted Word document (.docx). It currently supports the following.

  • Headers
  • Paragraphs
  • Embedded base64 images
  • Tables

Usage

To use the script, the dependencies must be installed.

pip install -r requirements.txt

Then you can use the script specifying the input file and the output file in that order.

python html_converter.py <PATH_TO_HTML_FILE> <PATH_TO_OUTPUT_FILE>