.NET API to Edit Documents Using HTML

Develop .NET Applications, to Integrate with HTML Editor, Fetch Supported Document, Edit and Convert to Original Format.


Download Free Trial

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 with any document. It works with all sorts of documents, such as that for Microsoft Word, Excel, PowerPoint, PDF, XPS, OpenDocument, Text, Web, Email, e-Book and more.

GroupDocs.Editor for .NET Features

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 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.

// Create Editor class by loading an input document
Editor editor = new Editor("Sample.docx");

// Open document for edit and obtain EditableDocument
EditableDocument original = editor.Edit();

// Obtain all-embedded HTML from it
string allEmbeddedInside = original.GetEmbeddedHtml();

// If necessary, obtain pure HTML-markup, CSS, images and other resources in separate form

// Whole HTML-markup, without any resources
string completeHtmlMarkup = original.GetContent();

// Only HTML->BODY content, useful for most of WYSIWYG-editors
string onlyInnerBody = original.GetBodyContent();

// All CSS stylesheets
var stylesheets = original.Css;

// All images, including raster and vector, but without CSS gradients
var images = original.Images;

// All font resources
var fonts = original.Fonts;

// finally, send this content to your WYSIWYG HTML-editor

Load & Extract External Resources

GroupDocs.Editor for .NET API is capable of fetching the external resources attached to supported 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.

Apply Text Effects within Word Processing File Formats

GroupDocs document editor API enables adding complex text effects (Shadow, 3D effect, Outline, Glow, Engrave, Emboss) while working with supported Microsoft Word document processing formats. This feature is auto-enabled that can be observed when the document with such text effects is processed.

Powerful XML Manipulation Features

Using GroupDocs.Editor for .NET API you can open, view and edit XML documents. Our editing API offers special support and recoginition of XML tags, attributes along with their values, XML declarations, CDATA sections, DOCTYPE definitions, and other XML specific entities. You are able to customize font and color settings for every distinct entity in XML structure.

The XML Converter feature is smart enough to show errors in the XML file and how to fix them. The URI and email recognizer mechanism scans XML attributes and represents the detected URIs and email addresses inside the A tag as links so they can be edited as link, not as text within the resultant HTML file.

Support and Learning Resources

GroupDocs.Editor offers document editing APIs for other popular development environments

Back to top
 English