RFR: 8297191: [macos] printing page range "page 2 to 2" or "page 2 to 4" on macOS leads to not print
Tibor Malanik
duke at openjdk.org
Mon Jan 2 08:42:58 UTC 2023
On Mon, 21 Nov 2022 14:32:50 GMT, Christian Heilmann <duke at openjdk.org> wrote:
> 8297191: [macos] printing page range "page 2 to 2" or "page 2 to 4" on macOS leads to not print
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.
-------------
PR: https://git.openjdk.org/jdk/pull/11266
More information about the client-libs-dev
mailing list