Get All Fonts from PDF document in C# | Aspose.PDF for .NET | StackOverFlow Exception

Hi,

I have this pdf file:
SOF.pdf (399.7 KB)

If i load it by Aspose.PDF (version 21.4.0) and call method GetAllFonts then i get exception StackOverFlow.

My C# code is:
using (FileStream msPdf = File.OpenRead(“SOF.pdf”))
{
using (Aspose.Pdf.Document doc = new Aspose.Pdf.Document(msPdf))
{
Aspose.Pdf.Text.Font[] fonts = doc.FontUtilities.GetAllFonts();
}
}

Can you check it please?

@CNS_Developer

We were able to replicate the same issue at our end. Hence, have logged it as PDFNET-49884 in our issue tracking system. We will surely work on resolving the issue and let you know as soon as it is fixed. Please be patient and spare us some time.

We apologize for the inconvenience.

The issues you have found earlier (filed as PDFNET-49884) have been fixed in Aspose.PDF for .NET 23.9.