6750383: 2D_PrintingTiger\PrintDocOrientationTest fails, wrong orientated images are printed
Reviewed-by: campbell, prr
This commit is contained in:
parent
d83e26cba4
commit
34f01f340e
@ -661,6 +661,12 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (category == OrientationRequested.class) {
|
} else if (category == OrientationRequested.class) {
|
||||||
|
if (flavor.equals(DocFlavor.INPUT_STREAM.POSTSCRIPT) ||
|
||||||
|
flavor.equals(DocFlavor.URL.POSTSCRIPT) ||
|
||||||
|
flavor.equals(DocFlavor.BYTE_ARRAY.POSTSCRIPT)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
boolean revPort = false;
|
boolean revPort = false;
|
||||||
OrientationRequested[] orientSup = null;
|
OrientationRequested[] orientSup = null;
|
||||||
|
|
||||||
|
@ -362,10 +362,10 @@ public class UnixPrintJob implements CancelablePrintJob {
|
|||||||
mOptions += " number-up="+nUp.getValue();
|
mOptions += " number-up="+nUp.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (orient == OrientationRequested.LANDSCAPE &&
|
if (orient != OrientationRequested.PORTRAIT &&
|
||||||
(flavor != null) &&
|
(flavor != null) &&
|
||||||
!flavor.equals(DocFlavor.SERVICE_FORMATTED.PAGEABLE)) {
|
!flavor.equals(DocFlavor.SERVICE_FORMATTED.PAGEABLE)) {
|
||||||
mOptions += " landscape";
|
mOptions += " orientation-requested="+orient.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sides != null) {
|
if (sides != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user