Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315376

JavaFX: Add Printer.printableArea(Paper) method

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • tbd
    • javafx
    • None
    • source, binary, behavioral
    • minimal
    • No compatibility issues.
    • Other

      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.

            fkirmaier Florian Kirmaier
            fkirmaier Florian Kirmaier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: