导出图片
您可以导出以下格式:PNG, 动图, JPEG, BMP, SVG, TIFF, EMF, WMF.
API |
类型 |
描述 |
Swagger 链接 |
/单元格/导出 |
邮政 |
将请求内容中的 Excel 对象导出为某种格式 |
出口后 |
这OpenAPI规范定义一个可公开访问的编程接口,并允许您直接从 Web 浏览器执行 REST 交互。
您可以使用cURL命令行工具可轻松访问 Aspose.Cells 的 Web 服务。以下示例展示了如何使用 cURL 调用 Cloud API。
curl -X POST "https://api.aspose.cloud/v3.0/cells/export?objectType=picture&format=tiff" -H "accept: multipart/form-data" -H "Content-Type: multipart/form-data" -H "x-aspose-client: Containerize.Swagger" -d {"File":{}}
{
"Files": [{
"Filename": "Book1_xlsx_Sheet6_Pictures_0.tif",
"FileSize": 21680,
"FileContent": "-----Base64String--------"
}, {
"Filename": "Book1_xlsx_Sheet6_Pictures_1.tif",
"FileSize": 21286,
"FileContent": "-----Base64String--------"
}, {
"Filename": "myDocument_xlsx_Sheet2_Pictures_0.tif",
"FileSize": 130084,
"FileContent": "-----Base64String--------"
}, {
"Filename": "myDocument_xlsx_Sheet2_Pictures_1.tif",
"FileSize": 120062,
"FileContent": "-----Base64String--------"
}]
}
使用 SDK 是加速开发的最佳方式。SDK 负责处理底层细节,让您专注于项目任务。请查看GitHub 存储库以获取 Aspose.Cells Cloud SDKs 的完整列表。
以下代码示例演示了如何使用各种 SDK 调用 Aspose.Cells Web 服务: