Jasper Report truncates text before filling the whole text field

前端 未结 1 397
小鲜肉
小鲜肉 2021-01-12 17:20

I\'m having a problem with my PDF report where a String in a text field is truncated before filling the text field. The amount of missing characters (5-6) would not be enoug

相关标签:
1条回答
  • 2021-01-12 18:12

    Why is it different in pdf and iReport designer?

    This is because iText (the library creating your pdf) is doing its "best effort" to render the font you have indicated in jrxml and its not good enough (it is using another font that is bigger...).

    To avoid these problems you need to use font extensions and check your settings on style and textElement

    Checklist to rendered font correctly in pdf

    How to add font extension using iReport

    OP solved as in comment:

    Font extension installed, removing isBold="true" on textElement, since the style set to textElement had isBold="false"

    0 讨论(0)
提交回复
热议问题