[cups] Acquire paper and tray info

Paul Mitchell pmitchel at email.unc.edu
Mon Jan 12 13:41:45 PST 2015


OK, Johannes, I'm close (I think)!

in /usr/lib/cups/filter/PsPrefilter:

#! /bin/bash
  # see "man 7 filter"
  # debug info in /var/log/cups/error_log
  set -x
  # have the input at fd0 (stdin) in any case
  [ -n "$6" ] && exec <"$6"
  # prefiltering
  sed -e 's/Orientation: Landscape/Orientation: Portrait/'

/usr/share/cups/mime/mime.convs:

application/postscript application/postscript-prefiltered 10 PsPrefilter 
application/postscript-prefiltered application/vnd.cups-postscript 66 pstops
#application/postscript application/vnd.cups-postscript 66 pstops

/usr/share/cups/mime/mime.types, added below the applitcation-postscript 
definition:

application/postscript-prefiltered
(without any arguments).

I then send a typical print job to the moe_test queue, and
CUPS correctly identifies it as "application/postscript", however,

D [12/Jan/2015:16:27:25 -0500] Print-Job 
http://samdev-pnet03.itcc.unc.edu:631/printers/moe_test D

[12/Jan/2015:16:27:25 -0500] [Job ???] Auto-typing file... I

[12/Jan/2015:16:27:25 -0500] [Job ???] Request file type is 
application/postscript.

D [12/Jan/2015:16:27:25 -0500] Print-Job 
client-error-document-format-not-supported: Unsupported format 
'application/postscript'!

E [12/Jan/2015:16:27:25 -0500] Returning IPP 
client-error-document-format-not-supported for Print-Job 
(http://samdev-pnet03.itcc.unc.edu:631/printers/moe_test) from 
152.X.XX.XX

D [12/Jan/2015:16:27:25 -0500] cupsdSetBusyState: Not busy

It seems that the system has forgotten what to do with 
"application/postscript" event though we're telling it what to do in the 
mime.convs!  ANyideas?

Paul Mitchell

==============================================================================
         Paul Mitchell
 	ITS Systems
         email: pmitchel at email.unc.edu
 	location: 440 Franklin, cubby 1512, CB#1150
 	desk phone: 919 445-0063
==============================================================================



More information about the cups mailing list