Excel to Docx
This REST API converts a spreadsheet file to a DOCX format file.
REST API
POST https://api.aspose.cloud/v3.0/cells/convert/docx
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Query Parameters
| Parameter Name | Type | Description |
|---|---|---|
| password | string | The password required to open the Excel file. |
| storageName | string | The name of the storage where the file is located. |
| checkExcelRestriction | bool | Indicates whether to check restrictions of the Excel file when the user modifies cell‑related objects. |
Request Body Parameter
| Parameter Name | Type | Description |
|---|---|---|
| datafile | data file | The data file saved in the first part of the multipart request body. |
Response
The API returns a FileInfo object that contains the generated Word file.
| Field | Type | Description |
|---|---|---|
| Filename | string | Name of the Word file (e.g., example.docx). |
| FileSize | int | Size of the file in bytes. |
| FileContent | string | Base64‑encoded content of the Word file. |
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation 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 PostConvertWorkbookToDocx API with SDKs
PostConvertWorkbookToDocx API Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.
Use Aspose.Cells Cloud SDKs
Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can 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 call Aspose.Cells web services using various SDKs:
Other APIs Implementing This Function
-
POST /cells/{name}/saveAs – Saves an Excel file as a DOCX file with additional settings and stores the result in the specified storage.
-
PUT /cells/convert – Converts an Excel file to a DOCX file with optional settings and returns the result in the response.
-
GET /cells/{name} – Retrieves an Excel workbook and converts it to a DOCX file with optional parameters.