Summary
We sometimes want to access the printable area for a given paper. The printable area is currently defined in com.sun.javafx.print.PrinterImpl and we would like to make it accessible to javafx.print.Printer. We would also return the value in points instead of inches for a more consistent API. This would help us solve more advanced use cases. In our case, we have our own print dialog which requires this information.
Problem
The printableArea is currently not accessible.
Solution
Add a public method to make the printableArea accessible. This makes certain usecases impossible unless the developer abuses reflection.
Specification
Add a method javafx.print.Printer.printableArea(Paper) to the JavaAPI. This method should return the printable Area in points like most of the other API.
- csr of
-
JDK-8315217 JavaFX: Add Printer.printableArea(Paper) method
-
- Closed
-