Free Support Forum -

Fonts embedded in to pdf is making file size larger

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)) {
} else if (SUBSET.equals(fontMode)) {
} else if (NONE.equals(fontMode)) {


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document and fonts.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.