aspose-words


Nameaspose-words JSON
Version 24.4.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-04-03 13:09:05
maintainerNone
docs_urlNone
authorAspose
requires_python<3.12,>=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.12,>=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.4.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-4-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": "83cf432dcdd8fa77d38b18f7074eee9927fb39acc99a998d1470827cfd78b26e",
                "md5": "4c23ee258c35795230ba1fe681fc9e3f",
                "sha256": "ba0b0bca7f28853d48939620575621c52f00aa500ad032856b6bde5369f0c37e"
            },
            "downloads": -1,
            "filename": "aspose_words-24.4.0-py3-none-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4c23ee258c35795230ba1fe681fc9e3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.6",
            "size": 77383193,
            "upload_time": "2024-04-03T13:09:05",
            "upload_time_iso_8601": "2024-04-03T13:09:05.296217Z",
            "url": "https://files.pythonhosted.org/packages/83/cf/432dcdd8fa77d38b18f7074eee9927fb39acc99a998d1470827cfd78b26e/aspose_words-24.4.0-py3-none-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28f9c6a9f24e2132b0b76d0274b158a97153c30968dfb8404baa591157555b83",
                "md5": "427e246d4c1544a85253dd0bb602d529",
                "sha256": "9ccd00f7fb521a85c4785fb5e53d15b2f4a6bbcfa8667d10ff8509d3d27909cf"
            },
            "downloads": -1,
            "filename": "aspose_words-24.4.0-py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "427e246d4c1544a85253dd0bb602d529",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.6",
            "size": 61808416,
            "upload_time": "2024-04-03T13:09:11",
            "upload_time_iso_8601": "2024-04-03T13:09:11.620799Z",
            "url": "https://files.pythonhosted.org/packages/28/f9/c6a9f24e2132b0b76d0274b158a97153c30968dfb8404baa591157555b83/aspose_words-24.4.0-py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "624ad43671eaeb5fbefb62e64d5e4737ea482e96815201bd44de526e3700de0a",
                "md5": "cc9f84d12d88444e00e77568b7bbe5e8",
                "sha256": "64ac930d1e439229b07bad731ddd81210520cdbf6e5d438723f1630d71f7da91"
            },
            "downloads": -1,
            "filename": "aspose_words-24.4.0-py3-none-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "cc9f84d12d88444e00e77568b7bbe5e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.6",
            "size": 79677364,
            "upload_time": "2024-04-03T13:09:18",
            "upload_time_iso_8601": "2024-04-03T13:09:18.586113Z",
            "url": "https://files.pythonhosted.org/packages/62/4a/d43671eaeb5fbefb62e64d5e4737ea482e96815201bd44de526e3700de0a/aspose_words-24.4.0-py3-none-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7dca8846da0f16c380771bd352c0ec8912b04ccbb46a2402639951a04b1af85f",
                "md5": "0ba6fd4f168be028ffa16960cfba7b4d",
                "sha256": "25e07e69c90181c5baca3cf1cf7b638e878b95c6130c840c173d31bf1cf3e841"
            },
            "downloads": -1,
            "filename": "aspose_words-24.4.0-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "0ba6fd4f168be028ffa16960cfba7b4d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.6",
            "size": 55870296,
            "upload_time": "2024-04-03T13:09:24",
            "upload_time_iso_8601": "2024-04-03T13:09:24.500013Z",
            "url": "https://files.pythonhosted.org/packages/7d/ca/8846da0f16c380771bd352c0ec8912b04ccbb46a2402639951a04b1af85f/aspose_words-24.4.0-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d49712917b6699945afc00f72f8da99d3a009d6448d1b7e0319ecd14f736610",
                "md5": "df9b344f3fe2528f57e1f356b6e2a17a",
                "sha256": "ffd44a4b3e33ac5398abacd01fd94544dc6384fc0ec7acfe6acbd4db553a0229"
            },
            "downloads": -1,
            "filename": "aspose_words-24.4.0-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "df9b344f3fe2528f57e1f356b6e2a17a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.6",
            "size": 62865256,
            "upload_time": "2024-04-03T13:09:30",
            "upload_time_iso_8601": "2024-04-03T13:09:30.347067Z",
            "url": "https://files.pythonhosted.org/packages/5d/49/712917b6699945afc00f72f8da99d3a009d6448d1b7e0319ecd14f736610/aspose_words-24.4.0-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-03 13:09:05",
    "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.23584s