Skip to main content

Aspose.Words for Cloud API Reference

Project description

Python Cloud SDK wraps Aspose.Words Cloud API so you could seamlessly integrate Microsoft Word® file generation, manipulation, conversion & inspection features into your own python applications.

Aspose.Words Cloud SDK for Python allows to work with Word document headers, footers, page numbering, tables, sections, document comments, drawing objects, FormFields, fonts, hyperlinks, ranges, paragraphs, math objects, watermarks, revisions and document protection. It also assists in appending documents, splitting documents as well as converting document to other supported file formats. Please feel free to explore the Developer's Guide for all possible usage scenarios.

Document Processing Features

  • Programmatically create new documents of various file formats.
  • Availability of Mail Merge and report generation features.
  • Split or merge documents on demand.
  • Manage watermarks and protection.
  • Full read & write access to Document Object Model.
  • Fetch web pages via URL and save in Microsoft Word file formats.
  • Get document information in JSON or XML representation.
  • Fetch statistical data of a document.
  • Remove all macros contained in a specific document.
  • Convert a document to desired file format along with detailed settings.
  • Convert an encrypted PDF document into Word document format.

Enhancements in Version 20.3.1

  • Added RtfSaveOptionsData.SaveImagesAsWmf property
  • WordsApi class now has credentials parameters
  • All methods which are used files, now operate with bytes array

Enhancements in Version 20.1.0

  • Moved property ColorMode from SaveOptionsData to FixedPageSaveOptionsData.
  • Replaced MemoryStream and byte[] with SixLabors.ImageSharp.IImage in image processing.
  • Included support of ICC profiles and implement ICCBased color space.

For the detailed notes, please visit Aspose.Words Cloud 20.1 Release Notes.

Read & Write Document Formats

Microsoft Word: DOC, DOCX, RTF, DOT, DOTX, DOTM, FlatOPC (XML) OpenOffice: ODT, OTT WordprocessingML: XML Web: HTML, MHTML, HtmlFixed Text: TXT Fixed Layout: PDF

Save Document As

Fixed Layout: PDF/A, XPS, OpenXPS, PS Images: JPEG, PNG, BMP, SVG, TIFF, EMF Others: PCL

Platform Independence

Aspose.Words Cloud’s platform independent document manipulation API is a true REST API that can be used from any platform. You can use it with any language or platform that supports REST, be it the web, desktop, mobile, or the cloud. The API integrates with other cloud services to provide you the flexibility you require for processing documents. It is suitable for the most types of businesses, documents, or content.

Getting Started with Aspose.Words Cloud SDK for Python

Firstly, create an account at Aspose for Cloud to get your application information and free quota to use the API. Now execute pip install aspose-words-cloud from the command line to fetch the SDK. Then import the package via import asposewordscloud.

Install via Setuptools

Execute python setup.py install --user and import the package as import asposewordscloud.

The complete source code is available at GitHub Repository.

Delete Watermarks from Word Document via Python

import asposewordscloud
import asposewordscloud.models.requests

words_api = asposewordscloud.WordsApi('appSid', 'appKey', 'https://api.aspose.cloud')
filename = 'test_doc.docx'
remote_name = 'TestDeleteDocumentWatermark.docx'
remote_folder = 'FolderWhereFileLocates'

with open(os.path.join(self.local_common_folder, filename), 'rb') as f:
    file = f.read()

upload_request = asposewordscloud.models.requests.UploadFileRequest(file, os.path.join(remote_folder, remote_name))
request = asposewordscloud.models.requests.DeleteDocumentWatermarkRequest(remote_name, remote_folder)
result = words_api.delete_document_watermark(request)
self.assertTrue(result.code == 200, 'Error has occurred while delete document watermark')

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial

Project details


Release history Release notifications | RSS feed

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-cloud-20.3.1.tar.gz (273.9 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_cloud-20.3.1-py2-none-any.whl (806.8 kB view details)

Uploaded Python 2

File details

Details for the file aspose-words-cloud-20.3.1.tar.gz.

File metadata

  • Download URL: aspose-words-cloud-20.3.1.tar.gz
  • Upload date:
  • Size: 273.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for aspose-words-cloud-20.3.1.tar.gz
Algorithm Hash digest
SHA256 aab92aa4a1d289ccaf4559c64224a30f07249acf84232812651407395a35b12c
MD5 d3dfb1624a3cf469133d2faf0f502537
BLAKE2b-256 5bf070134c5c85afb114b317a7496ca78f542a82d0c60322d679c25a2145b6d9

See more details on using hashes here.

File details

Details for the file aspose_words_cloud-20.3.1-py2-none-any.whl.

File metadata

  • Download URL: aspose_words_cloud-20.3.1-py2-none-any.whl
  • Upload date:
  • Size: 806.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for aspose_words_cloud-20.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 cd5eb71025fc3bd448eb22547c27662a18ef99a94d1617eb371c744804aad875
MD5 3267ece6aecfaed6477adbe53bf41f59
BLAKE2b-256 6c043aabf66b09914ed645df7d5709f53bd8622dbd0df7bf59655ca23dc3b5e6

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