I have a problem with text wrapping in pdf format. For all formats, such as xls, rtf and pptx, the report works fine, but some text is wrapped in pdf, i.e. Some letters of the text, especially the last few letters, will be printed on the next line. I tried almost all the options in the properties for this text. The only way to reduce the effect is to change the pdf font name to roman time for this text. However, even this does not work in some cases.
The snippet contains a TextField problem:
<textField isBlankWhenNull="true"> <reportElement positionType="Float" x="560" y="0" width="60" height="20"/> <box leftPadding="2"> <pen lineWidth="0.5"/> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textElement> <font fontName="Arial Unicode MS" isPdfEmbedded="false"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{CustState}]]> </textFieldExpression> </textField>
I would really appreciate it if you share some solutions for this. Thanks...
Ps I get this problem when I create a report from Ireport 4.0.2
source share