Click or drag to resize

PdfFontEmbeddingMode Enumeration

Specifies how Aspose.Words should embed fonts.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum PdfFontEmbeddingMode
Members
  Member nameValueDescription
EmbedAll0 Aspose.Words embeds all fonts.
EmbedNonstandard1 Aspose.Words embeds all fonts excepting standard Windows fonts Arial and Times New Roman. Only Arial and Times New Roman fonts are affected in this mode because MS Word doesn't embed only these fonts when saving document to PDF.
EmbedNone2 Aspose.Words do not embed any fonts.
Examples
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.docx");

// 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(ArtifactsDir + "Rendering.DisableEmbedWindowsFonts.pdf");
See Also