Generate PDF files using Aspose.PDF for Java in Linux system - FontNotFoundException occurs

Tried of adding the below code snippet also not working in font.
** Resource resource1 = resourceLoader.getResource(“classpath:files/segoeuisl.ttf”);
com.aspose.pdf.Font myFont = new com.aspose.pdf.FontRepository().openFont(resource1.getInputStream(), 0);**
** myFont.setEmbedded(true);**

com.aspose.pdf.exceptions.FontNotFoundException: The one of the document fonts (Helv) cannot be reused or created.

                         020-04-13 02:14:34.866 INFO 1 --- [nio-8080-exec-5] o.w.r.p.controller.PDFController : Error Occured in downloadPdfForm :::: 

com.aspose.pdf.exceptions.FontNotFoundException: The one of the document fonts (Helv) cannot be reused or created.
at com.aspose.pdf.TextBoxField.lf(Unknown Source)
at com.aspose.pdf.WidgetAnnotation.lI(Unknown Source)
at com.aspose.pdf.Field.updateAppearances(Unknown Source)
at com.aspose.pdf.Field.le(Unknown Source)
at com.aspose.pdf.Field.setValue(Unknown Source)
at com.aspose.pdf.TextBoxField.setValue(Unknown Source)
at org.wb.rap.pdfextractor.controller.PDFController.downloadPdfForm(PDFController.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at

@rameshrajvij,

Thanks for contacting support.

Can you please check and make sure that fonts which you are using in PDF are available in your machine. Also please visit this thread. This will help to load fonts from folder as well.