Split Excel File in Cloud to Separate Files & Export to 30+ Formats
Divide a large Excel workbook stored in the cloud into separate files by worksheet and export each in 30+ output formats such as PDF, CSV, JSON, ODS, and XPS using Aspose.Cells Cloud.
Split Remote Spreadsheet API
Web API
PUT https://api.aspose.cloud/v4.0/cells/{name}/split/spreadsheet
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters:
| Parameter Name | Type | Path/Query String/HTTP Body | Description |
|---|---|---|---|
| name | String | Path | The name of the workbook file (e.g., data.xlsx) to be split, located in the specified cloud storage folder. |
| folder | String | Query | The cloud storage folder path where the source workbook is stored. |
| from | Integer | Query | The starting worksheet index (0‑based) for the split operation. For example, 0 indicates the first worksheet. |
| to | Integer | Query | The ending worksheet index (0‑based) for the split operation. For example, 2 splits worksheets 0, 1, and 2. |
| outFormat | String | Query | The output file format for the split files. Supported formats include XLSX, PDF, CSV, JSON, HTML, and 30+ others. |
| storageName | String | Query | (Optional) The name of the cloud storage where the source workbook resides. If omitted, the default cloud storage is used. |
| outPath | String | Query | (Optional) The target cloud folder path where the split files will be saved. If omitted, files are saved in the source folder. |
| outStorageName | String | Query | The name of the cloud storage where the output split files will be stored. |
| fontsLocation | String | Query | (Optional) Specifies a custom cloud folder path containing font files for proper text rendering in PDF/image outputs. |
| region | String | Query | (Optional) Sets the locale for formatting numbers, dates, and currency in the output files (e.g., "en-US", "zh-CN", "de-DE"). |
| password | String | Query | (Optional) If the source workbook is password‑protected, provide the password to open the file. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream",
"Name": "file"
}
}
]
The file can be downloaded directly from or saved to the location specified by outPath.
Success response details
| Status Code | Content‑Type | Description |
|---|---|---|
| 200 OK | application/octet-stream |
Binary stream of the merged workbook 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. |
Where should we use the Split Remote Spreadsheet API?
- Department Data Distribution: Split a unified workbook containing data from multiple departments into department‑specific files.
- Regional Report Distribution: Split national sales statements into separate regional reporting files by region.
- Customer Data Masking Distribution: Split a workbook containing sensitive information into a dedicated customer‑view file.
- Periodic Report Splitting: Automatically split summary reports into weekly or daily reports on a monthly basis.
- Multi‑Format Distribution: Split a single Excel file into multiple format versions such as PDF, CSV, JSON, etc., at the same time.
- Templated Splitting: Split data files into standardized output files based on predefined templates.
- Data Source Preprocessing: Split the Excel file into a standardized CSV file before loading the data into the database.
- API Data Preparation: Split large datasets into smaller chunks suitable for API transfer.
- Microservices Data Distribution: Split the central data file into separate data files required by each microservice.
Why should you use the Split Remote Spreadsheet API?
- Developer‑Friendly: Aspose.Cells Cloud offers SDK libraries in multiple languages, enabling quick development and comes with comprehensive documentation. Compared to building custom chart‑rendering solutions, this significantly reduces the development workload.
- Reduced Labor Costs: Decreases the need for positions dedicated to document consolidation.
- Pay‑per‑use: No upfront investment; you only pay for API calls actually used.
- Zero Maintenance Costs: No need to maintain servers, update software, or deal with compatibility issues.
- Preserves complex Excel formatting in universally accessible PDF format.
How to Use the Split Remote Spreadsheet API with SDKs
Split Remote Spreadsheet API Specification
The Split Remote Spreadsheet API Specification defines a publicly accessible programming interface and enables 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 the SDK is the fastest way to develop, as it abstracts away the low‑level details, allowing you to split the spreadsheet stored in the cloud into separate files with short code.
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: