Integrated: 8311033: [macos] PrinterJob does not take into account Sides attribute

Alexander Scherbatiy alexsch at openjdk.org
Fri Jul 28 10:28:55 UTC 2023


On Fri, 30 Jun 2023 10:00:46 GMT, Alexander Scherbatiy <alexsch at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: a3d67231
Author:    Alexander Scherbatiy <alexsch at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a3d67231a71fbe37c509fcedd54c679b4644c0d9
Stats:     335 lines in 4 files changed: 335 ins; 0 del; 0 mod

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

Reviewed-by: prr, serb

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

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



More information about the client-libs-dev mailing list