enable lp(1)'s generic postprocessor to handle microsoft office documents with help of doc2ps(1). Reference: /n/sources/patch/applied/lp-doc2ps Date: Thu May 13 14:04:20 CES 2010 Signed-off-by: yarikos@gmail.com --- /sys/lib/lp/process/generic Thu May 13 14:02:29 2010 +++ /sys/lib/lp/process/generic Thu May 13 14:02:26 2010 @@ -178,6 +178,17 @@ case * echo Unrecognized class of line printer for $LPDEST >[1=2] } +case microsoft # office document + switch ($LPCLASS) { + case *post* + doc2ps $temp | $proc/post + case *gs!* + doc2ps $temp | $proc/post | $proc/gspipe + case *gsijs!* + doc2ps $temp | $proc/post | $proc/gspipeijs + case * + echo $type(2) file is improper for $LPDEST >[1=2] + } case empty echo file is empty >[1=2] case cannot