using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Spire.Doc;
namespace Spire.Doc
{
class Program
{
static void Main(string[] args)
{
//Load document
Document doc = new Document();
doc.LoadFromFile("../../../Data/Sample.doc");
//Save the file to other format
string fileName = "ConvertedFile";
doc.SaveToFile(fileName+".xlsx",FileFormat.Docx2010);
doc.SaveToFile(fileName+".pdf",FileFormat.PDF);
doc.SaveToFile(fileName + ".txt", FileFormat.Txt);
doc.SaveToFile(fileName + ".svg", FileFormat.SVG);
}
}
}