[cups.general] CUPS 1.2.7: definitions in .convs and.types not working (SOLVED)

Michael R Sweet msweet at apple.com
Wed Jan 28 09:33:41 PST 2009


Michael Leimann wrote:
>> Michael Sweet wrote:
>> ...
>> An alternative is to simply wrap the pstops filter with your script,
>> and then (on the server only) provide your .convs file that claims to
>> filter from application/postscript to application/vnd.cups-postscript
>> faster (lower cost) than pstops.
> 
> We have tried to research this. No success.
> 
> Can you give a hint how to do this? Just point into the direction (sample, link). Do not want to waste your time, you offered great help with our problem.

In your .convs file use:

     application/postscript application/vnd.cups-postscript 0 
/path/to/your/script

and then in your script write your output into a temp file.  After
you have processed the file, run pstops with the temp file as
input, e.g.:

     TEMPFILE="$TMPDIR/scriptname.$1"
     ... do stuff to send output to $TEMPFILE
     /usr/lib/cups/filter/pstops "$1" "$2" "$3" "$4" "$5" "$TEMPFILE"
     rm -f "$TEMPFILE"

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list