Export a Worksheet Page – Aspose.Cells Cloud API Reference
GET /cells/{name}/worksheets/{sheetName} API lets you convert a specified page of a worksheet to various file formats. Supported formats: XLS, XLSX, XLSB, CSV, TSV, XLSM, ODS, TXT, PDF, OTS, XPS, DIF, PNG, JPEG, GIF, BMP, WMF, TIFF, EMF, NUMBERS, FODS.
REST API
The OpenAPI Specification defines a publicly accessible programming interface and enables 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 make a call to the Cloud API with cURL.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
format |
string | Output file format (e.g., pdf, png, csv). |
pdf |
verticalResolution |
integer | Vertical DPI of the rendered image. | 100 |
horizontalResolution |
integer | Horizontal DPI of the rendered image. | 100 |
pageIndex |
integer | Zero‑based index of the worksheet page to export (0 = first page). |
0 |
folder |
string | Cloud storage folder where the source workbook resides. | — |
Possible errors
- 401 Unauthorized – Invalid or missing JWT token.
- 404 Not Found – Specified workbook or worksheet does not exist.
- 400 Bad Request – Invalid parameter value (e.g., unsupported
format). - 500 Internal Server Error – Unexpected server‑side problem.
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can 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 call Aspose.Cells web services using various SDKs: