Speichern Sie eine JSON-Datei als XLSB unter PHP
API
POST
https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
Das Speichern von Dateiformaten von JSON als XLSB ist eine komplexe Aufgabe. Alle Formatübergänge von JSON zu XLSB werden von unserem PHP SDK durchgeführt, wobei der strukturelle und logische Hauptinhalt der Quell-JSON-Tabelle erhalten bleibt. Unsere PHP-Bibliothek ist eine professionelle Lösung zum Online-Speichern von JSON als XLSB-Dateien. Dieses Cloud SDK bietet PHP-Entwicklern leistungsstarke Funktionen und perfekte XLSB-Ausgabe.
PHP Codebeispiel zum Speichern von JSON als XLSB mit REST 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.json';
$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);
So speichern Sie JSON als XLSB mithilfe der Cells Cloud PHP-Bibliothek.
- Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
- Installieren Sie die Bibliothek PHP und fügen Sie die Referenz (importieren Sie die Bibliothek) zu Ihrem Projekt hinzu.
- Öffnen Sie die Quelldatei in PHP.
- Verwenden Sie die Methode `PostWorkbookSaveAs`, um den resultierenden Stream abzurufen.
System Anforderungen
- PHP 7.4 oder neuer