[cups.general] lpr style filter chains

Michael R Sweet msweet at apple.com
Mon Feb 23 13:08:17 PST 2009


dietz proepper wrote:
> ...
> Is there an easy way to accomplish something similar
> with cups? Either by having different queues that speak
> to the same printer and get preprocessed somehow or
> by setting some options for print jobs that get evaluated
> by a custom filter? Or anyhow else?

CUPS already includes filters for doing most things you'd do with
lpr (the missing stuff has to do with ditroff output and a few
other obscure formats, but those can be added using system-specific
filter scripts registered with CUPS...)

You can setup multiple queues or use instances to define variants
of the same queue, e.g.:

     lpoptions -p MyPrinter/duplex -o sides=two-sided-long-edge
     lpoptions -p MyPrinter/2up -o number-up=2

Then when you print you just specify the instance, e.g.:

     lp -d MyPrinter/duplex filename
     lpr -P MyPrinter/2up filename

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list