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, Excel spreadsheets, PowerPoint files, OpenDocument formats, XML and TXT documents.
Easy HTML Editor Integration
Document Conversion to HTML DOM
Extract HTML Content via Stream
Load, Edit & Save Word, Excel & PowerPoint File Formats
Fetch HTML along with Embedded Elements
Import, View and Edit XML Documents
By-pass HTML Content & Save Embedded Resources
View, Edit and Save Word Processing Documents in Paginal Mode
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
Get Meta Information of Input Documents without Editing
Save Edited Documents to Plain Text File Format
Conversion Accuracy
Apply Password to Output Document
Database (DB) Agnostic
User Interface (UI) Agnostic
Supports Metered Licensing
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.
// Obtain document stream
InputStream inputStream = new FileInputStream(CommonUtilities.getStoragePath("Content.HTML"));
InputHtmlDocument htmlDoc = EditorHandler.toHtml(inputStream);
// Obtain HTML document content
String cssContent = htmlDoc.getEmbeddedHtml();
System.out.println(cssContent);
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.