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

Free Support Forum - aspose.com

Issue with FontAbsorber

I am trying to get the font list from PDF. With every run, the objFontAbsorber.Visit(objPdfDocument) is returning same count of fonts (50 in my case). When I try to get distinct fonts from the FontCollection object, I am getting different counts for same PDF. Sometimes it is 9, sometimes 10 and sometimes 11. It’s weird. Can you please suggest something into this?

The code for the same is given below.

List fontList = new List();
Document objDocument = new Document(this.PdfPath);
FontAbsorber objFontAbsorber = new FontAbsorber();
foreach (Aspose.Pdf.Text.Font font in objFontAbsorber.Fonts)

return fontList;

The PDF document is attached.

I need an urgent response, please help me out.

Hi Veeramanikandan,

Thanks for contacting support.

I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWNET-38107 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.