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

Free Support Forum - aspose.com

IOException could not find Century Gothic#1

Hi,


I have the following exception trace:

SEVERE: Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.RuntimeException: Throwable in generateEUA
: locale=en_US: Font ‘CenturyGothic#1’ not found. Please make sure the customer font file is correctly set.] with root cause
java.lang.IllegalStateException: Font ‘CenturyGothic#1’ not found. Please make sure the customer font file is correctly set.
at aspose.pdf.internal.z152.m1(Unknown Source)
at aspose.pdf.pdftext.FontManager.m3(Unknown Source)
at aspose.pdf.pdftext.FontManager.m1(Unknown Source)
at aspose.pdf.internal.z168.m1(Unknown Source)
at aspose.pdf.internal.z168.m1(Unknown Source)
at aspose.pdf.internal.z242.m1(Unknown Source)
at aspose.pdf.internal.z211.m1(Unknown Source)
at aspose.pdf.internal.z232.m1(Unknown Source)
at aspose.pdf.xml.DocumentBase.m1(Unknown Source)
at aspose.pdf.internal.z206.m1(Unknown Source)
at aspose.pdf.Pdf.m1(Unknown Source)

It seems that when I changed the font in my XML dom to “Arial”, it didn’t have any problem. Is there any bug for PDF class that I should be aware of?

KR,

After futher investigation, it seems that the host machine didn’t have the font installed, Arial worked because arial was indeed installed.

Hi there,


Thanks for your feedback. I am afraid I am not clear whether you have managed to resolve the issue. If after installing the Century Gothic font issue persist then please share share your sample code and input document here, we will look into it and guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,