Finish Editing a Document in JavaScript
Aug 9, 2021
Once you’ve finished editing your online document, you will need to take your editing URL and retrieve the updated file. To make the process as simple as possible, you can use the finish editing API to close out your editing session and download your new document — instructions on how to perform the operation in JavaScript are provided below!
We will begin by installing jQuery:
bower install jquery
After the installation, we can call the finish-editing function:
var settings = {
"url": "https://api.cloudmersive.com/convert/edit/finish-editing",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Apikey": "YOUR-API-KEY-HERE"
},
"data": {
"InputFileUrl": "<string>"
}
};$.ajax(settings).done(function (response) {
console.log(response);
});
At this point, your document will be ready and your temporary URL will expire, ensuring no information is stored.