Erweitern Sie Ihre Tools und Anwendungen mit Dokumentenbearbeitungsfunktionen mit REST API und Node.js Cloud SDK.
Kostenlos testenDas GroupDocs.Editor Cloud SDK für Node.js unterstützt die Bearbeitung einer Vielzahl gängiger Dokumentformate in jeder Art von Node.js-Anwendung durch die Integration des GroupDocs.Editor Cloud SDK für Node.js mit der GroupDocs.Editor Cloud REST API. Sie müssen nur unterstützte Dokumentformate ((Microsoft Word, Excel-Tabellen, PowerPoint, TXT, HTML, XML) in einen beliebigen WYSIWYG-HTML-Editor hochladen und es wieder in sein ursprüngliches Format konvertieren, wobei das gleiche Erscheinungsbild nach der Bearbeitung des Dokuments erhalten bleibt.
Das GroupDocs.Editor Cloud SDK für Node.js ist als Schicht auf der GroupDocs.Editor Cloud REST API aufgebaut, die wertvolle Entwicklungszeit spart, indem Low-Level-Anfragen verwaltet und Antworten verarbeitet werden. Die Entwickler können sich darauf konzentrieren, den spezifischen Code nur so zu schreiben, wie er im Projekt benötigt wird.
Einfache Integration in jeden WYSIWYG-Editor
Bearbeiten Sie Word-Dokumente als Ganzes oder definieren Sie Seitenbereiche
Die Bearbeitung von Tabellenkalkulationen mit mehreren Registerkarten wird unterstützt
Optimierte Speichernutzung für große CSV- oder TSV-Dateien
Dokumentinformationen extrahieren (Typ, Größe, Seitenzahl usw.)
Cloud-REST-API zur Verwendung mit jeder Sprache oder Plattform
//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
global.editApi = editor_cloud.EditApi.fromKeys(appSid, appKey);
global.fileApi = editor_cloud.FileApi.fromKeys(appSid, appKey);
// The document already uploaded into the storage.
// Load it into editable state
let fileInfo = new editor_cloud.FileInfo();
fileInfo.filePath = "WordProcessing/password-protected.docx";
fileInfo.password = "password";
let loadOptions = new editor_cloud.WordProcessingLoadOptions();
loadOptions.fileInfo = fileInfo;
loadOptions.outputPath = "output";
let loadResult = await editApi.load(new editor_cloud.LoadRequest(loadOptions));
// Download html document
let buf = await fileApi.downloadFile(new editor_cloud.DownloadFileRequest(loadResult.htmlPath));
let htmlString = buf.toString("utf-8");
// Edit something...
htmlString = htmlString.replace("Sample test text", "Hello world");
// Upload html back to storage
await fileApi.uploadFile(new editor_cloud.UploadFileRequest(loadResult.htmlPath, new Buffer(htmlString, "utf-8")));
// Save html back to docx
let saveOptions = new editor_cloud.WordProcessingSaveOptions();
saveOptions.fileInfo = fileInfo;
saveOptions.outputPath = "output/edited.docx";
saveOptions.htmlPath = loadResult.htmlPath;
saveOptions.resourcesPath = loadResult.resourcesPath;
let saveResult = await editApi.save(new editor_cloud.SaveRequest(saveOptions));
// Done.
console.log("Document edited: " + saveResult.path);