Cloud REST API to edit Word processing documents, Excel Spreadsheets & Presentations. Open document in WYSIWYG editor, edit and save back to original format.
Start Free TrialGroupDocs.Editor Cloud SDK for .NET allows developers to easily perform document editing functionalities within any type of .NET based application by integrating it with GroupDocs.Editor Cloud REST API. The .NET editor SDK supports editing all popular industry standard document types without needing to install Microsoft Office or Open Office on the system. Simply upload the supported document (Microsoft Word, Excel spreadsheets, PowerPoint, TXT, HTML, XML) file formats in any third-party front-end WYSIWYG HTML editor of your choice using GroupDocs.Editor Cloud API, perform editing and convert it back to its original file format.
Using document editing SDK – manipulate word processing documents as a whole or page by page. Manage font extraction operation to offer the same layout and appearance of the document after editing. It supports defining the index of currently edited worksheet while editing the multi-tabbed Excel spreadsheets. Developers can also fix any issues within URLs, formatting options, document structure or recognition of email addresses within XML files.
Check out GroupDocs.Editor Cloud SDK for .NET at GitHub if you are looking for the source code to annotate file in the Cloud.
You can try GroupDocs.Editor Low-Code .NET APIs without any limitations.
GroupDocs.Editor Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own .NET services using GroupDocs.Editor High-code APIs which currently drive our 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));