Edit Documents via HTML Using Java API

Integrate Java applications with HTML editor to manipulate documents & convert back to original format.

  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.


GroupDocs.Editor for Java Features



Easy HTML Editor Integration


Document Conversion to HTML DOM


Extract HTML Content via Stream


Fetch HTML along with Embedded Elements


By-pass HTML Content & Save Embedded Resources


Get Content of HTML Body Tag from File


Extract CSS Content of HTML File


Use String Content to Get HTML DOM & Convert to File


Convert HTML DOM with Embedded Elements


Convert Files of Multiple Formats in HTML for Editing


Conversion Accuracy


Apply Password to Output Document


Database (DB) Agnostic


User Interface (UI) Agnostic


Supports Metered Licensing

Accurately Convert to and from HTML DOM

Using GroupDocs.Editor for Java allows you to build applications in Java that load a document of supported file format to convert it into HTML Document Object Model (DOM) along with its associated elements, e.g., CSS. Furthermore, our Editor Java API allows you to edit the HTML in any of the popular HTML Editors. After your required modifications are done, GroupDocs.Editor for Java helps you to convert this resultant HTML back to its original file format.

Get HTML Contents with Embedded Resources - Java

// Obtain document stream
InputStream inputStream = new FileInputStream(CommonUtilities.getStoragePath("Content.HTML"));
InputHtmlDocument htmlDoc = EditorHandler.toHtml(inputStream);
// Obtain HTML document content
String cssContent = htmlDoc.getEmbeddedHtml();

Load & Fetch Associate Elements

GroupDocs.Editor for Java API enables you to fetch the associated elements from documents of supported formats, such as images, CSS, fonts & more. Then you can load these fetched associated elements, traverse them and save them separately from the final HTML file, and have a well-managed output.


Support and Learning Resources


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