Convert HTML to DOCX document
Author Amal Amrani
convert_html_to_docx allows you to convert a HTML Document To Word .docx. The different elements supported and parsed by this library are the following:
Lists nested with bullets or numbered
<ul> or <ol>
<a href >
The images must be in the same location as the HTML document in order to be accessed and converted.
The images URL in the HTML document are converted first to Base64, before converting the document to .docx. The generated documents support RTL orientation for texts that require writing from right to left.
To use this converter, you only need to include the following files that are already included in the .zip to download:
To save the .docx:
To create the different documents that integrate and define the .docx structure:
You can see an example here example to convert html to docx link