Convert an Excel File to Different Formats
This REST API converts an Excel file to a different format. It supports a wide range of output formats and allows you to set page‑setup and save options before conversion.
REST API
POST https://api.aspose.cloud/v3.0/cells/convert
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Body Parameter
| Parameter Name | Type | Description |
|---|---|---|
ConvertWorkbookOptionsConvertWorkbookOptions |
object | Options for converting the workbook. |
Response
The API returns a FileInfo object that contains the generated Spreadsheet file.
| Field | Type | Description |
|---|---|---|
| Filename | string | Name of the Spreadsheet file (e.g., example.xlsx). |
| FileSize | int | Size of the file in bytes. |
| FileContent | string | Base64‑encoded content of the Spreadsheet file. |
Response Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Compression succeeded; response contains compressed file details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
How to Use the PostConvertWorkBook API with SDKs
PostConvertWorkBook API Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The example below shows how to call the Cloud API with cURL.
Use Aspose.Cells Cloud SDKs
Using an SDK is the fastest way to develop. An SDK abstracts low‑level details so you can focus on your project. Check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: