Hi,
We are trying to generate PDF files using Aspose word. In our case, the customer has to use different fonts which need to be embedded in the document and the document has options to embed the subset and full fonts. So even though we use the subset fonts or full fonts, aspose is embedding full fonts. Below is the code we are trying to use. Please suggest to us if this is the correct way to do it or is there any other way?
if (FULL.equals(fontMode)) {
pdfOptions.setEmbedFullFonts(true);
pdfOptions.setFontEmbeddingMode(PdfFontEmbeddingMode.EMBED_ALL);
} else if (SUBSET.equals(fontMode)) {
pdfOptions.setFontEmbeddingMode(PdfFontEmbeddingMode.EMBED_ALL);
} else if (NONE.equals(fontMode)) {
pdfOptions.setFontEmbeddingMode(PdfFontEmbeddingMode.EMBED_NONE);
}