Python Cloud SDK to Manipulate Word Documents

Create, Edit or Convert Word documents (20+ file formats) using Python SDK on any platform, capable of calling REST APIs.

  Start Free Trial
Aspose.Words Cloud SDK for Python

Aspose.Words Cloud SDK for Python


Get Started with Word Document Processing

No Software download required. It is easy to get started with Aspose.Words Cloud SDK for Python and you do not need to download or install any software. Simply create an account at Aspose for Cloud and get your application information. Once you have the App SID & key, you are ready to give the Aspose.Words Cloud SDK for Python on any supported platform.

A Comprehensive Word document processing SDK

Aspose.Words Cloud SDK for Python enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Word documents in the cloud. This SDK allows you to work with Aspose.Words Cloud REST APIs in your Python applications quickly and easily, with zero initial cost. It offers an extensive support for various popular Word Document formats including DOC, DOCX, RTF, DOT, DOTX, DOTM, FlatOPC (XML), OOXML, OpenDocument 1.1 format, OTT and Word 2003 XML. Specifically the RTF specification is a set of pre-defined keywords which includes over 1400 keywords in the RTF 1.8 Specification and Aspose.Words Cloud SDK for Python is capable of fully supporting (reading) the majority of these keywords.


Advanced Word Processing Features



Split all or specific pages of a Word document


Manipulate document properties including Metadata


Execute mail merge template


Merge multiple Word documents


Convert Word documents to different formats


Execute simple to complex mail merge


Insert a page number field into Word documents


Insert or edit watermark in Word documents


Find or replace text in Word documents


Password protect Word documents or update document protection


Convert PDF document to MS Word format


Document & Text Classification

Quick & Reliable Conversion Between Popular Document Formats

Get a quick and reliable conversion of Word documents to other leading file formats including PDF where output conforms to PDF 1.5 or PDF/A-1b specifications. Get an ability to extract Word document contents or save file contents as plain Text file. Be amazed with great fidelity of output when performing Word to EPUB conversion because the Content, formatting, images, hyperlinks and navigation will work in any EPUB compliant reader.

Aspose.Words Cloud SDK for Python is also capable of converting individual document page to raster images or vector images, with a highest degree of precision. Last but not the least, get same high-fidelity page layout of rendering engine to produce output in fixed-layout format when dealing with Word to XPS conversion. Such a high degree of precision while ensuring accuracy and highest quality of rendering with an efficient conversion, and all being performed with simple methods.

Please note that Aspose.Words Cloud SDK for Python ensures that the converted documents are produced according to the target file's standards and specifications so that the resultant file can easily be loaded within the native tools.

Mail merge and reports generation

Aspose.Words Cloud SDK for Python allows developers to use standard or more complex mail merge operations such as inserting images or repeatable regions in reports. You can design reports in Microsoft Word and then allow Aspose.Words Cloud SDK for Python to populate documents with data from XML data sources.

Protecting the Word documents

Aspose.Words Cloud SDK for Python allows developers to secure and protect the Word documents. A simple code snippet enables you to protect a Word document on the Aspose Cloud Storage. The SDK is built on top of REST API which is completely independent of your operating system, database system or development language. However we have provided this SDK, in order to make it even easier to integrate in Perl language. So you can use it to encrypt and protect your input documents.

Reading Table information from a Word document - Python

#Instantiate Aspose Storage SDK
storage_apiClient = asposestoragecloud.ApiClient.ApiClient(apiKey, appSid, True)
storageApi = StorageApi(storage_apiClient)
#Instantiate Aspose Words SDK
api_client = asposewordscloud.ApiClient.ApiClient(apiKey, appSid, True)
wordsApi = WordsApi(api_client)

#upload file to aspose cloud storage
storageApi.PutCreate(Path="SampleBlankWordDocument.docx", file="../../data/"+ "SampleBlankWordDocument.docx")

#invoke Aspose.Words SDK to protect a word document
    response = wordsApi.PutProtectDocument(name="SampleBlankWordDocument.docx", body=body, filename="SampleBlankWordDocument_Protected.docx")

    if response.Status == "OK":
        print "Document has been protected successfully"
        #download updated document from storage server
        response = storageApi.GetDownload(Path="SampleBlankWordDocument_Protected.docx")
        outfilename = "c:/temp/" + "SampleBlankWordDocument_Protected.docx"
        with open(outfilename, 'wb') as f:
                    for chunk in response.InputStream:

Manipulate Tables in Word document

Aspose.Words Cloud SDK for Python enables the developers to read table information from a Word Document, or even Delete the table from Word document.

Working with watermark images

Aspose.Words Cloud SDK for Python supports manipulating individual document elements including text, images, annotations, bookmarks, tables, hyperlinks, shapes and so on. All the operations on these elements can be performed with the help of simple REST based interface in the cloud. Aspose.Words Cloud SDK for Python provides the feature to add as well as remove any existing watermark from Word document. It also provides the feature to add Watermark Text inside the Word document. In order to add watermark image, you need to upload the image to Cloud storage and then reference the same image during watermarking process. The feature to delete watermark is also as simple as addition and all you need to do is call a simple method to remove the watermarks from document.


Support and Learning Resources