REST API ve Node.js Cloud SDK’yı kullanarak araçlarınızı ve uygulamalarınızı belge düzenleme özellikleriyle geliştirin.
Ücretsiz Denemeye BaşlayınNode.js için GroupDocs.Editor Cloud SDK, GroupDocs.Editor Cloud REST API’sini Node.js için GroupDocs.Editor Cloud SDK ile entegre ederek her türlü Node.js uygulamasında çok çeşitli popüler belge formatlarını düzenlemeyi destekler. Tek yapmanız gereken desteklenen belge formatlarını ((Microsoft Word, Excel elektronik tabloları, PowerPoint, TXT, HTML, XML) herhangi bir WYSIWYG HTML düzenleyicisine yüklemek ve belge düzenlendikten sonra aynı görünümü koruyarak orijinal formatına geri dönüştürmektir.
Node.js için GroupDocs.Editor Cloud SDK, düşük seviyeli istekleri yöneterek ve yanıtları işleyerek değerli geliştirme süresinden tasarruf sağlayan GroupDocs.Editor Cloud REST API’sinin üzerine bir katman olarak oluşturulmuştur. Geliştiriciler yalnızca projede ihtiyaç duyulduğu şekilde belirli kodu yazmaya odaklanabilirler.
Bulutta dosyaya açıklama eklemek için kaynak kodunu arıyorsanız GitHub’daki GroupDocs.Editor Cloud SDK for Node.js sayfasına göz atın.
Herhangi bir sınırlama olmaksızın GroupDocs.Editor Low-Code Node.js API’lerini deneyebilirsiniz.
GroupDocs.Editor Cloud, hizmeti kendi kendine barındırmak için kullanılabilen Docker görüntüsü olarak da mevcuttur. Veya şu anda REST API’lerimizi çalıştıran GroupDocs.Editor Yüksek Kodlu API’lerini kullanarak kendi hizmetlerinizi oluşturabilirsiniz.
//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);