com.aspose.words

Class PdfFontEmbeddingMode

  • java.lang.Object
    • com.aspose.words.PdfFontEmbeddingMode
public class PdfFontEmbeddingMode 
extends java.lang.Object

Utility class containing constants. Specifies how Aspose.Words should embed fonts.

Example:

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(getMyDir() + "Rendering.docx");

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

// The output PDF will be saved without embedding standard windows fonts
doc.save(getArtifactsDir() + "Rendering.DisableEmbedWindowsFonts.pdf", options);

Field Summary
static final intEMBED_ALL = 0
Aspose.Words embeds all fonts.
static final intEMBED_NONSTANDARD = 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.
static final intEMBED_NONE = 2
Aspose.Words do not embed any fonts.
 

    • Field Detail

      • EMBED_ALL = 0

        public static final int EMBED_ALL
        Aspose.Words embeds all fonts.
      • EMBED_NONSTANDARD = 1

        public static final int EMBED_NONSTANDARD
        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.
      • EMBED_NONE = 2

        public static final int EMBED_NONE
        Aspose.Words do not embed any fonts.