Convert Excel to PNG using Aspose.Cells Cloud REST API

This REST API converts a spreadsheet file to PNG format.

The Post Convert Workbook to PNG Web API

POST https://api.aspose.cloud/v3.0/cells/convert/png

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request Parameters

Parameter Name Type Path/Query String/HTTPBody Description
File File FormData File to upload
password String Query The password needed to open an Excel file.
checkExcelRestriction Boolean Query Whether check restriction of excel file when user modify cells related objects.
region String Query The regional settings for workbook.
datafile data file Body The spreadsheet file included in the first part of the multipart request.

Response

[
  {
    "Name": "FileInfo",
    "DataType": {
      "Identifier": "Class",
      "Reference": "FileInfo"
    }
  }
]

Sample response headers

HTTP/1.1 200 OK
Content-Type: application/json

Error Responses

Code Meaning Description
200 OK The request completed successfully.
400 Bad Request The request is malformed or one or more parameters are invalid.
401 Unauthorized Authentication failed, or the JWT token is missing or expired.
404 Not Found The requested workbook, worksheet, or resource was not found.
413 Payload Too Large The uploaded file exceeds the allowed size limit.
500 Internal Server Error The server encountered an unexpected error while processing the request.

The API returns a FileInfo object that contains the generated PNG file.

Field Type Description
Filename string Name of the PNG file (e.g., example.png).
FileSize int Size of the file in bytes.
FileContent string Base64‑encoded content of the PNG file.

FileInfo

How to Use the Post Convert Workbook to PNG API with SDKs?

API Specification

The Post Convert Workbook to PNG API Specification defines a publicly accessible programming interface and enables you to carry out 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 use the API 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: