Begin Editing a Document Online in Java

Looking for a simple and effective way to edit a document online? If so, you’ve come to the right place — the following API is the initial step in opening up the online editing process. Utilizing this innovative solution, you can create a secure URL to perform various editing operations on any kind of document, such as Word, Excel, or PowerPoint.

To install the SDK with Maven, add a reference to the repository in pom.xml:


Then, add a reference to the dependency:


Now, we can call the begin editing function with the following code:

// Import classes:
//import com.cloudmersive.client.invoker.ApiClient;
//import com.cloudmersive.client.invoker.ApiException;
//import com.cloudmersive.client.invoker.Configuration;
//import com.cloudmersive.client.invoker.auth.*;
//import com.cloudmersive.client.EditDocumentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
EditDocumentApi apiInstance = new EditDocumentApi();
File inputFile = new File("/path/to/inputfile"); // File | Input file to perform the operation on.
try {
String result = apiInstance.editDocumentBeginEditing(inputFile);
} catch (ApiException e) {
System.err.println("Exception when calling EditDocumentApi#editDocumentBeginEditing");

Once you have the URL, you can utilize our other APIs to perform further edition operations on your document. To retrieve your personal API key and gain access to 800 monthly calls across our API library, just head to the to create a free account.



There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.