How can I handle missing fonts when substituting in a Word document with Aspose.Words?

Hi,
I have some fonts missing in my system but when that code is not found it is throwing error,how can i handle this problem using subsitution?

@Amrinder_Singh Aspose.Words does not throw exception if cannot find a font. If Aspose.Words cannot find the font used in the document, the font is substituted. This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

It is throwing Exception (Font fontName not found)
I’m using FontRepository.FindFont() to find the font

@Amrinder_Singh Could you please provide sample code or console application that will allow us to reproduce the problem on our side? We will check the issue and provide you more information. FontRepository.FindFont() is not part of Aspose.Words API.

ok i will, oh sorry it is of Aspose.Pdf

@Amrinder_Singh

We need your sample PDF document along with complete sample code snippet and error + stack trace information. We will log an investigation ticket and share the ID with you.