On Tue, 17 Jan 2023 22:17:09 GMT, Phil Race <p...@openjdk.org> wrote:
>> The problem is noticeable when setPageable on java.awt.print.PrinterJob is >> used. In that case the pageIndex 0 will be used in "PageFormat >> getPageFormat(int pageIndex)" even though user select page 2 to 2 (or 3, 4, >> ..). >> JavaFX printing is based on the given page index, which is in that case >> wrong. > >> The problem is noticeable when setPageable on java.awt.print.PrinterJob is >> used > > So why is the Test.java in the bugreport not using it ? And yet claiming it > shows the problem > > And can we have a test with this fix, even if it is manual, so I can run it > BEFORE and AFTER the fix to verify it. > > Perhaps you can identify an existing failing test that you can reference ? @prrace Issue only occurs on macOS. To reproduce the issue on macOS. Start PageRanges.class from test/jdk/java/awt/print/PrinterJob/PageRanges.java and choose print page range 2-3. The App also works as a standalone. What happens: On macOS only page 3 is printed. What should happen: On macOS page 2 and page 3 is printed. ------------- PR Comment: https://git.openjdk.org/jdk/pull/11266#issuecomment-3078355586