public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Workbook workbook = new Workbook(dataDir + "source.xlsx");
PdfSaveOptions options = new PdfSaveOptions();
options.WarningCallback = new GetWarningsForFontSubstitution();
dataDir = dataDir + "output_out.pdf";
workbook.Save(dataDir, options);
}
}