Java document editing and transformation APIs using HTML

Edit and transform documents using HTML Editor or by any UI-less service within any Java based application

Download Free Trial
Java HTML Editor API

GroupDocs.Editor for Java


GroupDocs.Editor for Java API enables document editing in form of HTML. API supports multiple document formats and can be integrated with any external, opensource or paid HTML editor. Editor API will process to load documents, convert it to HTML, provide HTML to external UI and then save HTML to original document after manipulation. It can also be used to generate different Microsoft Word files, OpenDocument Formats, XML and TXT documents.


Advanced GroupDocs.Editor API Features



Easy integration


Direct and inverse document transformation


Edit multiple document formats


Storage agnostic


UI agnostic


Support for streams


Simple Flexible API

Translate Document to HTML DOM & Vice Versa

GroupDocs.Editor for Java API allows to load the document and convert it to the HTML DOM for parsing structure as well as the extraction of CSS contents. The API also allows to convert the DOM to document format.

Get HTML documnet content - Java

// Obtain document stream
InputStream inputStream = new FileInputStream("D:\storage\sample.docx");
	InputHtmlDocument htmlDoc = EditorHandler.toHtml(inputStream);
	// Obtain HTML document content 
	String bodyContent = htmlDoc.getContent();
} catch (Exception ex){

Load & Extract External Resources

Java Editor API is capable of loading the external resources attached to the HTML such as images, fonts, CSS and so on. These resources can easily be traversed and saved separately as well as along with the resultant HTML document.

Installation and Usage

GroupDocs.Editor for Java API files can be downloaded directly from:

Fat version
    • Download API from the download archive.
    • Extract the archive.
    • Open console and cd to lib directory of the extracted directory.
    • Run the install_library.bat to install API in maven

Note: version number and file name can be different from current documentation.

  • Add dependency to your pom.xml
Slim version

This API is hosted in the Maven Central Repository, so if you use Maven in your projects just use the dependency declaration provided above.

The jar itself you can download from the Maven Central Repository.


Support and Learning Resources


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