> **Description:** > The PR updates sun.print.CUPSPrinter's behavior in terms of reading media > imageable area values according to the PostScript Printer Description File > Format Specification. > The actual implementation reads X and Y coordinates of the upper right corner > of the imageable area as width and height of the imageable area. > https://bugs.openjdk.org/browse/JDK-8344119 > > **Updates:** > Added subtraction of the X and Y coordinates of the lower left corner to fix > the width and height values of the imageable area. > > **Tests:** > Tested with `test/jdk/javax/print/DialogMargins.java` using Brother > DCP-T720DW, the test draws a black line along the borders of the imageable > area. > The test was run with the minimum possible margins. > _Before the fix_: the right and bottom lines are not printed (the right and > bottom lines are outside the printable area). > _After the fix_: all lines are printed.
GennadiyKrivoshein has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits: - Merge branch 'openjdk:master' into PPDImageableArea - Merge branch 'master' into PPDImageableArea - update copyright year - add imageable area test - move updates to the CUPSfuncs.c - Merge branch 'openjdk:master' into PPDImageableArea - margins calculation does not meet PostScript standard ------------- Changes: https://git.openjdk.org/jdk/pull/22110/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22110&range=03 Stats: 261 lines in 2 files changed: 257 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/22110.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22110/head:pull/22110 PR: https://git.openjdk.org/jdk/pull/22110