将 XLSX 文件另存为 PHP 中的 XLSB
     API 
         POST 
            
                https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
                
            
        将文件格式从 XLSX 保存为 XLSB 是一项复杂的任务。所有 XLSX 到 XLSB 格式的转换均由我们的 PHP SDK 执行,同时保留源 XLSX 电子表格的主要结构和逻辑内容。我们的 PHP 库是在线将 XLSX 保存为 XLSB 文件的专业解决方案。该Cloud SDK为PHP开发人员提供了强大的功能和完美的XLSB输出。
PHP 使用 REST 将 XLSX 保存为 XLSB 的代码示例 API
// 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.xlsx';
    $saveOptions =new \Aspose\Cells\Cloud\Model\SaveOptions();
    $saveOptions->SaveFormat = "xlsb";
    $newfilename = "Book1Saveas.xlsb";
    $isAutoFitRows= 'true';
    $isAutoFitColumns= 'true';
    $folder = "Temp";
    $result = $apiInstance->cellsSaveAsPostDocumentSaveAs($name, $saveOptions, $newfilename,$isAutoFitRows, $isAutoFitColumns, $folder);
如何使用 Cells 云 PHP 库将 XLSX 另存为 XLSB。
- 注册一个帐户仪表板获取免费API配额和授权详细信息
- 安装 PHP 库并将引用(导入库)添加到您的项目中。
- 打开PHP中的源文件。
- 使用 `PostWorkbookSaveAs` 方法检索结果流。
系统要求
- PHP 7.4 或更高版本