Export Workbook

You can export workbooks to any of the following formats: XLS, XLSX, XLSB, CSV, TSV, XLSM, ODS, TXT, PDF, OTS, XPS, DIF, PNG, JPEG, BMP, SVG, TIFF, EMF, NUMBERS, FODS.

REST API

POST https://api.aspose.cloud/v3.0/cells/export

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 required Description
file file formData True File to upload
objectType string query True The type of object to export. For chart export use chart. Other possible values are worksheet, picture, etc.
format string query True Desired output format. Supported values: png, jpeg, gif, bmp, svg, tiff, emf, wmf, pdf.

Response

{
  "Files": [
    {
      "Filename": "Book1_xlsx.tif",
      "FileSize": 274022,
      "FileContent": "-----Base64String--------"
    },
    {
      "Filename": "myDocument_xlsx.tif",
      "FileSize": 348126,
      "FileContent": "-----Base64String--------"
    }
  ]
}

HTTP Status Codes

Code Meaning Description
200 OK Shapes exported successfully; response contains the file list.
400 Bad Request Missing or invalid parameters.
401 Unauthorized Invalid or missing access token.
413 Payload Too Large Uploaded file exceeds size limit.
500 Internal Server Error Unexpected server error.

How to Use the PostExport API with SDKs

PostExport API Specification

The OpenAPI Specification defines a publicly accessible programming interface that allows you to perform 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 call the Cloud API using cURL.

curl -X POST "https://api.aspose.cloud/v3.0/cells/export?objectType=workbook&format=tiff" \
     -H "accept: multipart/form-data" \
     -H "Content-Type: multipart/form-data" \
     -H "x-aspose-client: Containerize.Swagger" \
     -d '{"File":{}}'

Use Aspose.Cells Cloud SDKs

Using an SDK speeds up development by handling low‑level details so you can focus on business logic. A complete list of Aspose.Cells Cloud SDKs is available in the GitHub repository.

The following code examples demonstrate how to call the Aspose.Cells web service with various SDKs: