Skip to main content

Convert HTML to Docx easily and fastly

Project description

HTML2DOCX

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

To install

pip install html4docx

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.0.tar.gz (16.4 kB view hashes)

Uploaded Source

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