We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue with embedding standard fonts

We are struggeling embedding all fonts required for a certain final PDF document.
This PDF is created from a set of word templates and later put together with several additional PDF documents.
In the end we need one PDF.
The fonts need to be embedded since it is a major requirement of the customer/printing service provider.

We are currently using different parameters when saving Word to PDF:

  • PdfSaveOptions.EmbedFullFonts = FALSE
  • PdfSaveOptions.EmbedStandardWindowsFonts = FALSE
  • PdfSaveOptions.UseCoreFonts = DEFAULT

We need to set those options to FALSE otherwise the PDF document size would be way to big. 7 MB instead of about 900KB. The strange thing is it worked before and form what we know nothing has changed on our side.

The list of fonts in the adobe font tabe looks like that. Only the lines highlighted yellow are ok.

FontsIssue.jpg (22.9 KB)

Best regards
Markus K├╝bler

@stefffel,

Thanks for your inquiry. The default value of PdfSaveOptions.EmbedFullFonts property is false, which means the fonts are subsetted before embedding. Subsetting is useful if you want to keep the output file size smaller. Subsetting removes all unused glyphs from a font.

The default value of PdfSaveOptions.UseCoreFonts is false. Core PDF fonts, or their font metrics and suitable substitution fonts, are required to be available to any PDF viewer application.

Please use PdfSaveOptions.FontEmbeddingMode property instead of PdfSaveOptions.EmbedStandardWindowsFonts. This property specifies the font embedding mode. The default value is EmbedAll. In your case, you can use EmbedNonstandard. We suggest you please read the properties of PdfSaveOptions.

Please use the latest version of Aspose.Words for .NET 17.10 and let us know how it goes on your side. If you still face problem, please share following detail here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.

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

Hi,

The Version of Aspose.Words for .NET 17.10 with the property value

EmbedAll for PdfSaveOptions.FontEmbeddingMode

worked for us.

Thank you!

@stefffel,

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.