【问题标题】:display unicode character in pdf using jasper 4.0.2使用 jasper 4.0.2 在 pdf 中显示 unicode 字符
【发布时间】:2015-03-11 11:27:24
【问题描述】:

如何使用 jasper 4.0.2 在 pdf 中显示 unicode 字符。我能够生成报告,但字符混淆了。我没有显示字母的顺序。我的 net.sf.jasperreports.default.pdf.encoding 是 Identity-H , net.sf.jasperreports.default.pdf.font.name是 Iskoola Pota,我使用 Iskoola Pota 字体来显示文本。

【问题讨论】:

    标签: java jasper-reports pdf-generation


    【解决方案1】:

    您创建的 jar 是否使用您的字体? 在 iReport “工具 -> 选项 -> 字体 -> 安装字体” 然后将创建的jar加载到jvm

    【讨论】:

    • 是的,我使用 ireport 将 Iskoola.ttf 导出到 jar 中。问题仅出现 PDF。它以 word、html、txt 格式显示正确的顺序。jasper PDF 配置中是否有任何属性要设置?
    • 我为我的所有报告设置了默认样式的 pdf 字体,如下所示:
    猜你喜欢
    • 2018-07-15
    • 2011-12-11
    • 1970-01-01
    • 1970-01-01
    • 2017-05-25
    • 2014-01-14
    • 2018-09-05
    • 1970-01-01
    • 2017-01-05
    相关资源
    最近更新 更多