Documents Editor SDK for Java Applications

Document editor REST API to build advanced documents editing and manipulating tools using Java Cloud SDK on web, mobile, desktop or cloud platforms.‎

Start Free Trial

GroupDocs.Editor Cloud SDK for Java easily integrates with GroupDocs.Editor Cloud REST API, allowing to add documents editing features in Java applications without MS Office or other additional applications installed. Using the Java editor SDK – speed up the document manipulation task across a wide range of supported document formats including Microsoft Word, Excel spreadsheets, Presentations, TXT, HTML and XML. Simply fetch the document into any WYSIWYG HTML editor, edit it as needed and save it back to original document formats with true accuracy and efficiency.

Perform all most demanded document editing operations across the supported file formats. GroupDocs.Editor Cloud SDK for Java is built as a layer on top of GroupDocs.Editor Cloud REST API that saves valuable development time by managing low-level requests and handling responses. The developers can focus on writing up the specific code only as needed in the project.

Advanced Document Editor REST API Features

Integrates easily within any WYSIWYG editor

Edit Word documents as a whole or define pages range

Multi-tabbed spreadsheet editing is supported

Optimized memory usage for large CSV or TSV files

Extract document information (type, size, page count etc)

Cloud REST API to be used with any language or platform

Working with WordProcessing Documents - Java

//Get your App SID, App Key and Storage Name at (free registration is required).
Configuration configuration = new Configuration(MyAppSid, MyAppKey);

// Create necessary API instances
EditApi editApi = new EditApi(configuration);
FileApi fileApi = new FileApi(configuration);

// The document already uploaded into the storage.
// Load it into editable state
FileInfo fileInfo = new FileInfo();
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
LoadResult loadResult = editApi.load(new LoadRequest(loadOptions));

// Download html document
File file = fileApi.downloadFile(new DownloadFileRequest(loadResult.getHtmlPath(), null, null));
// Edit something...
List lines = Files.readAllLines(file.toPath());
List newLines = new ArrayList();
for (String line : lines) {
    newLines.add(line.replaceAll("Sample test text", "Hello world"));
Files.write(file.toPath(), newLines);

// Upload html back to storage
fileApi.uploadFile(new UploadFileRequest(loadResult.getHtmlPath(), file, Common.MYStorage));

// Save html back to docx
WordProcessingSaveOptions saveOptions = new WordProcessingSaveOptions();
DocumentResult saveResult = SaveRequest(saveOptions));

System.out.println("Document edited: " + saveResult.getPath());

Support and Learning Resources

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