Jump to content

Extra line spacing when using isStretchWithOverflow=true


andrey_nado

Recommended Posts

Hello!

I'm building report with isStretchWithOverflow="true". In most cases it works fine, and height of the report line fits the amount of text data.

But sometimes text field is followed by empty line, the text perfectly fits one line though. I found that when text is exactly as wide as column (no need for wrapping and no space remaining to the right of text), it is followed by empty line.

How can I elimitate this?

Regards,

Andrey

 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

I changed <font> definition to following:

<font fontName="arialbd.ttf" pdfFontName="arialbd.ttf" size="9" isBold="true"/>

As far as I understand, "fontName" attribute links to the font used for report building, and "pdfFontName" is simply the name of the font to be embedded into PDF document. Now these two fonts are identical (refer to the same TFF file). My problem still exists.

I also tried to turn on option net.sf.jasperreports.export.pdf.force.linebreak.polic and it didn't help. What can I do else?

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...