java.util.ServiceConfigurationError: Provider not a subtype
Background: We have a method in a spring boot application which builds a word doc using aspose and converts it to PDF and returns.
But before converting to pdf, aspose has to load some Arial fonts from resources folder.
This was not happening because of the way we were trying to access the fonts. This was causing alignment issues.