Metadata-Version: 2.1
Name: htmldocx
Version: 0.0.1
Summary: Convert html to docx
Home-page: https://github.com/pqzx/h2d
Author: pqzx
Author-email: jc3664@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# htmldocx
Converts html to docx

Dependencies: `python-docx` & `bs4` (optional, if you want to fix html before converting)

Usage: Add strings of html to an existing docx.Document object

```from parser import HtmlToDocx
from docx import Document
from htmldocx import HtmlToDocx

document = Document()
new_parser = HtmlToDocx()
# do stuff to document

html = '<h1>Hello world</h1>'
new_parser.add_html_to_document(html, document)

# do more stuff to document
document.save('your_file_name')
```

Also can convert html files
```
HtmlToDocx().parse_html_file(input-html-file, output-docx-file)
```


