In Jasper Reports 2.0.4 and 2.0.5, if a textfield that is set to stretch with overflow causes the band to grow onto multiple pages, the last line of text on the page is sometimes incorrectly wrapped.
If the textfield uses justified textAlignment, the last line of text on the page is sometimes left justified instead of fully justified - as if it were the last line in a paragraph. If the textfield uses left textAlignment, the last line of text on the page sometimes ends well before it needs to.
I have read numerous forum posts, the JasperReports and iReport books, the FAQ, etc. I've ensured that the fontName and pdfFontName are pointing at the same truetype font (arial). I've tried toggling the net.sf.jasperreports.export.pdf.force.linebreak.policy property. I've verified that the problem occurs whether I'm exporting to PDF or using the JasperReports Viewer. I've also tried upgrading to Jasper Reports 2.0.5.
I've attached a sample .jrxml file and the PDF output. Note that at the end of page 3, a paragraph of text spans onto the next page, and rather than fully justifying the text, the last line is left justified. Some other pages in the sample have the problem, and other pages do not.