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

Free Support Forum - aspose.com

Aspose not reading Custom Fonts

Hi,


I am trying to read fonts from a PDF and its not returning all the fonts. There are some custom fonts it is not reading. I am attaching the fonts that show up in adobe. Please take a look

Thanks

Here is the code snippet:

Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filePath);
foreach (Aspose.Pdf.Page pdfPage in pdfDocument.Pages)
{
if (pdfPage.Resources.Fonts != null)
{
foreach (Aspose.Pdf.Text.Font pageFont in pdfPage.Resources.Fonts)
{
if (!fontList.Contains(pageFont.FontName) && !string.IsNullOrEmpty(pageFont.FontName))
{
if (isEmbeddedFontIncluded)
{
fontList.Add(pageFont.FontName);
}
else
{
if (!pageFont.IsEmbedded)
{ fontList.Add(pageFont.FontName); }
}
}
}
}

foreach (Aspose.Pdf.XForm form in pdfPage.Resources.Forms)
{
if (form.Resources.Fonts != null)
{
foreach (Aspose.Pdf.Text.Font formFont in form.Resources.Fonts)
{
if (!fontList.Contains(formFont.FontName) && !string.IsNullOrEmpty(formFont.FontName))
{
if (isEmbeddedFontIncluded)
{
fontList.Add(formFont.FontName);
}
else
{
if (!formFont.IsEmbedded)
{ fontList.Add(formFont.FontName); }
}
}
}
}
}

}

Hi Pardeep,


Thanks for your inquiry. Please share your sample PDF document here, We will look into it and guide you accordingly.

Best Regards,

Hi,


Here is the sample file.

It has a T3 font and Aspose is not detecting it.
Please take a look and let me know.

Thanks.

Hi Pardeep,


Thanks for sharing the resource file.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38135. We will
investigate this issue in details and will keep you updated on the status of a
correction. <o:p></o:p>

We apologize for your inconvenience.

Hi,


Do you have an update on this?. This is really urgent that we need to read those custom fonts.


Thanks

Hi Pardeep,


Thanks for your patience.

As we recently have been able to notice this issue, so development team requires little time to investigate and figure out the actual reasons of this problem. Please note that as a normal rule of practice, all the issues are resolved in first come first serve basis. As soon as we have some further updates, we will let you know.

The issues you have found earlier (filed as PDFNET-38135) have been fixed in Aspose.Pdf for .NET 17.5.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.