PdfFontEmbeddingMode Enumeration |
Specifies how Aspose.Words should embed fonts.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum PdfFontEmbeddingMode
Public Enumeration PdfFontEmbeddingMode
public enum class PdfFontEmbeddingMode
type PdfFontEmbeddingMode
Members
| Member name | Value | Description |
---|
| EmbedAll | 0 |
Aspose.Words embeds all fonts.
|
| EmbedNonstandard | 1 |
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.
|
| EmbedNone | 2 |
Aspose.Words do not embed any fonts.
|
ExamplesShows how to set Aspose.Words to skip embedding Arial and Times New Roman fonts into a PDF document.
Document doc = new Document(MyDir + "Rendering.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.FontEmbeddingMode = PdfFontEmbeddingMode.EmbedNone;
doc.Save(ArtifactsDir + "Rendering.DisableEmbedWindowsFonts.pdf");
See Also