Compress and Repair Excel Files – Aspose.Cells Cloud API
Contents
[
Hide
]
Compressing an Excel workbook reduces its file size by removing unused styles, images, and shared strings, while repairing restores the integrity of corrupted workbooks. Aspose.Cells Cloud API provides dedicated endpoints for both operations.
Compress Workbook API
The Compress operation uses a simple POST request. Below is a concise specification:
| Method | Endpoint | Required Parameters | Request Body | Sample Response | Typical Status Codes |
|---|---|---|---|---|---|
| POST | /cells/compress |
file (binary) – the workbook to compress; optional outPath (string) – destination path |
None (file is sent as multipart/form‑data) | { "compressedSize": 12456, "originalSize": 45678 } |
200 OK, 400 Bad Request, 401 Unauthorized |
Repair Workbook API
The Repair operation also uses a POST request. Its specification is:
| Method | Endpoint | Required Parameters | Request Body | Sample Response | Typical Status Codes |
|---|---|---|---|---|---|
| POST | /cells/repair |
file (binary) – the corrupted workbook; optional outPath (string) – where to save the repaired file |
None (file is sent as multipart/form‑data) | { "isRepaired": true, "message": "Workbook repaired successfully." } |
200 OK, 400 Bad Request, 415 Unsupported Media Type |
These tables provide developers with the essential details needed to call the APIs directly without navigating elsewhere.
Additional Resources
- See the full Compress Excel Files guide for advanced options such as removing unused rows and columns.
- Review the Repair Excel Files documentation for troubleshooting tips and error‑code explanations.
- Explore related operations like Get File Info and Spreadsheet Operations for a broader understanding of the Aspose.Cells Cloud API.