GroupDocs.Editor Cloud SDK for Node.js는 GroupDocs.Editor Cloud SDK for Node.js를 GroupDocs.Editor Cloud REST API와 통합하여 모든 유형의 Node.js 애플리케이션에서 다양한 인기 문서 형식 편집을 지원합니다. 지원되는 문서 형식(Microsoft Word, Excel 스프레드시트, PowerPoint, TXT, HTML, XML)을 任意의 WYSIWYG HTML 편집기에 업로드하고, 편집된 후에도 동일한 외관을 유지하면서 원본 형식으로 다시 변환하기만 하면 됩니다.
GroupDocs.Editor Cloud SDK for Node.js는 GroupDocs.Editor Cloud REST API 위에 레이어로 구축되어 저수준 요청을 관리하고 응답을 처리함으로써 개발 시간을 절감합니다. 개발자는 프로젝트에서 필요한 경우에만 특정 코드를 작성하는 데 집중할 수 있습니다.
클라우드에서 파일에 주석을 달기 위한 소스 코드를 찾고 계시다면 GroupDocs.Editor Cloud SDK for Node.js at GitHub을(를) 확인하십시오.
제한 없이 Low-Code Node.js APIs를 시도 GroupDocs.Editor 하실 수 있습니다.
GroupDocs.Editor Cloud은 Docker 이미지 형태로도 제공되며, 이 이미지는 서비스를 self-host 하는 데 사용할 수 있습니다. 또한 GroupDocs.Editor High-code APIs(https://products.groupdocs.com/editor/)를 사용하여 자체 서비스를 구축할 수 있습니다. 이 서비스는 현재 우리 REST APIs를 구동합니다.
//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);