Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion.PDFToHTMLFormat.SaveFonts.ThreeSetFonts C# (CSharp) Метод

ThreeSetFonts() публичный статический Метод

public static ThreeSetFonts ( ) : void
Результат void
        public static void ThreeSetFonts()
        {
            // ExStart:ThreeSetFonts
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();
        
            Document doc = new Document(dataDir + "input.pdf");
            HtmlSaveOptions htmlOptions = new HtmlSaveOptions();
            htmlOptions.FixedLayout = true;
            htmlOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsExternalPngFilesReferencedViaSvg;
            htmlOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;

            doc.Save(dataDir + "ThreeSetFonts_out.html", htmlOptions);
            // ExEnd:ThreeSetFonts

        }
    }