Apache PDFBox无法在将PDF转换为图像时呈现德语umlauts字符
我们正在使用Apache PDFBOX OPENSOURCE库将PDF转换为图像,但是当PDF在Linux服务器上转换为图像文件时,它无法渲染德语Umlauts - ä,Ö,ü,ü。从基于Windows的计算机中运行良好,但无法通过基于Linux的机器正常工作。这似乎是由于Linux机上缺少字体。有没有办法将字体库与我们的应用程序(战争文件)一起运送,并使用ClassPath中的字体库并将其用于PDFBox?如果这不是正确的方法,请建议您替代任何替代方法,
谢谢 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有解析特殊符号的问题。但是,就我而言,我认为这与字体无关,而与编码无关。
在设置cossstring时尝试使用不同的编码,对我 ISO_8859 工作:
我正在使用PDFBox 2.0.28:
I had an issue with parsing special symbols as well. However, in my case I believe it had nothing to do with fonts, but rather with encoding.
Try using different encodings when setting COSSString, for me ISO_8859 worked:
I am using PDFBox 2.0.28: