# 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
```python
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
Raw data
{
"_id": null,
"home_page": "",
"name": "html4docx",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,docx,html,docx-2-html,docx2html,docx-to-html,convert,docx_to_html,html4docx",
"author": "Paras Jain",
"author_email": "<paras.2426@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/97/be/30a3581abbd5a15fc41847172051e65a7f7f70cc0284c220270dfa1de491/html4docx-0.0.3.tar.gz",
"platform": null,
"description": "# html4docx\r\n\r\nA package to convert docx files to html with added features on top of mammoth library.\r\n\r\nDeveloped by Paras Jain (c) 2023\r\n\r\n## Features\r\n\r\n- Added support for all-types of images.\r\n- Images like .emf are converted to .png type.\r\n- Image dimensions present in the file are converted for html with preset same width and height.\r\n\r\n**Note**\r\nTo convert .emf image types to .png, linux env is necessary with inkscape installed.\r\n\r\n## Examples of How To Use\r\n\r\nConvert docx to html\r\n\r\n```python\r\nfrom html4docx.convert import docx_to_html\r\n\r\nhtml = docx_to_html(\"your_docx_filepath_here\", is_convert)\r\n```\r\n\r\n- your_docx_filepath_here: Your docx file path\r\n- is_convert: is a boolean to convert .emf imgs to .png\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Convert docx files to html",
"version": "0.0.3",
"project_urls": null,
"split_keywords": [
"python",
"docx",
"html",
"docx-2-html",
"docx2html",
"docx-to-html",
"convert",
"docx_to_html",
"html4docx"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2763ef17acbaca821c1560ccaeda2874d6c33959321f48ff5bdf0657b902c767",
"md5": "2ee8d7eb1b10102bb714d8d0acdcfece",
"sha256": "aa34ca3ce134151e3f21b6025925d1919f424a1b39f80520b547ec0187d03249"
},
"downloads": -1,
"filename": "html4docx-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2ee8d7eb1b10102bb714d8d0acdcfece",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5802,
"upload_time": "2023-12-08T08:21:08",
"upload_time_iso_8601": "2023-12-08T08:21:08.790175Z",
"url": "https://files.pythonhosted.org/packages/27/63/ef17acbaca821c1560ccaeda2874d6c33959321f48ff5bdf0657b902c767/html4docx-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "97be30a3581abbd5a15fc41847172051e65a7f7f70cc0284c220270dfa1de491",
"md5": "17772dff9825fe6bb6ff04270cf4bd4a",
"sha256": "d3db0c0f03af1bca9563aa61fdcdb2ce82aafca3a7241584dab7b140622905e2"
},
"downloads": -1,
"filename": "html4docx-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "17772dff9825fe6bb6ff04270cf4bd4a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3012,
"upload_time": "2023-12-08T08:21:10",
"upload_time_iso_8601": "2023-12-08T08:21:10.677767Z",
"url": "https://files.pythonhosted.org/packages/97/be/30a3581abbd5a15fc41847172051e65a7f7f70cc0284c220270dfa1de491/html4docx-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-08 08:21:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "html4docx"
}