Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Aspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Try our free online Apps demonstrating some of the most popular Aspose.Words functionality.
Aspose.Words for Python 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.
The following are some popular features of Aspose.Words for Python:
Aspose.Words for Python supports a wide range of formats for loading and saving documents, 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
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.
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 or Aspose.Words for Python Documentation for other common use cases.
Aspose.Words for Python allows you to create a new blank document and add content to this document.
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")
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:
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")
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:
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 | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
FAQs
Aspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.
We found that aspose-words demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.