Jump to content
We've recently updated our Privacy Statement, available here ×

Jasper justified text is stretched out


falcon-eu

Recommended Posts

Hi all,

I have following text:

Aaaaaaaa a aaaaaaa aaaaaa aaaaaa a aaaaaa aaaaaaa aaa aa aaaaa aaaaaaaaa aaaa aaaaaaaa aaaaaaaaaaa aa aaa aaaaa aaaaaaaa aaaaa aaa. aa aaaaaaa aaaaaa aaaaaa aaaaaaaa aa aaaaaaa aaaaaa aaaa aaaaaaa, aaaaaa aaaaaaaaaa aaaa:naaaaa aaaaaaaaaaa aa aaaaaaaa aaaaa aaaaat t t t n                                    31.12.2017   31.12.2018naaaa aaaaaaa aaaa aa aaat 0,0000t aa  0,0000 aa naaaa aaaaaaa aaa aa aaat 1,1711t aa  4,0000 aa naaaa aaaaaa aaaaaaaaa aaaa aaaaaaa aaaaaaaaaaa aaaaa aaaaaaaa aa aaaaaa aaaaa aaaaaa aaaaa a aaaa aaaaaaa

This is converted into PDF document and text is stretched out:

<band height="15" splitType="Stretch">   <textField isStretchWithOverflow="true">      <reportElement positionType="Float" stretchType="NoStretch" x="0" y="0" width="490" height="15" uuid="7e24c6a9-5c03-43a5-82ea-151bff88d24a"/>      <textElement textAlignment="Justified">         <font fontName="CustomFont" pdfEncoding="Cp1250"/>      </textElement>      <textFieldExpression><![CDATA[$F{content}]]></textFieldExpression>   </textField></band>

Jasper-pdf-result.png

I would like to have no space between number digits. How to solve this issue? I tried using properties:

<property name="net.sf.jasperreports.export.pdf.justified.letter.spacing" value="false"/><property name="net.sf.jasperreports.export.pdf.force.linebreak.policy" value="true"/>

but not help.

Thank you in advance.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I removed t signs and it works correct now but I have annother issue. When text in some lines are short jasper forced the text to be justified and it looks bad in my opinion. How to prevent justify when text in some lines are short? Thank you in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...