Speichern Sie XML unter XPS

PHP-Bibliothek zum Speichern von XML als XPS

Verwenden Sie SaveAs API von Cells Cloud, um benutzerdefinierte Tabellenkalkulations-Workflows in PHP zu erstellen. Dies ist eine professionelle Lösung, um XML als XPS und andere Dokumentformate online mit PHP zu speichern.

Speichern Sie eine XML-Datei als XPS in PHP

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

Das Speichern von Dateiformaten aus XML als XPS ist eine komplexe Aufgabe. Alle XML-Formatübergänge in das XPS-Format werden von unserem PHP-SDK durchgeführt, wobei der strukturelle und logische Hauptinhalt der XML-Quelltabelle erhalten bleibt. Unsere PHP-Bibliothek ist eine professionelle Lösung, um XML als XPS-Dateien online zu speichern. Dieses Cloud SDK bietet PHP Entwicklern leistungsstarke Funktionalität und eine perfekte XPS Ausgabe.

PHP Codebeispiel zum Speichern von XML als XPS 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.xml';
    $saveOptions =new \Aspose\Cells\Cloud\Model\SaveOptions();
    $saveOptions->SaveFormat = "xps";
    $newfilename = "Book1Saveas.xps";
    $isAutoFitRows= 'true';
    $isAutoFitColumns= 'true';
    $folder = "Temp";
    $result = $apiInstance->cellsSaveAsPostDocumentSaveAs($name, $saveOptions, $newfilename,$isAutoFitRows, $isAutoFitColumns, $folder);

So speichern Sie XML als XPS mithilfe der Cells Cloud PHP-Bibliothek.

  1. Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
  2. Installieren Sie die Bibliothek PHP und fügen Sie die Referenz (importieren Sie die Bibliothek) zu Ihrem Projekt hinzu.
  3. Öffnen Sie die Quelldatei in PHP.
  4. Verwenden Sie die Methode `PostWorkbookSaveAs`, um den resultierenden Stream abzurufen.

System Anforderungen

  1. PHP 7.4 oder neuer