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.‎

  • GroupDocs.Editor for cURL
  • GroupDocs.Editor for .NET
  • GroupDocs.Editor for PHP
  • GroupDocs.Editor for Python
  • GroupDocs.Editor for Ruby
  • GroupDocs.Editor for Node.js
  • GroupDocs.Editor for Android

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.

Frequently Asked Questions

I want to create my own Java application to edit documents?

Check out GroupDocs.Editor Cloud SDK for Java at GitHub if you are looking for the source code to annotate file in the Cloud.

Can I try GroupDocs.Editor REST APIs on Java for free?

You can try GroupDocs.Editor Low-Code Java APIs without any limitations.

I do not want to upload my confidential files anywhere for editing? What are my options?

GroupDocs.Editor Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own Java services using GroupDocs.Editor High-code APIs which currently drive our REST APIs.

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());

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