![]() ![]() Your findings could look similar to the following: D Auto-typing file.ĭ Request file type is image/jpeg. Then, look in the CUPS log file (*/var/log/cups/error_log*) for the lines containing the following strings: Auto-typing file. You should first enable LogLevel debug (edit /private/etc/cups/nf and restart the CUPS print service). However, the error message suggests that CUPS (the Mac OS X print subsystem) tries to run the printjob through either pstopdffilter (a utility that converts PostScript to PDF) or through pstocupsraster (a utility that converts PostScript to CUPS-raster). You say you're "trying to print a JPEG file". Throw new RuntimeException("No printer services available.") įileInputStream fin = new FileInputStream(graphicFile) ĭoc doc = new SimpleDoc(fin, DocFlavor.INPUT_STREAM.JPEG, null) PrintService pss = PrintServiceLookup.lookupPrintServices( PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet() Public void printGraphic(File graphicFile) throws PrintException, The error message: Error: pstopdffilter/pstocupsraster failed with err number 31000Ī Gooogle search brings suggestions that seem to hint that the problem is not directly to Java When trying to print a JPEG file with the Java code below on Mac OS X 10.8.0 I get
0 Comments
Leave a Reply. |