Re: [OpenJDK 2D-Dev] Clarification regarding PageFormat and Paper getImageable* functions orientation consideration

2021-03-23 Thread Alexey Ivanov
Hi Rajat, I agree with Phil. Both PageFormat [1] and Paper [2] have getImageable*() methods. The spec for each of these methods in PageFormat states, “This method takes into account the orientation of the page.” The implementation confirms this statement. Yet the spec for Paper does not

Re: [OpenJDK 2D-Dev] Clarification regarding PageFormat and Paper getImageable* functions orientation consideration

2021-03-22 Thread Philip Race
There's no bug here from what I am being shown. >"PageFormat showing wrong printer margins in LANDSCAPE orientation” . Really ? But I don't see anywhere the PageFormat is queried for this. Instead the test case digs inside the PageFormat and retrieves the Paper and asks for *its* margins I

[OpenJDK 2D-Dev] Clarification regarding PageFormat and Paper getImageable* functions orientation consideration

2021-03-22 Thread Rajat Mahajan
Hi all, Issue: I am working on https://bugs.openjdk.java.net/browse/JDK-8203395 and this bug is about "PageFormat showing wrong printer margins in LANDSCAPE orientation" . Application code it trying to print in Landscape and Portrait but both show same margins: Margins default : 12,12,17,17