public static void Run()
        {
            //ExStart:ConvertingPresentationToHtmlWithEmbedAllFontsHtmlController
            string dataDir = RunExamples.GetDataDir_Conversion();

            using (Presentation pres = new Presentation(dataDir + "presentation.pptx"))
            {
                // exclude default presentation fonts
                string[] fontNameExcludeList = { "Calibri", "Arial" };


                Paragraph para = new Paragraph();

                EmbedAllFontsHtmlController embedFontsController = new EmbedAllFontsHtmlController(fontNameExcludeList);

                LinkAllFontsHtmlController linkcont = new LinkAllFontsHtmlController(fontNameExcludeList, @"C:\Windows\Fonts\");

                HtmlOptions htmlOptionsEmbed = new HtmlOptions
                {
                    //                    HtmlFormatter = HtmlFormatter.CreateCustomFormatter(embedFontsController)
                    HtmlFormatter = HtmlFormatter.CreateCustomFormatter(linkcont)
                };

                pres.Save("pres.html", SaveFormat.Html, htmlOptionsEmbed);
                //ExEnd:ConvertingPresentationToHtmlWithEmbedAllFontsHtmlController
            }
        }
        public static void Run()
        {
            //ExStart:ConvertingPresentationToHTMLWithPreservingOriginalFonts
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Conversion();

            using (Presentation pres = new Presentation("input.pptx"))
            {
                // exclude default presentation fonts
                string[] fontNameExcludeList = { "Calibri", "Arial" };

                EmbedAllFontsHtmlController embedFontsController = new EmbedAllFontsHtmlController(fontNameExcludeList);

                HtmlOptions htmlOptionsEmbed = new HtmlOptions
                {
                    HtmlFormatter = HtmlFormatter.CreateCustomFormatter(embedFontsController)
                };

                pres.Save("input-PFDinDisplayPro-Regular-installed.html", SaveFormat.Html, htmlOptionsEmbed);
            }
            //ExEnd:ConvertingPresentationToHTMLWithPreservingOriginalFonts
        }
        public static void Run()
        {
            // ExStart:EmbedFontsInHtml
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Text();

            using (Presentation pres = new Presentation(dataDir + "pres.pptx"))
            {
                // exclude default presentation fonts
                string[] fontNameExcludeList = { "Calibri", "Arial" };

                EmbedAllFontsHtmlController embedFontsController = new EmbedAllFontsHtmlController(fontNameExcludeList);

                HtmlOptions htmlOptionsEmbed = new HtmlOptions
                {
                    HtmlFormatter = HtmlFormatter.CreateCustomFormatter(embedFontsController)
                };

                pres.Save(dataDir + "pres.html", SaveFormat.Html, htmlOptionsEmbed);
            }
            // ExEnd:EmbedFontsInHtml
        }