RFR: 8297191 : [macos] printing page range "page 2 to 2" or "page 2 to 4" on macOS leads to not print

Alisen Chung achung at openjdk.org
Wed Jun 26 20:33:10 UTC 2024


On Fri, 21 Jun 2024 14:46:33 GMT, Renjith Kannath Pariyangad <rkannathpari at openjdk.org> wrote:

> Yes, there is some disconnect. For all OS (MAC with above changes) print range is working properly only with following values firstPage =0 and lastPage =-1 at **RasterPrinterJob.java** and highly depend on **pageRangesAttr** . I don't think there is any issue with native code, with this change I have brought MAC same as other OS.

Shouldn't the solution then be to fix the issue with RasterPrinterJob.java not working properly with correct firstPage and lastPage values? It also looks like the indices are different between macOS and java. Perhaps there's code somewhere that should have but hasn't converted the indices over?

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

PR Comment: https://git.openjdk.org/jdk/pull/19740#issuecomment-2192573235


More information about the client-libs-dev mailing list