Finish Editing and Download a Document in Java

Have you finished editing a document online, and need to download the result? The following API is the counterpart to our Begin Editing API and will bring your project full circle. Once all editing operations have been completed, you can call this function to save and download your updated document.

Image for post
Image for post

To get started, you can install the SDK with Maven (Gradle also available) by adding a reference to the repository in pom.xml:


Then, add a reference to the dependency:


Now, you can plug in the editing URL to call the Finish 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;

And just like that, your document is refreshed and ready for use. If further edits are needed in the future, you will need to go back to the Begin Editing function to create a new temporary URL.

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