ApiExamples.ExRendering.DisableEmbeddingStandardWindowsFonts C# (CSharp) Метод

DisableEmbeddingStandardWindowsFonts() приватный Метод

private DisableEmbeddingStandardWindowsFonts ( ) : void
Результат void
        public void DisableEmbeddingStandardWindowsFonts()
        {
            //ExStart
            //ExFor:PdfSaveOptions.EmbedStandardWindowsFonts
            //ExId:EmbedStandardWindowsFonts
            //ExSummary:Shows how to set Aspose.Words to skip embedding Arial and Times New Roman fonts into a PDF document.
            // Load the document to render.
            Document doc = new Document(MyDir + "Rendering.doc");

            // To disable embedding standard windows font use the PdfSaveOptions and set the EmbedStandardWindowsFonts property to false.
            PdfSaveOptions options = new PdfSaveOptions();
            options.FontEmbeddingMode = PdfFontEmbeddingMode.EmbedNone;

            // The output PDF will be saved without embedding standard windows fonts.
            doc.Save(MyDir + @"\Artifacts\Rendering.DisableEmbedWindowsFonts.pdf");
            //ExEnd
        }