Open Ciruman opened 5 years ago
Left side you see the printing from javafx (blurry edges) and on the right side you see the sharp printing with the workaround applied.
Of course instead of using:
((com.sun.javafx.geom.transform.Affine2D)ppg.getTransformNoClone()).scale(1.0001, 1.0001);
could be used: ppg.scale(1.0001, 1.0001);
But the thing is how is the best way to flag it as "durty" during the printing rendering. The screenshots @streifi added are from the same JavaFX application printed to two PDFs using Mac. In Windows the result should be the same(not tested).
Here it is the Issue: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8223372
Does anybody know how could it be fixed? Any hints are welcome.
We are trying to print a Javafx Node with a good resolution and we found out that the javafx prints with a poor resolution(in Mac and Windows). This is related to the following ticket:
https://bugs.openjdk.java.net/browse/JDK-8166194
We found a non-acceptable workarround in the Javafx code:
We added in
J2DPrinterJob.printNode
the following code: ((com.sun.javafx.geom.transform.Affine2D)ppg.getTransformNoClone()).scale(1.1, 1.1); And looks like this:The difference is huge in the javafx controls.
Could someone help us about it?
Source code to reproduce the problem: