6750383: 2D_PrintingTiger\PrintDocOrientationTest fails, wrong orientated images are printed

Reviewed-by: campbell, prr
This commit is contained in:
Jennifer Godinez 2009-02-24 14:32:17 -08:00
parent d83e26cba4
commit 34f01f340e
2 changed files with 8 additions and 2 deletions

View File

@ -661,6 +661,12 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
}
}
} 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;
OrientationRequested[] orientSup = null;

View File

@ -362,10 +362,10 @@ public class UnixPrintJob implements CancelablePrintJob {
mOptions += " number-up="+nUp.getValue();
}
if (orient == OrientationRequested.LANDSCAPE &&
if (orient != OrientationRequested.PORTRAIT &&
(flavor != null) &&
!flavor.equals(DocFlavor.SERVICE_FORMATTED.PAGEABLE)) {
mOptions += " landscape";
mOptions += " orientation-requested="+orient.getValue();
}
if (sides != null) {