Convert OTG files

Convert OTG files

Aspose.Imaging for .NET now supports converting images from OTG to PDF and other image formats. Following code snippet demonstrates the said functionality.

using Aspose.Imaging;
using Aspose.Imaging.FileFormats.OpenDocument;
using Aspose.Imaging.ImageOptions;
using System.IO;
string templatesFolder = @"c:\Users\USER\Downloads\templates\";
string dataDir = templatesFolder;
using (OtgImage image = (OtgImage)Image.Load(dataDir + "template.otg"))
{
image.Save(dataDir + "result.pdf", new PdfOptions());
}
File.Delete(dataDir + "result.pdf");