Export ODS to XLSX file in the Cloud
Excel & OpenOffice spreadsheet export with open source Cloud SDK for PHP
Exoprt ODS to XLSX file in Cloud SDK for PHP
- Create an account at Dashboard to get free API quota & authorization details
- Initialize
CellsApi
with Client Id, Client Secret, Base URL & API version - Call
cellsWorkbookPutConvertWorkBook
method to get the resultant XLSX stream
Get Started with Excel REST API
Get Excel Cloud SDK for .NET source code from GitHub to compile the SDK yourself or head to the Releases for alternative download options.
Also have a look at Swagger-based API Reference to know more about the Excel REST API.
PHP Code for ODS to XLSX Conversion
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/
<?php
require_once('vendor\autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
$instance = new CellsApi(getenv("ProductClientId"),getenv("ProductClientSecret"));
$path ='Book1.xlsx';
$format ='xlsx';
$password = null;
$outPath = null;
$result = $this->instance->cellsWorkbookPutConvertWorkBook($path ,$format, $password, $outPath);
$size = $result->getSize();
$content = $result->fread($size);
$file = fopen("destfile.xlsx", 'w');
fwrite($file,$content);
fclose($file);
FAQ
-
How can I get started with Aspose. REST APIs?Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
-
Where can I see the release notes for Aspose. Cloud API?Complete release notes can be reviewed at Aspose. Cloud Documentation.
-
Is it safe to convert to in the Cloud?Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
-
What file formats are supported by Aspose. Cloud API?Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
-
I do not have time to set up. Is there a quick demo for to that I can try?Indeed! Checkout the to Conversion App.