'Apache PDFBox unable to render german umlauts characters while converting Pdf to Image

We are using apache PDFBox opensource library to convert PDF to Image but it's failing to render German Umlauts – ä, ö, ü characters when the pdf is converted as Image file on the Linux servers. Works well from windows based machines but not working properly from a linux based machine. This looks to be due to the missing fonts on the Linux machine. Is there a way to ship the font library along with our application (war file) and use the font library from the classpath and make it available for PDFBox? If this isn't right approach pls suggest any alternative(s)

Thanks, PDF to Image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source