Skip to main content

Aspose.Words plugin for Docling

Project description

Aspose.Words for Docling

Python Version License

Overview

Aspose.Words for Docling is a free plugin for Docling based on Aspose.Words for Python via .Net commercial library.
The plugin is designed for parsing multiple document formats and converting them into Docling Documents suitable for AI processing.
Aspose.Words plugin allows you to convert formats as .docx, .pdf, .doc, .rtf, .html, .mhtml, .mobi, .azw3, .epub, .odt, .txt, .md and .xml.

Features

  • Convert .docx, .pdf, .doc, .rtf, .html, .mhtml, .mobi, .azw3, .epub, .odt, .txt, .md and .xml to DoclingDocument.
  • Support all document components, including paragraphs, tables, images, headers, and footers.

Requirements

Installation

pip install aspose-words-docling

Python API

from aspose_words_docling import AsposeWordsConverter

aspose_converter = AsposeWordsConverter()
doc = aspose_converter.convert("test.doc")

md = doc.export_to_markdown()
print(md)

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 aspose_words_docling import LicenseManager

LicenseManager().apply_license("/path/to/license/aspose.words.lic")

Running Tests

To run unit tests for Aspose.Words for Docling, follow these steps:

1. Navigate to the package directory

From the root of the repository, change into the package directory:

cd /packages/aspose-words-docling/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 IBM trademarks or logos is subject to and must follow IBM's Trademarks. IBM Logo and Brand Guidelines. Use of IBM trademarks or logos in modified versions of this project must not cause confusion or imply IBM sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

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

aspose_words_docling-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aspose_words_docling-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file aspose_words_docling-0.1.1.tar.gz.

File metadata

  • Download URL: aspose_words_docling-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for aspose_words_docling-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a29b15e9d626262be356961901e4131751733915a135868b2e6d56be6ad07612
MD5 90da2e728fba3e07179452e790058a7e
BLAKE2b-256 669265ed8ea724a5513364782e58d4fdade646aa2b20c0dd06761f890668c556

See more details on using hashes here.

File details

Details for the file aspose_words_docling-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aspose_words_docling-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d960ab9439a33c02983390f5a26eb7276392b74b263084d19d8a5fa2c7dd699b
MD5 e174806dc43f2c633782825f033ff013
BLAKE2b-256 035710b8eaa424bcb4ccd1e4a1177672d23b44006ad63faa43f71d4f88db532a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page