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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file html4docx-0.0.3.tar.gz.

File metadata

  • Download URL: html4docx-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for html4docx-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d3db0c0f03af1bca9563aa61fdcdb2ce82aafca3a7241584dab7b140622905e2
MD5 17772dff9825fe6bb6ff04270cf4bd4a
BLAKE2b-256 97be30a3581abbd5a15fc41847172051e65a7f7f70cc0284c220270dfa1de491

See more details on using hashes here.

File details

Details for the file html4docx-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: html4docx-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for html4docx-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa34ca3ce134151e3f21b6025925d1919f424a1b39f80520b547ec0187d03249
MD5 2ee8d7eb1b10102bb714d8d0acdcfece
BLAKE2b-256 2763ef17acbaca821c1560ccaeda2874d6c33959321f48ff5bdf0657b902c767

See more details on using hashes here.

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