Skip to main content

Convert docx files to html

Project description

html4docx

A package to convert docx files to html with added features on top of mammoth library.

Developed by Paras Jain (c) 2023

Features

  • Added support for all-types of images.
  • Images like .emf are converted to .png type.
  • Image dimensions present in the file are converted for html with preset same width and height.

Note To convert .emf image types to .png, linux env is necessary with inkscape installed.

Examples of How To Use

Convert docx to html

from html4docx.convert import docx_to_html

html = docx_to_html("your_docx_filepath_here", is_convert)
  • your_docx_filepath_here: Your docx file path
  • is_convert: is a boolean to convert .emf imgs to .png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html4docx-0.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

html4docx-0.0.3-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page