Edit Documents via HTML using Java API

API integrates Java Applications with any 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 Document Content using Java

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

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: