.NET API to Edit Documents Using HTML

Integrate HTML-based editor to your .NET applications. Fetch supported document, edit and convert to original format.

  Download Free Trial

GroupDocs.Editor for .NET


GroupDocs.Editor for .NET API helps you to build simple and easy to use C#, ASP.NET, and other .NET applications that readily integrate with popular HTML editors (both open-source & paid) to convert, edit and manipulate documents of popular file formats. Our .NET Editor API lets you load document, convert it to HTML, push HTML to external HTML Editor, and once the manipulation is done, saves the HTML to its original file format. You can also separately fetch resources attached to any document. It works with all sorts of documents, such as that for Microsoft Word, Excel, OpenDocument, Text, Web, and more.


GroupDocs.Editor for .NET Features



Easy Integration with any HTML Editor


Convert Document to HTML DOM


Fetch HTML Content from Document Stream


Get HTML Content & its Embedded Resources


Obtain HTML Body Tag Content from Document


Get CSS Content of HTML Document


Traverse HTML Content and Save its Resources


Fetch HTML DOM from String Content & Convert to Document


HTML DOM along with Resources Conversion


Edit Documents of Various Formats in HTML


Accurate Conversion


Apply Security to Resultant Document


Database (DB) Agnostic


User Interface (UI) Agnostic


Metered Licensing

Accurate Conversion to and from HTML DOM

GroupDocs.Editor for .NET API enables your .NET applications to fetch a document of supported format and convert it to an HTML Document Object Model (DOM) along with the extraction of attached resources, such as CSS. You can then make the modifications to the HTML using your favorite HTML Editor. Once you are done with the editing, GroupDocs.Editor for .NET API allows you to accurately convert this HTML DOM back to the original file.

Obtain HTML Document with Embedded Resources - C#

// Obtain document stream
Stream sourceStream = File.Open("D:/sample.docx", FileMode.Open, FileAccess.Read);
using (InputHtmlDocument htmlDoc = EditorHandler.ToHtml(sourceStream))
//  Obtain HTML document with embedded resources
string cssContent = htmlDoc.GetEmbeddedHtml();

Load & Extract External Resources

GroupDocs.Editor for .NET API is capable of fetching the external resources attached to supporting documents, such as images, fonts, CSS and more. The fetched resources can then be loaded, traversed, and saved separately from the resultant HTML document. This gives you a more easily managed output.


Support and Learning Resources


GroupDocs.Editor offers document Editing APIs for other popular development environments as listed below: