JDK-8164733 : PageRanges are not set on MacOS
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8u76
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2016-08-24
  • Updated: 2016-08-25
  • Resolved: 2016-08-25
Related Reports
Duplicate :  
Description
Reproducible: always
Platform-specific: yes, MacOS only. Works fine on Windows with native dialog and Linux with swing print dialog.
Testsuite: FXSceneGraphTests
Test name: test/manual/printing/NativePrintDialog.java
Platform: Mac10.11, JDK8u112b09 amd64
Is it a Regression: No (OS-version dependent?)

Steps to reproduce:
1. Run attached sample
2. Click "Print" button, change printed page ranges and click print button (page will not be printed)
Expected result (Windows, Linux): page ranges  printed to stdout.
Actual result: "Empty ranges" in stdout, job.getJobSettings().getPageRanges() is null.

Comments
This is a duplicate of the underlying JDK/2D printing bug on OSX https://bugs.openjdk.java.net/browse/JDK-8061258 which is resolved in JDK 9 b116
25-08-2016

We test the case on Mac10.11-x64-jdk9b133-64bit,PageRanges are set. for example,when changing printed page ranges from 1 to 3,the page ranges value is javafx.print.PageRange@5946fee1.
25-08-2016

Not reproducible with 9b132
25-08-2016

Does this also happen with JDK 9?
24-08-2016