Free Support Forum - aspose.com

Getting "Invalid font name" exception when searching a document with RegEx

Hello,

I have code that is in production and has been working using Aspose.PDF to search for replaceable words and build an output pdf based on the source template read. One source document a customer used has an issue, where I call the Visit function of TextFragmentAbsorber, and Aspose.PDF throws a “Invalid font name” exception.

My questions are:

  1. Is there a list of unsupported fonts?
  2. Is there a list of supported font?

Thank You,

Michael W. Kelley

@mkelley

Thanks for contacting support.

Aspose.PDF supports 14 Microsoft Essential Core Fonts as well as others. There is no such limitation in supporting other fonts however, some specific fonts require license in order to work correctly. In such cases, we investigate the scenario and check the feasibility whether such support can be added to the API or not.

We request you to please share your sample PDF document along with minimal code snippet to reproduce the issue. We will test the scenario in our environment and address it accordingly.