Changeset 659 for tea4cups/trunk/README

Show
Ignore:
Timestamp:
09/29/05 00:45:28 (19 years ago)
Author:
jerome
Message:

Added filters.
Added the onfail directive to tea4cups.conf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/README

    r645 r659  
    2424 
    2525Tea4CUPS behaves just like any other CUPS backend, but allows you to 
    26 transparently send print jobs' datas to any number of outputs : other 
    27 CUPS backends, files or pipes. 
     26modify print jobs' datas as they pass through it and to transparently  
     27send them to any number of outputs : other CUPS backends, files or pipes. 
    2828 
    2929This for example allows you to output the same print job on several 
     
    3737commands into the very last stage of CUPS' filtering chain. 
    3838 
    39 Tea4CUPS provides two ways to launch commands : 
     39Tea4CUPS provides three ways to launch commands : 
     40 
     41        - filters : A filter can modify the input datas before they 
     42                    are sent to the printer or made available to 
     43                    the pre and post hooks defined below. 
     44                    Currently a single filter can be defined 
     45                    per print queue. 
    4046 
    4147        - prehooks : these are guaranteed to be launched before the 
    4248                     print job is sent to the real printer. 
    4349                     Any prehook which exits -1 can cancel the 
    44                      print job. 
     50                     print job. Any number of prehooks can be 
     51                     defined for a particular print queue. 
    4552 
    4653        - posthooks : these are guaranteed to be launched after the 
    4754                      print job has been sent to the real printer, 
    4855                      unless the job was previously cancelled by a 
    49                       prehook. 
     56                      prehook. Any number of posthooks can be  
     57                      defined for a particular print queue. 
    5058 
    5159To help your own commands, Tea4CUPS makes available as part of the 
    5260environment several variables which can be used from the 
    53 commands you use : 
     61commands you use in pre and post hooks : 
    5462 
    5563        TEAPRINTERNAME : The print queue name. 
     
    7078                    posthooks, obviously. 
    7179 
    72 In the case you want to use both Tea4CUPS and PyKota, you MUST install 
    73 PyKota v1.22alpha2 or higher to avoid a race condition. 
    74  
     80        None of these environment variables is available to filters. 
     81   
    7582NB : Tea4CUPS requires a version of Python >= 2.1 
    7683