clucas Posted October 5, 2009 Share Posted October 5, 2009 I have a report field that can have data in it where there are no spaces for a long run a characters. For example 'Color: green,red,blue,black,white,yellow,pink,maroon'. (There is a space after the colon) I see different line breaking behavior in JasperViewer versus the result in a PDF. This is with net.sf.jasperreports.export.pdf.force.linebreak.policy set to true. Also, to the best of my knowledge the fonts are the same. In JasperViewer the above example will break at after the comma that follows the word yellow while in the PDF the line break is where the space is after the colon. In other words it looks like this --In JasperViewerColor: green,red,blue,black,white,yellow,pink,maroon As a PDFColor:green,red,blue,black,white,yellow,pink,ma This is causing a problem because the last part of the field is getting cut off. Notice how the word maroon is truncated. Is there any way I can prevent my data from being truncated in a PDF? Is this expected line breaking behavior even with net.sf.jasperreports.export.pdf.force.linebreak.policy set to true? Is there a different parameter to get the two rendering systems to line break the same? Anything else I should try? I have attached the jrxml file that demonstrates this problem. Link to comment Share on other sites More sharing options...
crazybugs Posted October 12, 2009 Share Posted October 12, 2009 One problem might be difference in font names between Jasper Viewer and pdf format. Link to comment Share on other sites More sharing options...
rodrigogouveia Posted March 7, 2014 Share Posted March 7, 2014 clucas, did you fix the problem? I am facing the same problem. Even with the net.sf.jasperreports.export.pdf.force.linebreak.policy property set to true, the break lines calculated at report filling are different from the breaks in PDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now