public static void Run()
{
// ExStart:1
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Instantiate the Workbook object
// Open an Excel file
Workbook workbook = new Workbook(dataDir + "abc.xlsx");
// Save the document in PDF format
workbook.Save(dataDir + "outBook2.out.pdf", SaveFormat.Pdf);
// Display result, so that user knows the processing has finished.
System.Console.WriteLine("Conversion completed.");
// ExEnd:1
}
}