How to Finish Editing a Document Online in C#

Cloudmersive
1 min readFeb 8, 2021

--

After you’re done editing an online document, you’re ready for the final step — downloading the result! Our Finish Editing API takes the editing URL and plugs it into a process that will provide you with your updated document.

To begin, you can use .NET Framework or .NET Core to install the SDK; the example below is for .NET Framework.

Install-Package Cloudmersive.APIClient.NET.DocumentAndDataConvert -Version 3.2.8

Next, you can call the function by using the following code:

using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Api;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model;
namespace Example
{
public class EditDocumentFinishEditingExample
{
public void main()
{
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
var apiInstance = new EditDocumentApi();
var reqConfig = new FinishEditingRequest(); // FinishEditingRequest | Cloudmersive Document URL to complete editing on
try
{
// Finish editing document, and download result from document editing
byte[] result = apiInstance.EditDocumentFinishEditing(reqConfig);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EditDocumentApi.EditDocumentFinishEditing: " + e.Message );
}
}
}
}

This will instantly deliver your downloadable document. To retrieve your personal API key, head to the Cloudmersive website to register for a free account and access to 800 monthly calls across our library of APIs.

--

--

Cloudmersive
Cloudmersive

Written by Cloudmersive

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

No responses yet