Convert an Excel File to Different Formats

This REST API indicates to convert excel file to different format file.

The request is an HTTP request with multipart content (see RFC 2046 or RFC 1341). The first part of the multipart content contains the data file and the second contains save options.

Query Parameter

Parameter Name Type Description
format string The file format: csv, xls, html, mhtml, ods, pdf, xml, txt, tiff, xlsb, xlsm, xlsx, xltm, xltx, xps, png, jpg, gif, emf, bmp, md, Numbers, wmf, svg, and so on.
password string The password needed to open an Excel file.
outPath string Path to save the result. If it’s a single file, the outPath should encompass both the filename and extension. In the case of multiple files, the outPath should only include the folder.
storageName string The storage name where the file is situated.
checkExcelRestriction bool Whether check restriction of excel file when user modify cells related objects.
streamFormat string The format of the input file stream.
region string The regional settings for workbook.
pageWideFitOnPerSheet bool The page wide fit on worksheet.
pageTallFitOnPerSheet bool The page tall fit on worksheet.
sheetName string Convert the specified worksheet.
pageIndex string Convert the specified page of worksheet, sheetName is required.
onePagePerSheet bool When converting to PDF format, one page per sheet.
AutoRowsFit bool Auto-fits all rows in this workbook.
AutoColumnsFit bool Auto-fits the columns width in this workbook.

Request Body Parameter

Parameter Name Type Description
datafile data file The data file save into the first part of the multipart content.
SaveOptions Object Save option save into the second part of the multipart content.

REST API

API Type Description Swagger Link
/cells/convert PUT Converts workbook from request content to some format PutConvertWorkBook

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.Cells web services easily. The following example shows how to make calls to Cloud API with cURL.

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.Cells Cloud SDKs.

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