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

Free Support Forum - aspose.com

Cannot find any fonts installed on the system (Spark application)

I am attempting to use the Aspose.PDF java version to convert PDF into HTML, but I get this message: “Cannot find any fonts installed on the system”. When I get go to the value from FontRepository.getLocalFontPaths(), I get an empty list. Is there anyway to do the conversions without any font on the system at all? I am running this in a Spark application using Hadoop YARN for the cluster manager and using Scala for the language.

Thank you.


Please note that API requires fonts to be installed while processing the documents. You can copy all Windows Essential Fonts in your environment and try to use the API. In case you want to set the font folder path, you can use setLocalFontPaths(List<String> newFontPathsList) method.

Ok, just making sure that was the case. Thank you for your response @asad.ali.

1 Like