aspose-words


Nameaspose-words JSON
Version 24.11.0 PyPI version JSON
download
home_pagehttps://products.aspose.com/words/python-net/
SummaryAspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.
upload_time2024-11-13 10:02:16
maintainerNone
docs_urlNone
authorAspose
requires_python<3.13,>=3.6
licenseNone
keywords doc docx to pdf convert compare create edit word split bmp rtf odt open office html tiff dot wordml mobi chm txt md markdown xps svg ps postscript pcl epub png emf jpg gif mail merge table reporting document
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [Product Page](https://products.aspose.com/words/python-net/) | [Docs](https://docs.aspose.com/words/python-net/) | [Demos](https://products.aspose.app/words/family) | [API Reference](https://reference.aspose.com/words/python-net/) | [Examples](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET/) | [Blog](https://blog.aspose.com/category/words/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/words) | [Temporary License](https://purchase.aspose.com/temporary-license)

Try our [free online Apps](https://products.aspose.app/words/family) demonstrating some of the most popular Aspose.Words functionality.

[Aspose.Words for Python](https://products.aspose.com/words/python-net/) is a powerful on-premise class library that can be used for numerous document processing tasks. It enables developers to enhance their own applications with features such as generating, modifying, converting, rendering, and printing documents, without relying on third-party applications, for example, Microsoft Word, or automation.

## Word API Features

The following are some popular features of Aspose.Words for Python:

- Aspose.Words can be used to develop applications for a vast range of operating systems such as Windows, Linux or MacOS X.
- Comprehensive [document import and export](https://docs.aspose.com/words/python-net/loading-saving-and-converting/) with [35+ supported file formats](https://docs.aspose.com/words/python-net/supported-document-formats/). This allows users to [convert documents](https://docs.aspose.com/words/python-net/convert-a-document/) from one popular format to another, for example, from DOCX into PDF or Markdown, or from PDF into various Word formats.
- Programmatic access to the formatting properties of all document elements. For example, using Aspose.Words users can [split a document](https://docs.aspose.com/words/python-net/split-a-document/) into parts or [compare two documents](https://docs.aspose.com/words/python-net/compare-documents/).
- [High fidelity rendering](https://docs.aspose.com/words/python-net/rendering/) of document pages. For example, if it is needed to render a document as in Microsoft Word, Aspose.Words will successfully cope with this task.
- [Generate reports with Mail Merge](https://docs.aspose.com/words/python-net/mail-merge-and-reporting/), which allows filling in merge templates with data from various sources to create merged documents.
- LINQ Reporting Engine to fetch data from databases, XML, JSON, OData, external documents, and much more.

## Supported Document Formats
Aspose.Words for Python supports [a wide range of formats for loading and saving documents](https://docs.aspose.com/words/python-net/supported-document-formats/), some of them are listed below:
**Microsoft Word:** DOC, DOT, DOCX, DOTX, DOTM, FlatOpc, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled, RTF, WordML, DocPreWord60
**OpenDocument:** ODT, OTT
**Web:** HTML, MHTML
**Markdown:** MD
**Markup:** XamlFixed, HtmlFixed, XamlFlow, XamlFlowPack
**Fixed Layout:** PDF, XPS, OpenXps
**Image:** SVG, TIFF, PNG, BMP, JPEG, GIF
**Metafile:** EMF
**Printer:** PCL, PS
**Text:** TXT
**eBook:** MOBI, CHM, EPUB

## Platform Independence

Aspose.Words for Python can be used to develop applications for a vast range of operating systems, such as Windows, Linux and MacOS X, where Python 3.5 or later is installed. You can build both 32-bit and 64-bit Python applications.

## Get Started

Ready to give Aspose.Words for Python a try?

Simply run ```pip install aspose-words``` from the Console to fetch the package.
If you already have Aspose.Words for Python and want to upgrade the version, please run ```pip install --upgrade aspose-words``` to get the latest version.

You can run the following snippets in your environment to see how Aspose.Words works, or check out the [GitHub Repository](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET) or [Aspose.Words for Python Documentation](https://docs.aspose.com/words/python-net/) for other common use cases.

## Using Python to Create a DOCX File from Scratch

Aspose.Words for Python allows you to create a new blank document and add content to this document.

```python
import aspose.words as aw

# Create a blank document.
doc = aw.Document()

# Use a document builder to add content to the document.
builder = aw.DocumentBuilder(doc)
# Write a new paragraph in the document with the text "Hello World!".
builder.writeln("Hello, World!")

# Save the document in DOCX format. Save format is automatically determined from the file extension.
doc.save("output.docx")
```

## Using Python to Convert a Word Document to HTML

Aspose.Words for Python also allows you to convert Microsoft Word formats to PDF, XPS, Markdown, HTML, JPEG, TIFF, and other file formats. The following snippet demonstrates the conversion from DOCX to HTML:

```python
import aspose.words as aw

# Load the document from the disc.
doc = aw.Document("TestDocument.docx")

# Save the document to HTML format.
doc.save("output.html")
```

## Using Python to Import PDF and Save as a DOCX File

In addition, you can import a PDF document into your Python application and export it as a DOCX format file without the need to install Microsoft Word:

```python
import aspose.words as aw

# Load the PDF document from the disc.
doc = aw.Document("TestDocument.pdf")

# Save the document to DOCX format.
doc.save("output.docx")
```

[Product Page](https://products.aspose.com/words/python-net/) | [Docs](https://docs.aspose.com/words/python-net/) | [Demos](https://products.aspose.app/words/family) | [API Reference](https://reference.aspose.com/words/python-net/) | [Examples](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET/) | [Blog](https://blog.aspose.com/category/words/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/words) | [Temporary License](https://purchase.aspose.com/temporary-license)



            

Raw data

            {
    "_id": null,
    "home_page": "https://products.aspose.com/words/python-net/",
    "name": "aspose-words",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.6",
    "maintainer_email": null,
    "keywords": "doc, docx to pdf, convert, compare, create, edit, word, split, bmp, rtf, odt, open office, html, tiff, dot, wordml, mobi, chm, txt, md, markdown, xps, svg, ps, postscript, pcl, epub, png, emf, jpg, gif, mail merge, table, reporting, document",
    "author": "Aspose",
    "author_email": null,
    "download_url": null,
    "platform": "macos_x86_64",
    "description": "[Product Page](https://products.aspose.com/words/python-net/) | [Docs](https://docs.aspose.com/words/python-net/) | [Demos](https://products.aspose.app/words/family) | [API Reference](https://reference.aspose.com/words/python-net/) | [Examples](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET/) | [Blog](https://blog.aspose.com/category/words/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/words) | [Temporary License](https://purchase.aspose.com/temporary-license)\n\nTry our [free online Apps](https://products.aspose.app/words/family) demonstrating some of the most popular Aspose.Words functionality.\n\n[Aspose.Words for Python](https://products.aspose.com/words/python-net/) is a powerful on-premise class library that can be used for numerous document processing tasks. It enables developers to enhance their own applications with features such as generating, modifying, converting, rendering, and printing documents, without relying on third-party applications, for example, Microsoft Word, or automation.\n\n## Word API Features\n\nThe following are some popular features of Aspose.Words for Python:\n\n- Aspose.Words can be used to develop applications for a vast range of operating systems such as Windows, Linux or MacOS X.\n- Comprehensive [document import and export](https://docs.aspose.com/words/python-net/loading-saving-and-converting/) with [35+ supported file formats](https://docs.aspose.com/words/python-net/supported-document-formats/). This allows users to [convert documents](https://docs.aspose.com/words/python-net/convert-a-document/) from one popular format to another, for example, from DOCX into PDF or Markdown, or from PDF into various Word formats.\n- Programmatic access to the formatting properties of all document elements. For example, using Aspose.Words users can [split a document](https://docs.aspose.com/words/python-net/split-a-document/) into parts or [compare two documents](https://docs.aspose.com/words/python-net/compare-documents/).\n- [High fidelity rendering](https://docs.aspose.com/words/python-net/rendering/) of document pages. For example, if it is needed to render a document as in Microsoft Word, Aspose.Words will successfully cope with this task.\n- [Generate reports with Mail Merge](https://docs.aspose.com/words/python-net/mail-merge-and-reporting/), which allows filling in merge templates with data from various sources to create merged documents.\n- LINQ Reporting Engine to fetch data from databases, XML, JSON, OData, external documents, and much more.\n\n## Supported Document Formats\nAspose.Words for Python supports [a wide range of formats for loading and saving documents](https://docs.aspose.com/words/python-net/supported-document-formats/), some of them are listed below:\n**Microsoft Word:** DOC, DOT, DOCX, DOTX, DOTM, FlatOpc, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled, RTF, WordML, DocPreWord60\n**OpenDocument:** ODT, OTT\n**Web:** HTML, MHTML\n**Markdown:** MD\n**Markup:** XamlFixed, HtmlFixed, XamlFlow, XamlFlowPack\n**Fixed Layout:** PDF, XPS, OpenXps\n**Image:** SVG, TIFF, PNG, BMP, JPEG, GIF\n**Metafile:** EMF\n**Printer:** PCL, PS\n**Text:** TXT\n**eBook:** MOBI, CHM, EPUB\n\n## Platform Independence\n\nAspose.Words for Python can be used to develop applications for a vast range of operating systems, such as Windows, Linux and MacOS X, where Python 3.5 or later is installed. You can build both 32-bit and 64-bit Python applications.\n\n## Get Started\n\nReady to give Aspose.Words for Python a try?\n\nSimply run ```pip install aspose-words``` from the Console to fetch the package.\nIf you already have Aspose.Words for Python and want to upgrade the version, please run ```pip install --upgrade aspose-words``` to get the latest version.\n\nYou can run the following snippets in your environment to see how Aspose.Words works, or check out the [GitHub Repository](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET) or [Aspose.Words for Python Documentation](https://docs.aspose.com/words/python-net/) for other common use cases.\n\n## Using Python to Create a DOCX File from Scratch\n\nAspose.Words for Python allows you to create a new blank document and add content to this document.\n\n```python\nimport aspose.words as aw\n\n# Create a blank document.\ndoc = aw.Document()\n\n# Use a document builder to add content to the document.\nbuilder = aw.DocumentBuilder(doc)\n# Write a new paragraph in the document with the text \"Hello World!\".\nbuilder.writeln(\"Hello, World!\")\n\n# Save the document in DOCX format. Save format is automatically determined from the file extension.\ndoc.save(\"output.docx\")\n```\n\n## Using Python to Convert a Word Document to HTML\n\nAspose.Words for Python also allows you to convert Microsoft Word formats to PDF, XPS, Markdown, HTML, JPEG, TIFF, and other file formats. The following snippet demonstrates the conversion from DOCX to HTML:\n\n```python\nimport aspose.words as aw\n\n# Load the document from the disc.\ndoc = aw.Document(\"TestDocument.docx\")\n\n# Save the document to HTML format.\ndoc.save(\"output.html\")\n```\n\n## Using Python to Import PDF and Save as a DOCX File\n\nIn addition, you can import a PDF document into your Python application and export it as a DOCX format file without the need to install Microsoft Word:\n\n```python\nimport aspose.words as aw\n\n# Load the PDF document from the disc.\ndoc = aw.Document(\"TestDocument.pdf\")\n\n# Save the document to DOCX format.\ndoc.save(\"output.docx\")\n```\n\n[Product Page](https://products.aspose.com/words/python-net/) | [Docs](https://docs.aspose.com/words/python-net/) | [Demos](https://products.aspose.app/words/family) | [API Reference](https://reference.aspose.com/words/python-net/) | [Examples](https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET/) | [Blog](https://blog.aspose.com/category/words/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/words) | [Temporary License](https://purchase.aspose.com/temporary-license)\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Aspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.",
    "version": "24.11.0",
    "project_urls": {
        "API Reference": "https://reference.aspose.com/words/python-net/",
        "Blog": "https://blog.aspose.com/category/words/",
        "Demos": "https://products.aspose.app/words/family",
        "Docs": "https://docs.aspose.com/words/python-net/",
        "Examples": "https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET/",
        "Free Support": "https://forum.aspose.com/c/words",
        "Homepage": "https://products.aspose.com/words/python-net/",
        "Release Notes": "https://releases.aspose.com/words/python/release-notes/2024/aspose-words-for-python-via-dotnet-24-11-release-notes/",
        "Temporary License": "https://purchase.aspose.com/temporary-license"
    },
    "split_keywords": [
        "doc",
        " docx to pdf",
        " convert",
        " compare",
        " create",
        " edit",
        " word",
        " split",
        " bmp",
        " rtf",
        " odt",
        " open office",
        " html",
        " tiff",
        " dot",
        " wordml",
        " mobi",
        " chm",
        " txt",
        " md",
        " markdown",
        " xps",
        " svg",
        " ps",
        " postscript",
        " pcl",
        " epub",
        " png",
        " emf",
        " jpg",
        " gif",
        " mail merge",
        " table",
        " reporting",
        " document"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a66d85803eaa4ace784d69648f4c3a050c4c05aa66ef865b1c1a7284e89c7959",
                "md5": "2601eedfd7898e265bb3424b2b0cbe90",
                "sha256": "7e6593d16ec9a6001a20f6f944602f9ff7c5e05eebc07573d68476b56d4d1217"
            },
            "downloads": -1,
            "filename": "aspose_words-24.11.0-py3-none-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "2601eedfd7898e265bb3424b2b0cbe90",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.6",
            "size": 80854040,
            "upload_time": "2024-11-13T10:02:16",
            "upload_time_iso_8601": "2024-11-13T10:02:16.926022Z",
            "url": "https://files.pythonhosted.org/packages/a6/6d/85803eaa4ace784d69648f4c3a050c4c05aa66ef865b1c1a7284e89c7959/aspose_words-24.11.0-py3-none-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "115f0b930f2d8a5b2c2a7f163454c181caed61fa73c76fcd337e23aec922f43f",
                "md5": "b4265a4923360be984de7398f2503630",
                "sha256": "544016f3685440fe624ca40f6b2c3dd9b2b31b4685a9df0f633bef7c285d71e7"
            },
            "downloads": -1,
            "filename": "aspose_words-24.11.0-py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "b4265a4923360be984de7398f2503630",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.6",
            "size": 64493256,
            "upload_time": "2024-11-13T10:02:23",
            "upload_time_iso_8601": "2024-11-13T10:02:23.710494Z",
            "url": "https://files.pythonhosted.org/packages/11/5f/0b930f2d8a5b2c2a7f163454c181caed61fa73c76fcd337e23aec922f43f/aspose_words-24.11.0-py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf7b41fe203cd101b694fbecb4fc2be4dd5e4cc31e3889433d30288ed9faebf6",
                "md5": "5d3f8f8e181b254d2d7b4066ae710c4c",
                "sha256": "109a16f7494394da6e0b9e688830162b7844786aa97d46ffdca66c048ded7e9b"
            },
            "downloads": -1,
            "filename": "aspose_words-24.11.0-py3-none-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5d3f8f8e181b254d2d7b4066ae710c4c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.6",
            "size": 84191334,
            "upload_time": "2024-11-13T10:02:29",
            "upload_time_iso_8601": "2024-11-13T10:02:29.724202Z",
            "url": "https://files.pythonhosted.org/packages/cf/7b/41fe203cd101b694fbecb4fc2be4dd5e4cc31e3889433d30288ed9faebf6/aspose_words-24.11.0-py3-none-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8daa3e0645f0ae5532406759b471b934037f57d40717737c094a9d8cbaf7b39f",
                "md5": "9e39f6ec24acfe615625cadae0452da1",
                "sha256": "f7920b8b2b3c346af8f5fa299a875ce2958a0e8c7174fa48bc722822ff963788"
            },
            "downloads": -1,
            "filename": "aspose_words-24.11.0-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "9e39f6ec24acfe615625cadae0452da1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.6",
            "size": 56562953,
            "upload_time": "2024-11-13T10:02:36",
            "upload_time_iso_8601": "2024-11-13T10:02:36.223453Z",
            "url": "https://files.pythonhosted.org/packages/8d/aa/3e0645f0ae5532406759b471b934037f57d40717737c094a9d8cbaf7b39f/aspose_words-24.11.0-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "918240d86c84c8a01665d1e8b93ade9933813b94ae89f8b7bfd8e6e60256aa03",
                "md5": "6acfca6ce3d97204dda38d695743e55f",
                "sha256": "40f8b9053687a4f0fc4d5a2ca2735818c38863ff444072d7e9f7272c11acad43"
            },
            "downloads": -1,
            "filename": "aspose_words-24.11.0-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "6acfca6ce3d97204dda38d695743e55f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.6",
            "size": 64288546,
            "upload_time": "2024-11-13T10:02:46",
            "upload_time_iso_8601": "2024-11-13T10:02:46.122102Z",
            "url": "https://files.pythonhosted.org/packages/91/82/40d86c84c8a01665d1e8b93ade9933813b94ae89f8b7bfd8e6e60256aa03/aspose_words-24.11.0-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 10:02:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aspose-words",
    "github_project": "Aspose.Words-for-Python-via-.NET",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aspose-words"
}
        
Elapsed time: 0.37403s