<commit_before>using System.IO;

using Aspose.Cells;
using System.Diagnostics;

namespace Aspose.Cells.Examples.Articles
{
    //ExStart:1
    public class GetWarningsForFontSubstitution : IWarningCallback
    {

        public void Warning(WarningInfo info)
        {
            if (info.WarningType == WarningType.FontSubstitution)
            {
                Debug.WriteLine("WARNING INFO: " + info.Description);
            }
        }




        static void Main()
        {
            Workbook workbook = new Workbook("F:\\AllExamples\\Aspose.Cells\\net\\TechnicalArticles\\Aspose.CellsGeneral\\GetWarningsForFontSubstitution\\Data\\source.xlsx");

            PdfSaveOptions options = new PdfSaveOptions();
            options.WarningCallback = new GetWarningsForFontSubstitution();

            workbook.Save("F:\\AllExamples\\Aspose.Cells\\net\\TechnicalArticles\\Aspose.CellsGeneral\\GetWarningsForFontSubstitution\\Data\\output.pdf", options);
       //ExEnd:1
        }

    }
}



            <commit_msg>Update GetWarningsForFontSubstitution.cs<commit_after>using System.IO;

using Aspose.Cells;
using System.Diagnostics;

namespace Aspose.Cells.Examples.Articles
{
    //ExStart:1
    public class GetWarningsForFontSubstitution : IWarningCallback
    {

        public void Warning(WarningInfo info)
        {
            if (info.WarningType == WarningType.FontSubstitution)
            {
                Debug.WriteLine("WARNING INFO: " + info.Description);
            }
        }




        static void Main()
        {
            Workbook workbook = new Workbook("F:\\AllExamples\\Aspose.Cells\\net\\TechnicalArticles\\Aspose.CellsGeneral\\GetWarningsForFontSubstitution\\Data\\source.xlsx");

            PdfSaveOptions options = new PdfSaveOptions();
            options.WarningCallback = new GetWarningsForFontSubstitution();

            workbook.Save("F:\\AllExamples\\Aspose.Cells\\net\\TechnicalArticles\\Aspose.CellsGeneral\\GetWarningsForFontSubstitution\\Data\\output.pdf", options);
   
        }

    }
        //ExEnd:1
}



            
{'fraction_non_alphanumeric': 0.10635226179018287, 'fraction_numerical': 0.0019249278152069298, 'mean_word_length': 2.342443729903537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6984693', 'n_tokens_mistral': 614, 'n_tokens_neox': 559, 'n_words': 81}