Java – Jasper Reports: multi line text field

jasper-reportsjava

I'm generating a pdf report with Jasper Reports 3.1.2. I have a multi line text field that contains several lines: this field is split over 2 consecutive pages.
The problem is that on AiX and Linux systems the last line in the first page is always missing (on Windows systems everything is fine). I've tried modifying margins, sizes and fonts but nothing happens: the last line of the first page is always missing

Any idea?

Thanks in advance

Best Answer

What font are you using? Problems like this are usually† caused by fonts not being available. Use font extensions to ensure that you know what font is being used, and then it should render well everywhere.

Also make sure to set this in jasperreports.properties:
net.sf.jasperreports.awt.ignore.missing.font=false

That's great for testing since it catches missing fonts immediately.

†By "usually" I mean "so often that it's indistinguishable from always". But of course it's theoretically possible that there is some other source in this case.

Related Topic