Split an Excel file into multiple files - Aspose.Cells Cloud Documentation

The Aspose.Cells Cloud REST API splits multi‑sheet Excel workbooks into separate files.

REST API

POST http://api.aspose.cloud/v3.0/cells/split

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request parameters

Parameter Name Type Location Description
file file formData The Excel workbook to upload.
format string query Desired output format (e.g., pdf, csv, json).
password string query Password for an encrypted workbook (optional).
from integer query Index of the first sheet to include (1‑based).
to integer query Index of the last sheet to include (inclusive).

Response

{
    "Status" : "OK",
    "Code" : 200,
    "Files": [
        {
            "Filename" : "[file1 name]",
            "Filesize" : [file size],
            "FileContent" : "[Base64String]"
        },        {
            "Filename" : "[file2 name]",
            "Filesize" : [file size],
            "FileContent" : "[Base64String]"
        },        {
            "Filename" : "[file3 name]",
            "Filesize" : [file size],
            "FileContent" : "[Base64String]"
        }
    ]
}

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 PostSplit API with SDKs

PostSplit API Specification

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

HTTP status codes

Code Meaning Description
200 OK The workbook was split successfully and the response contains the file list.
400 Bad Request Missing or invalid parameters (e.g., unsupported format).
401 Unauthorized Invalid or missing JWT token.
500 Internal Server Error An unexpected error occurred on the server side.

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 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: