Aspose.Cells.Examples.CSharp.Articles.GetWarningsForFontSubstitution.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        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);
        }
    }
GetWarningsForFontSubstitution