Aspose.Words plugin fo MarkItDown
Project description
Aspose.Words for MarkItDown
Overview
Aspose.Words for MarkItDown is a free plugin for MarkItDown based on Aspose.Words for Python via .Net commercial library.
The plugin is designed for parsing multiple document formats and converting them into Markdown suitable for AI processing.
Aspose.Words plugin allows you to process new formats as .doc, .rtf, .odt, .mhtml, .mobi and .azw3.
Moreover, you can get better conversion for .docx, .pdf, .html, .epub and .txt documents without your code modification.
Features
- Convert
.docx,.pdf,.doc,.rtf,.html,.mhtml,.mobi,.azw3,.epub,.odt,.txt,.mdand.xmlto Markdown. - Support all document components, including paragraphs, tables, images, headers, and footers.
- Fully integrated with MarkItDown tool. You don't need to change your code to use the Aspose.Words plugin.
Requirements
- MarkItDown version 0.1.0 or higher.
- Aspose.Words for Python via .Net. This library is a commercial product.
You'll need to obtain valid license for Aspose.Words. The package will install this dependency, but you're responsible for complying with Aspose's licensing terms.
Installation
pip install aspose-words-markitdown
Usage
Make sure the plugin is installed correctly
List MarkItDown plugins with the command:
markitdown --list-plugins
Check the plugin is installed:
Installed MarkItDown 3rd-party Plugins:
* aspose_words_markitdown (package: aspose_words_markitdown)
Command Line Interface
You can use the original markitdown CLI in the common way. Just add the --use-plugins option to enable the plugin.
Convert a Single File
markitdown test.doc -o out.md --use-plugins
Python API
Basic usage in Python:
from markitdown import MarkItDown
md = MarkItDown(enable_plugins=False) # Set to True to enable the plugin
result = md.convert("test.doc")
print(result.text_content)
Set License
Environment Variables
To activate your Aspose.Words for Python license, set the corresponding environment variable.
Refer to the OS-specific instructions below:
Unix-based (Linux/macOS):
export ASPOSE_WORDS_LICENSE_PATH="/path/to/license/aspose.words.lic"
Windows-based:
set ASPOSE_WORDS_LICENSE_PATH=c:\path\to\license\aspose.words.lic
Python API:
from markitdown import MarkItDown
LicenseManager().apply_license("/path/to/license/aspose.words.lic")
Running Tests
To run unit tests for Aspose.Words for MarkItDown, follow these steps:
1. Navigate to the package directory
From the root of the repository, change into the package directory:
cd /packages/aspose-words-markitdown/tests
2. Install test dependencies
Make sure pytest is installed:
pip install pytest
3. Run tests using pytest
To run all tests:
pytest
License
This package is licensed under the MIT License. However, it depends on Aspose.Words for Python via .Net library, which is proprietary, closed-source library.
⚠️ You must obtain valid license for Aspose.Words for Python via .Net library. This repository does not include or distribute any proprietary components.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aspose_words_markitdown-0.1.2.tar.gz.
File metadata
- Download URL: aspose_words_markitdown-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b138c47dfe1af7b41510ac60281e63f79784c1f94b9cb56d64bd96dac39b692
|
|
| MD5 |
0758352af496088e141676c781fdcfa7
|
|
| BLAKE2b-256 |
10ec6f6b802787a27c0919dff54db4ed97bb30f4ef7f23b47ff3c5521086c30b
|
File details
Details for the file aspose_words_markitdown-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aspose_words_markitdown-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db6a82d2eb096066d8c0e38a44e0bcbc728cd0de9e73dbbcfe36026a85d5c69c
|
|
| MD5 |
fcae7691fe9e8c406ae16d2aa78d49d5
|
|
| BLAKE2b-256 |
1ac8ef02b60ee327ce9cc12a3200fbe4b492e56c32c36a6056fe67b318eb5275
|