|
| 1 | +# **Spreadsheet Cloud API: convertRangeToImage** |
| 2 | + |
| 3 | +Converts a range of spreadsheet on a local drive to the image file. |
| 4 | + |
| 5 | + |
| 6 | +## **Quick Start** |
| 7 | + |
| 8 | +- **Base URL**: `http://api.aspose.cloud/v4.0` |
| 9 | +- **Authentication Method**: `JWT (OAuth2, application)` **Token URL**: `https://api.aspose.cloud/connect/token` |
| 10 | +- **Example** |
| 11 | + |
| 12 | +## **Interface Details** |
| 13 | + |
| 14 | +### **Endpoint** |
| 15 | + |
| 16 | +``` |
| 17 | +PUT http://api.aspose.cloud/v4.0/cells/convert/range/image |
| 18 | +``` |
| 19 | +### **Function Description** |
| 20 | +This method reads a spreadsheet file from the local file system, converts it's range to the desired image file, and returns the converted result.The source file path and target format must be specified correctly.Ensure that the necessary permissions are in place to read the source file and write the converted file if applicable.The conversion process occurs entirely on the cloud server, eliminating the need for any cloud storage or external downloads.If the source file does not exist, is inaccessible, or if an error occurs during the conversion process, an appropriate exception will be thrown.Supported formats for conversion depend on the available libraries and their capabilities. |
| 21 | + |
| 22 | +### The request parameters of **convertRangeToImage** API are: |
| 23 | + |
| 24 | +| Parameter Name | Type | Path/Query String/HTTPBody | Description | |
| 25 | +| :- | :- | :- |:- | |
| 26 | +|Spreadsheet|File|FormData|Upload spreadsheet file.| |
| 27 | +|worksheet|String|Query|worksheet name of spreadsheet.| |
| 28 | +|range|String|Query|cell area. e.g. A1:C10| |
| 29 | +|format|String|Query|file format. e.g. png, svg, tiff | |
| 30 | +|printHeadings|Boolean|Query|Represents if row and column headings are printed with this page.| |
| 31 | +|outPath|String|Query|(Optional) The folder path where the workbook is stored. The default is null.| |
| 32 | +|outStorageName|String|Query|Output file Storage Name.| |
| 33 | +|fontsLocation|String|Query|Use Custom fonts.| |
| 34 | +|regoin|String|Query|The spreadsheet region setting.| |
| 35 | +|password|String|Query|The password for opening spreadsheet file.| |
| 36 | + |
| 37 | +### **Response Description** |
| 38 | +```json |
| 39 | +{ |
| 40 | +File |
| 41 | +} |
| 42 | +``` |
| 43 | + |
| 44 | + |
| 45 | +## OpenAPI Specification |
| 46 | + |
| 47 | +The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/ConversionController/ConvertRangeToImage) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. |
0 commit comments