Compress the size of the Spreadsheet

Compress the size of the spreadsheet.

Compress Spreadsheet API

PUT http://api.aspose.cloud/v4.0/cells/spreadsheet/compress

Request Parameters:

Parameter Name Type Path/Query String/HTTP Body Description
Spreadsheet File FormData Upload the spreadsheet file to be compressed.
level Integer Query Specifies the compression level to be applied, ranging from 0 (no compression) to 9 (maximum compression).
outPath String Query (Optional) The folder path where the compressed workbook will be stored. Default is null.
outStorageName String Query Output file storage name.
region String Query The spreadsheet region setting.
password String Query The password required to open the spreadsheet file.

Response

[
    {
        "Name": "ResponseFile",
        "DataType": {
            "Identifier": "File",
            "Reference": "Stream"
        }
    }
]

Error Codes

  • 400 Bad Request: Invalid Apose.Cells Cloud API URI.
  • 401 Unauthorized: Invalid access token. Or invalid client id and secret.
  • 404 Not Found: The spreadsheet file not accessible.
  • 500 Server Error: The spreadsheet has encountered an anomaly in obtaining calculation data.

Where should we use the Compress Spreadsheet API?

When you need to reducing the size of spreadsheets, you can use this API.

Why should you use the Compress Spreadsheet API?

  • The spreadsheet is too large and needs to reduce the file size.
  • Development can be quickly completed through the existing SDK.

How to Use the Compress Spreadsheet API with SDKs

Compress Spreadsheet API Specification

The Compress Spreadsheet API Specification provides a publicly accessible interface for REST interactions, allowing direct API calls from a web browser.

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 compress the spreadsheet size 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 interact with Aspose.Cells web services using various SDKs: