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

Free Support Forum - aspose.com

Function FindFont() throws exception "Parsing of table 'GDEF' has failed."

Dear support team,

two of our customers (and only them, out of thousands) receive this exception:

Parsing of table ‘GDEF’ has failed.

bei . ()
bei .[1] 1

bei .1
bei Aspose.Pdf.Text.FontRepository.FindFont(String fontName)
bei Business.PdfGenerator.SetFirstPageInfo(Document doc)
bei Business.PdfGenerator.PostProcess(String pdfFile, XmlNode xmlData)
bei Business.PdfGenerator.CreatePdf(String templateXml, String dataXml)

The exception occurs in this function:

private static void SetFirstPageInfo(Document doc)
DefaultAppearance defaultAppearance = new DefaultAppearance(FontRepository.FindFont(“Arial”), 8, Color.Green);
Page firstPage = doc.Pages[1];

We have absolutely no idea what might be causing this problem. May it be worth noting that at least one of the customers have their own fonts installed? Could there be something wrong with their fonts?

We use version v4.0_11.7.0.0 of Aspose.Pdf.dll.

Any help would be invaluable for us! Thank you very much in advance!

Eckhard Zucker


Thanks for contacting support.

We have tested the scenario in our environment with our sample PDF, while using latest version of the API, i.e. Aspose.PDF for .NET 18.6, and we were unable to notice the issue that you have shared. Please note that we always recommend to use latest version of the API, as it contains more fixes and enhancements.

Would you please try the scenario using latest version and in case you still face issue, please share a sample PDF document, along with complete code snippet, which is able to replicate the issue. We will test the scenario in our environment and address it accordingly.