using System;
using System.IO;
using System.Threading.Tasks;
using Accusoft.PrizmDocServer;
namespace Demos
{
class Program
{
static void Main(string[] args)
{
MainAsync().GetAwaiter().GetResult();
}
static async Task MainAsync()
{
var prizmDocServer = new PrizmDocServerClient("https://api.accusoft.com", "YOUR_API_KEY");
// Take a vsdx file and convert it to a tiff.
IEnumerable<ConversionResult> results = await prizmDocServer.ConvertAsync("input.vsdx", DestinationFileFormat.Tiff);
// Save the result
await results.Single().RemoteWorkFile.SaveAsync("output.tiff");
}
}
}
Want more info on our PrizmDoc Server SDK? View our SDK Documentation to learn more.Not using .NET? View our API Documentation to use our advanced features with other languages.