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
- Add Witdh/Height style to images | maifeeulasad from PR
- Support px, cm and % for style margin-left to paragraphs | Dfop02
- Improve performance on large tables | dashingdove from PR
- Support for HTML Pagination | Evilran from PR
- Support Table style | Evilran from PR
- Support alternative encoding | HebaElwazzan from PR
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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8965971bde07c2651c9dea878a883a0d645fca0ea9e02ce13c35a7486410a78a |
|
MD5 | cd07b77dc6274e42f6b000713e831937 |
|
BLAKE2b-256 | 290a84078d1627298c35baf7449057289e1b017b85a0c31db56a6eccb1d56622 |