--- old/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2016-09-16 15:41:04.973254152 +0530 +++ new/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2016-09-16 15:41:04.381254152 +0530 @@ -1476,6 +1476,18 @@ throw new PrinterException("Printer is not accepting job."); } + /* + * Check the default job-sheet value on underlying platform. If IPP + * reports job-sheets=none, then honour that and reset noJobSheet since + * by default, noJobSheet is false which mean jdk will print banner page. + * We do this before setAttributes() as user can override this by enabling + * printing Banner page through print dialog via setAttributes(). + */ + JobSheets js = (JobSheets)psvc.getDefaultAttributeValue(JobSheets.class); + if (js != null && js.equals(JobSheets.NONE)) { + noJobSheet = true; + } + if ((psvc instanceof SunPrinterJobService) && ((SunPrinterJobService)psvc).usesClass(getClass())) { setAttributes(attributes);