Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311033

[macos] PrinterJob does not take into account Sides attribute

XMLWordPrintable

    • 2d
    • b09
    • os_x

        PrinterJob class with sides attribute prints pages according to the printer default settings.

        Steps to reproduce:
        - Compile the attached JavaSidesAttributePrinting.java sample which passes a sides attribute provided as the program argument to the PrinterJob and prints 2 pages.
        - Run the sample with the ONE_SIDED and DUPLEX argument:
        --------------------------
        > javac JavaSidesAttributePrinting.java
        > java JavaSidesAttributePrinting ONE_SIDED
        > java JavaSidesAttributePrinting DUPLEX
        --------------------------

        Expected result:
        The first two pages should be printed as one sided.
        The second two pages should be printed as duplex.

        Actual result:
        All pages are printed as one sided or duplex according to the printer default settings.

              alexsch Alexandr Scherbatiy
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: