Speichern Sie eine XLS-Datei als PPTX in NodeJS
API
POST
https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
Das Speichern von Dateiformaten von XLS als PPTX ist eine komplexe Aufgabe. Alle Formatübergänge von XLS zu PPTX werden von unserem NodeJS SDK durchgeführt, wobei der strukturelle und logische Hauptinhalt der Quell-XLS-Tabelle erhalten bleibt. Unsere NodeJS-Bibliothek ist eine professionelle Lösung zum Online-Speichern von XLS als PPTX-Dateien. Dieses Cloud SDK bietet NodeJS-Entwicklern leistungsstarke Funktionen und eine perfekte PPTX-Ausgabe.
NodeJS-Codebeispiel zum Speichern von XLS als PPTX mit REST API
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/
const { CellsApi, CellsSaveAs_PostDocumentSaveAsRequest } = require("asposecellscloud");
const cellsApi = new CellsApi(process.env.ProductClientId, process.env.ProductClientSecret);
var req = new CellsSaveAs_PostDocumentSaveAsRequest({
name: "Book1.xls",
folder: "CellsTests",
newfilename: "Book1Saveas.pptx",
});
cellsApi.cellsSaveAsPostDocumentSaveAs(req)
.then((result) => {
console.log(result)
});
So speichern Sie XLS als PPTX mithilfe der Cloud NodeJS-Bibliothek Cells.
- Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
- Installieren Sie die NodeJS-Bibliothek und fügen Sie die Referenz (importieren Sie die Bibliothek) zu Ihrem Projekt hinzu.
- Öffnen Sie die Quelldatei in JavaScript.
- Verwenden Sie die Methode `PostWorkbookSaveAs`, um den resultierenden Stream abzurufen.
System Anforderungen
- Node v6.17.1 oder neuer