Convert Excel to PDF

This REST API converts a spreadsheet file to a PDF‑format file.

REST API

API Type Description Swagger Link
/cells/convert/pdf POST Convert a spreadsheet to a PDF file. PostConvertWorkbookToPDF

Query Parameter

Parameter Name Type Description
password string Password to open the Excel file.
storageName string The name of the storage where the file is located.
checkExcelRestriction bool Whether to enforce Excel file restrictions when modifying cell‑related objects.

Request Body Parameter

Parameter Name Type Description
datafile file The data file saved as the first part of the multipart content.

Response

FileInfo

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use the cURL command‑line tool to access Aspose.Cells web services easily. Include an access token in the Authorization header, then run the request below.

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK handles low‑level details, allowing you to 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 make calls to Aspose.Cells web services using various SDKs:

Other APIs that implement this function

API Type Description Swagger Link
/cells/convert PUT Converts a workbook from request content to a specified format. PutConvertWorkBook

POST /cells/{name}/saveAs API lets you save an MS Excel file as a PDF with additional settings and store the result in the storage.

This REST API converts an Excel file to PDF.

PUT /cells/convert API lets you convert an MS Excel file to PDF with additional settings and return the result in the response.

GET /cells/{name} API lets you convert an MS Excel file to PDF with additional settings and return the result in the response.

These PutConvertWorkBook, GetWorkBook, and PostDocumentSaveAs APIs define a publicly accessible programming interface and allow you to perform REST interactions directly from a web browser.