Changeset 659 for tea4cups/trunk/README
- Timestamp:
- 09/29/05 00:45:28 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/README
r645 r659 24 24 25 25 Tea4CUPS 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.26 modify print jobs' datas as they pass through it and to transparently 27 send them to any number of outputs : other CUPS backends, files or pipes. 28 28 29 29 This for example allows you to output the same print job on several … … 37 37 commands into the very last stage of CUPS' filtering chain. 38 38 39 Tea4CUPS provides two ways to launch commands : 39 Tea4CUPS 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. 40 46 41 47 - prehooks : these are guaranteed to be launched before the 42 48 print job is sent to the real printer. 43 49 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. 45 52 46 53 - posthooks : these are guaranteed to be launched after the 47 54 print job has been sent to the real printer, 48 55 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. 50 58 51 59 To help your own commands, Tea4CUPS makes available as part of the 52 60 environment several variables which can be used from the 53 commands you use :61 commands you use in pre and post hooks : 54 62 55 63 TEAPRINTERNAME : The print queue name. … … 70 78 posthooks, obviously. 71 79 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 75 82 NB : Tea4CUPS requires a version of Python >= 2.1 76 83