On Tue, 18 Nov 2025 15:01:14 GMT, Christian Heilmann <[email protected]> wrote:

>> This PR fixes a bug that caused no or the wrong set of pages to be printed 
>> when using page ranges on macOS.
>> 
>> The main fix is to change the 'location' value of the returned NSRange from 
>> the knowsPageRange method to 1 in the native class PrinterView.m.
>
> Christian Heilmann has updated the pull request incrementally with three 
> additional commits since the last revision:
> 
>  - Update PrinterView.m
>  - Update PrinterView.h
>  - Update CPrinterJob.m

As I mentioned previously, I wrote an automatic test which verifies printing 
page ranges: 
[`PageRangesAuto.java`](https://github.com/aivanov-jdk/jdk/blob/b6f8db73461f9de15de6b9b6aeb33f523585f808/test/jdk/java/awt/print/PrinterJob/PageRangesAuto.java).

The `PageRangesAuto.java` test fails without the proposed fix and passes with 
it.

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

PR Comment: https://git.openjdk.org/jdk/pull/11266#issuecomment-3577688690

Reply via email to