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

Free Support Forum - aspose.com

Embedded TrueType font being replaced when displaying PDF file on client computers


We are using the Aspose.Pdf.Generator.Pdf class to create a simple PDF document from an xml template by calling BindXML

The template has text objects using a custom “Santos” true type font
The font is installed on the box where the pdf generation code is running.
When we display the pdf file on a different computer the font is automatically replaced by Adobe Reader

We have attached the xml template, font file and resulting pdf. Also copied xml template in post body
Could you let us know why the font file is not being embedded in the pdf output ? Thanks

<?xml version="1.0" encoding="utf-8" ?>


<Table MarginTop=“1.0cm” MarginLeft=“2.0cm” ColumnWidths=“12 9” FontSize=“18” FontName=“Santos” IsFontEmbedded=“True” IsTrueTypeFontBold=“true” Color=“Blue”
DefaultCellPaddingTop=“0” DefaultCellPaddingLeft=“0” DefaultCellPaddingRight=“0” DefaultCellPaddingBottom=“0”>

Hi there,

Thanks for your inquiry. We have checked your PDF file(santos.pdf), Santos font is embedded property. I have viewed your shared PDF file before and after installing the font and unable to find any difference. Please share screenshot of PDF file changing font and Adobe Reader version to investigate it further.

We are sorry for the inconvenience caused.

Best Regards,