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

Strange line breaks


abtrapp

Recommended Posts

Hi!

When I create a report, compile it in Java and create a PDF in a static text or textfield (that is more than long enought):

  • text "XXX" is rendered "XX (newline) X"
  • text "XXXX" is rendered "XXX (newline) X"
  • text "XXXXX" is rendered "XXXX (newline) X"
  • text "XXXXXX" is rendered "XXXXX (newline) X"
  • text "aaaaa" is rendered "aaaa (newline) a"
  • text "Hugo Boss" is rendered "Hugo Boss"

I am using Jasper Reports 4.0.2 / iReport 4.0.2 on OS X Snow Leopard.

This occures in the PDF preview from OS X and Adobe Acrobat Reader, the iReport preview shows the text correct...

I can't force all customers to use the internal iReport renderer, so is there any way to produce correct PDFs???

 

Anybody any idea???

Thank you very much in advance!

Regards,

Anton Trapp

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This is something else that also started happening to me with version 4.0.2. Was not a problem with 4.0.1. In my case, what was rendered as:

"Page X of Y" where "Page X of" was a right justified field and "Y" was an adjacent left justified field, is now rendered as follows no matter how wide or separated I made these two fields:

 

"Page X of
                  Y"

 

 

Link to comment
Share on other sites

 I've had the same problem in the past week and posted a similar question.

A work around I found that helps is adding a blank space at the end of the field, see the code below I put in for "Text Field Expression".  Seems to help.

Code:
$F{MUNICIPALITY} + "  "
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...