PDF line spacing is different in Windows and IBM i

0

Hello everyone,

I am using jasperreports 6.8.0 with itext-2.1.7.js6.jar and itext-asian-5.2.0.jar.
When export a pdf report in local environment (Windows 10, WebSphere Application Server traditional 9.0), it works correctly. But export in server environment (IBM i 7.3, WebSphere Application Server traditional 9.0), some text fields could not show data and becomes blank.
Seems like line spacing setting does not work properly, space between two lines in report exported form server environment is wider than local one.
I am using lineSpacing = "Fixed" and lineSpacingSize = "8.0".

I would like to request any suggestions to resolve this.
Thanks in Advance.

o_AungMyaMaw's picture
Joined: Aug 13 2019 - 12:22am
Last seen: 2 weeks 1 day ago

4 Answers:

0

Could it be a difference in the deployed fonts?

Do the reports look correct in Studio?

swood_1's picture
599
Joined: Nov 15 2012 - 10:47am
Last seen: 10 hours 40 min ago
0

Thank you for reply.

Could it be a difference in the deployed fonts?
>> I deployed same fonts (MS Mincho.ttc, MS Gothic.ttc) and font face is exactly same in both reports.
    Although using same font, some fields can display and so could not.
    It could display if discreased the font size or increased the height of label/text field.
   
    PS. In IBM i 6.1, it works correctly. Facing this problem after upgraded to IBM i 7.3.

Do the reports look correct in Studio?
>> Yes, it look correct.

o_AungMyaMaw's picture
Joined: Aug 13 2019 - 12:22am
Last seen: 2 weeks 1 day ago
0

Have you already tried to toggle the special export property at report level: 

net.sf.jasperreports.export.pdf.force.linebreak.policy

perhaps that helps!?

hth + regards

C-Box

C-Box's picture
1945
Joined: Jul 19 2006 - 5:58pm
Last seen: 6 days 14 hours ago
0

C-Box

Thank you for your advice.
I also tried the linebreak.policy and the result was same.

I tried to use .ttf font instance of .ttc and it works properly.
Refered the below link:
https://community.jaspersoft.com/wiki/custom-font-font-extension

But font was garbled for MS Gothic.ttf and now trying to solve this.

o_AungMyaMaw's picture
Joined: Aug 13 2019 - 12:22am
Last seen: 2 weeks 1 day ago
Feedback