Skip to main content

Convert HTML to Docx easily and fastly

Project description

HTML FOR DOCX

Convert html to docx, this project is a fork from descontinued pqzx/html2docx.

To install

pip install html-for-docx

Usage

Take a look on pqzx/html2docx project to see examples of usage.

Why

My goal to fork and fix/update this package was to complete my current task at work that envolves manipulating a html to docs which the original couldn't complete because was lacking of few features and bugs, so instead creating a package from zero, I prefer update this one.

Differences (fixes and new features)

Fixes

  • Handle missing run for leading br tag | dashingdove from PR
  • Fix base64 images | djplaner from Issue
  • Handle img tag without src attribute | johnjor from PR
  • Fix text-align bug when !important | Dfop02
  • Fix background-color always set default color | Dfop02
  • Fix 'style lookup by style_id is deprecated.' | Dfop02

New Features

License

This project is licensed under the MIT License - see the LICENSE file for details

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

html-for-docx-1.0.1.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file html-for-docx-1.0.1.tar.gz.

File metadata

  • Download URL: html-for-docx-1.0.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for html-for-docx-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8965971bde07c2651c9dea878a883a0d645fca0ea9e02ce13c35a7486410a78a
MD5 cd07b77dc6274e42f6b000713e831937
BLAKE2b-256 290a84078d1627298c35baf7449057289e1b017b85a0c31db56a6eccb1d56622

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