1 pixel difference in Y axis #124
-
We have switched from Java 8 to 17. Now there's a difference of (I guess) 1 pixel in Y axis. Is there already a solution for this to ignore this difference? jasperreports:6.4.3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is the cause of the problem and there will be no fix for it: https://bugs.openjdk.org/browse/JDK-8215290 So that the transition from Java 8 to Java 17 still works, I modified the jasperPrint object before the PDF file is created and pdfcompare is executed. The leadingOffset values of the JRTemplatePrintText class differ for a JasperReport created with Java 8 and one with Java 17.
|
Beta Was this translation helpful? Give feedback.
-
formula for getting the new value: text.getLeadingOffset() / 1.08364544334f |
Beta Was this translation helpful? Give feedback.
This is the cause of the problem and there will be no fix for it: https://bugs.openjdk.org/browse/JDK-8215290
So that the transition from Java 8 to Java 17 still works, I modified the jasperPrint object before the PDF file is created and pdfcompare is executed.
The leadingOffset values of the JRTemplatePrintText class differ for a JasperReport created with Java 8 and one with Java 17.