We are generating a PDF file using templates created in iReport designer. We are passing some dynamic text from java code to be printed in PDF. For each field we have defined some width.
The word wrapping works well in case of normal characters and also few special characters expect ! % ( ) - [ ] ; : " , . ?. When the last word exceeds the max length, the word is breaking at the special character and going into the next line.
Example: contribution(s), the word is breaking at ( and it is printed as contribution in line1 and (s) in line2. For this field the length is 115 and ( is the 116th character, so it broke at the ( and went onto newline. This is happening only with the character mentioned above.
Please let us know if this is a bug or is it considering these characters as soft returns? How the word processing works in Jasper reports.
Also please let us know if more information is required.