将 BMP 另存为 XLS

PHP 库,用于将 BMP 保存为 XLS

使用Cells云的SaveAs API在PHP中创建自定义电子表格工作流程。这是使用PHP在线将BMP保存为XLS和其他文档格式的专业解决方案。

将 BMP 文件另存为 PHP 中的 XLS

API
POST
https://api.aspose.cloud/v3.0/cells/{name}/SaveAs

将 BMP 中的文件格式保存为 XLS 是一项复杂的任务。所有 BMP 到 XLS 格式的转换均由我们的 PHP SDK 执行,同时保留源 BMP 电子表格的主要结构和逻辑内容。我们的 PHP 库是在线将 BMP 保存为 XLS 文件的专业解决方案。该Cloud SDK为PHP开发人员提供了强大的功能和完美的XLS输出。

PHP 使用 REST API 将 BMP 保存为 XLS 的代码示例

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/
    $apiInstance = new CellsApi( getenv("ProductClientId"),getenv("ProductClientSecret") );
    $name ='Book1.bmp';
    $saveOptions =new \Aspose\Cells\Cloud\Model\SaveOptions();
    $saveOptions->SaveFormat = "xls";
    $newfilename = "Book1Saveas.xls";
    $isAutoFitRows= 'true';
    $isAutoFitColumns= 'true';
    $folder = "Temp";
    $result = $apiInstance->cellsSaveAsPostDocumentSaveAs($name, $saveOptions, $newfilename,$isAutoFitRows, $isAutoFitColumns, $folder);


如何使用PHP云SDK将Excel文件保存为其他格式BMP保存为XLS


  1. 注册一个帐户仪表板获取免费API配额和授权详细信息
  2. 使用您的客户端 ID、客户端密钥、基本 URL 和 API 版本初始化 Cells API。
  3. 使用 `PostWorkbookSaveAs` 方法检索结果流。


系统要求


  1. PHP 7.4 或更高版本