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.

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

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Then, add a reference to the dependency:

<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.54</version>
</dependency>
</dependencies>

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.