[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    RFR: 8311033: [macos] PrinterJob does not take into account Sides attribute
From:       Alexander Scherbatiy <alexsch () openjdk ! org>
Date:       2023-06-30 10:08:31
Message-ID: -x_HMc_ircmNeuuzRlxELE1PFyLXKgqbq2O501iP4fY=.b479106e-2e5d-4f80-bdd9-4761c2d18260 () github ! com
[Download RAW message or body]

To reproduce the issue run the \
[JavaSidesAttributePrinting](https://bugs.openjdk.org/secure/attachment/104448/JavaSidesAttributePrinting.java) \
java sample with ONE_SIDED and DUPLEX arguments on macOS:

java JavaSidesAttributePrinting ONE_SIDED
java JavaSidesAttributePrinting DUPLEX


The sample calls PrinterJob print method with the given sides attribute.
The pages are printed according to the printer default settings not according to the \
provided Sides attributes.

The fix propagates Sides attribute
- from `PrinterJob` to `NSPrintInfo` in `CPrinterJob.javaPrinterJobToNSPrintInfo` \
                method
- from `NSPrintInfo` to `PrinterJob` in `CPrinterJob.nsPrintInfoToJavaPrinterJob` \
method

-------------

Commit messages:
 - 8311033: [macos] PrinterJob does not take into account Sides attribute

Changes: https://git.openjdk.org/jdk/pull/14727/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14727&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8311033
  Stats: 288 lines in 4 files changed: 288 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/14727.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14727/head:pull/14727

PR: https://git.openjdk.org/jdk/pull/14727


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic