using Aspose.Imaging;
using Aspose.Imaging.FileFormats.Bmp;
using Aspose.Imaging.ImageOptions;
using Aspose.Imaging.Sources;
using System.IO;

string templatesFolder = @"c:\Users\USER\Downloads\templates\";
string dataDir = templatesFolder;

FontSettings.DefaultFontName = "Comic Sans MS";

string[] files = new string[] { "template.emf", "template.odg", "template.svg", "template.wmf" };
VectorRasterizationOptions[] options = new VectorRasterizationOptions[] { new EmfRasterizationOptions(), new OdgRasterizationOptions(), new SvgRasterizationOptions(), new WmfRasterizationOptions() };

for (int i = 0; i < files.Length; i++)
{
	string outFile = dataDir + files[i] + ".png";
	using (Image img = Image.Load(dataDir + files[i]))
	{
		options[i].PageWidth = img.Width;
		options[i].PageHeight = img.Height;
		img.Save(outFile, new PngOptions()
		{
			VectorRasterizationOptions = options[i]
		});
	}

	File.Delete(outFile);
}