[OpenJDK 2D-Dev] [9] RFR JDK-6574279: validatePage from PrinterJob returns argument under linux

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Tue Jul 12 12:05:21 UTC 2016

Hi All,

Please review a fix for an issue where it is seen that if user sets 
invalid imageablearea via Paper.setImageableArea and
then calls PrinterJob.validatePage() in linux, then it does not get a 
valid pageformat

Bug: https://bugs.openjdk.java.net/browse/JDK-6574279
webrev: http://cr.openjdk.java.net/~psadhukhan/6574279/webrev.00/

Fix is to check for margin as noted via CUPS ppdPageSize() and then 
calculate to find the valid margin in validatePaper()
similar to what we do in native validatePaper() in windows.


More information about the 2d-dev mailing list