8016737: After clicking on "Print UNCOLLATED" button, the print out come in order 'Page 1', 'Page 2', 'Page 1'
Reviewed-by: jchen, prr
This commit is contained in:
parent
851063935c
commit
701d77dfd1
@ -1029,8 +1029,17 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
|
||||
// now supports collation and that most OS has a way
|
||||
// of setting it, it is a safe assumption to just always
|
||||
// include SheetCollate as supported attribute.
|
||||
|
||||
/*
|
||||
In Linux, we use Postscript for rendering but Linux still
|
||||
has issues in propagating Postscript-embedded setpagedevice
|
||||
setting like collation. Therefore, we temporarily exclude
|
||||
Linux.
|
||||
*/
|
||||
if (!UnixPrintServiceLookup.isLinux()) {
|
||||
catList.add(SheetCollate.class);
|
||||
}
|
||||
}
|
||||
|
||||
// With the assumption that Chromaticity is equivalent to
|
||||
// ColorSupported.
|
||||
|
@ -123,6 +123,10 @@ public class UnixPrintServiceLookup extends PrintServiceLookup
|
||||
return osname.equals("SunOS");
|
||||
}
|
||||
|
||||
static boolean isLinux() {
|
||||
return (osname.equals("Linux"));
|
||||
}
|
||||
|
||||
static boolean isBSD() {
|
||||
return (osname.equals("Linux") ||
|
||||
osname.contains("OS X"));
|
||||
|
Loading…
Reference in New Issue
Block a user