Convert a Spreadsheet Range data to a Pdf file.

Convert a range from a local spreadsheet/Excel file to a pdf file.

Convert Range to Pdf API

PUT http://api.aspose.cloud/v4.0/cells/convert/range/pdf

Request Parameters:

Parameter Name Type Path/Query String/HTTP Body Description
Spreadsheet File FormData Upload the spreadsheet file.
worksheet String Query The worksheet name within the spreadsheet.
range String Query The cell area to be converted, e.g., A1:C10.
outPath String Query (Optional) The folder path where the workbook is stored. The default is null.
outStorageName String Query Output file Storage Name.
fontsLocation String Query Use custom fonts for the conversion.
regoin String Query The spreadsheet region setting.
password String Query The password for opening 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.

Why should you use the Convert Range to Pdf API?

  • No need for cloud storage, reducing the burden on cloud resources.
  • Development can be quickly completed through the existing SDK.

How to Use the Convert Range to Pdf API with SDKs?

Convert Range to Pdf API Specification

The Convert Range to Pdf API Specification defines a publicly accessible programming interface and allows you to carry out REST interactions directly 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 convert a range data to a json file 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: