Cloud REST API는 Word 처리 문서와 Excel 스프레드시트 및 프레젠테이션을 편집합니다. 문서를 WYSIWYG 편집기에서 열어 편집하고 원본 형식으로 저장합니다.
무료 평가판 시작GroupDocs.Editor Cloud SDK for .NET는 GroupDocs.Editor Cloud REST API와 통합하여 .NET 기반 애플리케이션에서 개발자가 문서 편집 기능을 손쉽게 수행할 수 있도록 합니다. .NET 편집기 SDK는 시스템에 Microsoft Office 또는 Open Office를 설치할 필요 없이 모든 주요 산업 표준 문서 유형의 편집을 지원합니다. 원하는 서드파티 프런트엔드 WYSIWYG HTML 편집기에서 GroupDocs.Editor Cloud API를 사용해 지원되는 문서(Microsoft Word, Excel 스프레드시트, PowerPoint, TXT, HTML, XML) 파일 형식을 업로드하고 편집한 뒤 원본 파일 형식으로 변환하면 됩니다.
문서 편집 SDK를 사용하면 워드 프로세싱 문서를 전체 또는 페이지별로 조작할 수 있습니다. 편집 후에도 동일한 레이아웃과 외관을 제공하도록 글꼴 추출 작업을 관리합니다. 다중 탭 Excel 스프레드시트를 편집할 때 현재 편집 중인 워크시트의 인덱스를 정의할 수 있습니다. 또한 개발자는 URLs 내의 문제, 서식 옵션, 문서 구조 또는 XML 파일 내 이메일 주소 인식을 수정할 수 있습니다.
GitHub에서 .NET용 GroupDocs.Editor Cloud SDK(https://github.com/groupdocs-editor-cloud/groupdocs-editor-cloud-dotnet)을 확인하십시오.
제한 없이 Low-Code .NET APIs을 [GroupDocs.Editor(https://purchase.groupdocs.cloud/trial)] 시도할 수 있습니다.
GroupDocs.Editor Cloud는 Docker 이미지 형태로도 제공되며, 이 이미지를 사용하여 서비스를 self-host할 수 있습니다. 또는 GroupDocs.Editor High-code APIs를 사용하여 자체 .NET 서비스를 구축할 수 있으며, 이는 현재 우리 REST APIs를 구동합니다.
//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
var configuration = new Configuration(MyAppSid, MyAppKey);
// Create necessary API instances
var editApi = new EditApi(configuration );
var fileApi = new FileApi(configuration );
// The document already uploaded into the storage.
// Load it into editable state
var loadOptions = new WordProcessingLoadOptions
{
FileInfo = new FileInfo
{
FilePath = "WordProcessing/password-protected.docx",
Password = "password"
},
OutputPath = "output"
};
var loadResult = editApi.Load(new LoadRequest(loadOptions));
// Download html document
var stream = fileApi.DownloadFile(new DownloadFileRequest(loadResult.HtmlPath));
var htmlString = new StreamReader(stream, Encoding.UTF8).ReadToEnd();
// Edit something...
htmlString = htmlString.Replace("Sample test text", "Hello world");
// Upload html back to storage
fileApi.UploadFile(new UploadFileRequest(loadResult.HtmlPath,
new MemoryStream(Encoding.UTF8.GetBytes(htmlString))));
// Save html back to docx
var saveOptions = new WordProcessingSaveOptions
{
FileInfo = loadOptions.FileInfo,
OutputPath = "output/edited.docx",
HtmlPath = loadResult.HtmlPath,
ResourcesPath = loadResult.ResourcesPath
};
var saveResult = editApi.Save(new SaveRequest(saveOptions));