Convert Documents

Document conversion Cloud API lets you convert Word document to another format. The API request contains a document to convert and the response contains the conversion result, or if outPath parameter specified - the API saves the result to the Cloud storage and return OK status code.

You can check the quality of Aspose.Words Cloud conversion and view the results online:

The list of supported formats is provided below:

format Parameter Value Format of the returned Presentation
bmp Bitmap image file
doc Word document
docm Word Open XML Macro-Enabled Document
docx Microsoft Word Open XML Document
dot Word Document Template
dotm Word Open XML Macro-Enabled Document Template
dotx Word Open XML Document Template
emf Enhanced Windows Metafile
epub Open eBook File
flatopc Flat OPC format
gif Gif Image
html Hypertext Markup Language File
jpeg JPEG Image
mhtml MIME HTML File
odt OpenDocument Text Document
ott OpenDocument Document Template
pcl Printer Command Language File
pdf Portable Document Format File
png Portable Network Graphic
rtf Rich Text Format File
svg Scalable Vector Graphics File
swf Shockwave Flash Movie(removed)
txt Plain Text File
tiff Tagged Image File Format
wml Wireless Markup Language File
xps XML Paper Specification File

The important parameters are described in the following table:

Parameter Name Type Query String Description
format string format=jpeg Return the document in the specified format. Valid values for this parameter are given above.
outPath string outPath=SomeFolder/result.jpeg A path for saving operation results to Cloud storage.

The format can also be specified by the request Accept header.

REST API

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL. Feel free to download and explore sample input TableDocument.doc and output TableDocument.pdf files designed to act as a demonstration and let you figure out the details quickly.

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks.

Please check out the GitHub repository for a complete list of Aspose.Words SDKs.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs:

See also