summaryrefslogtreecommitdiff
path: root/gnu/javax/print/ipp/IppPrintService.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/javax/print/ipp/IppPrintService.java')
-rw-r--r--gnu/javax/print/ipp/IppPrintService.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/javax/print/ipp/IppPrintService.java b/gnu/javax/print/ipp/IppPrintService.java
index ce3ef9e15..56a41381f 100644
--- a/gnu/javax/print/ipp/IppPrintService.java
+++ b/gnu/javax/print/ipp/IppPrintService.java
@@ -356,8 +356,17 @@ public class IppPrintService implements PrintService
// should not happen, all fields are public
}
}
+
+ if (this.getClass()
+ .isAssignableFrom(gnu.javax.print.CupsPrintService.class))
+ {
+// CUPS always provides filters to convert from Postscript.
+// This logic looks odd, but it's what OpenJDK does.
+ flavors.add(DocFlavor.SERVICE_FORMATTED.PAGEABLE);
+ flavors.add(DocFlavor.SERVICE_FORMATTED.PRINTABLE);
+ }
}
-
+
// printer uris
Set uris = getPrinterAttributeSet(PrinterUriSupported.class);
printerUris = new ArrayList(uris.size());