root / pykota / trunk / conf / pykota.conf.sample @ 3162

Revision 3162, 49.5 kB (checked in by jerome, 17 years ago)

Added the 'skipinitialwait' directive to pykota.conf.
This halves the inter-job delay when using hardware accounting
when set.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# PyKota sample configuration file
2#
3#
4# File format :
5#
6#   - A mandatory [global] section :
7#
8#     Contains configuration directives which apply for all printers.
9#     Some directives MUST be set in the [global] section, e.g.
10#     database related directives.
11#
12#   - Any number of optional [PrintQueueName] sections :
13#
14#     Contain directives which apply for a particular print queue only.
15#
16#     Override the values of the same directives present in [global].
17#
18#
19# Directives format :
20#
21#   - Directive's name, followed by ':' followed by the directive's value.
22#
23#   - No leading whitespace : leading whitespace tell the parser that the
24#     current directive is the continuation of the previous one. Use with
25#     care and only when you need it.
26#
27#
28# PyKota - Print Quotas for CUPS and LPRng
29#
30# (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet <alet@librelogiciel.com>
31# This program is free software; you can redistribute it and/or modify
32# it under the terms of the GNU General Public License as published by
33# the Free Software Foundation; either version 2 of the License, or
34# (at your option) any later version.
35#
36# This program is distributed in the hope that it will be useful,
37# but WITHOUT ANY WARRANTY; without even the implied warranty of
38# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39# GNU General Public License for more details.
40#
41# You should have received a copy of the GNU General Public License
42# along with this program; if not, write to the Free Software
43# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44#
45# $Id$
46#
47
48
49#
50# All directives must be placed below the following line
51[global]
52
53
54
55####################################################################
56# SQLite3 : comment this section out if you use another backend    #
57####################################################################
58
59#storagebackend : sqlitestorage
60#storagename: /etc/pykota/pykota.db
61
62####################################################################
63
64
65
66############################################################################
67# PostgreSQL or MySQL: comment this section out if you use another backend #
68############################################################################
69storagebackend: pgstorage
70# storagebackend: mysqlstorage
71
72# Quota Storage Server hostname (and optional port)
73# e.g. db.example.com:5432 (for PostgreSQL) or db.example.com:3306 (for MySQL)
74# NB : leave the directive empty to use unix sockets (same host only)
75storageserver: localhost
76
77#
78# name of the Quota Storage Database
79storagename: pykota
80
81#
82# Quota Storage normal user's name and password
83# These two fields contain a username and optional password
84# which may give readonly access to your print quota database.
85#
86# PLEASE ENSURE THAT THIS USER CAN'T WRITE TO YOUR PRINT QUOTA
87# DATABASE, OTHERWISE ANY USER WHO COULD READ THIS CONFIGURATION
88# FILE COULD CHANGE HIS PRINT QUOTA.
89#
90storageuser : pykotauser
91# In the line below change the password's value if needed.
92storageuserpw : readonlypw
93
94############################################################################
95
96
97
98####################################################################
99# LDAP : comment this section out if you use another backend       #
100####################################################################
101# LDAP example, uncomment and adapt it to your own configuration :
102#
103#storagebackend: ldapstorage
104#storageserver: ldap://ldap.example.com:389
105#storagename: dc=example,dc=com
106#
107# NB : the user and password below are the ones contained in
108# the sample LDIF file pykota/initscripts/ldap/pykota-sample.ldif
109# Please adapt these lines to your own needs.
110#
111#storageuser: cn=pykotauser,dc=example,dc=com
112#storageuserpw: ls88DT5j
113
114
115
116# TLS support for LDAP
117#
118# ldaptls can be set to either Yes or No
119# the default value when not set is No, meaning that TLS won't be used.
120#
121#ldaptls: No
122#
123# cacert points to the CA Certificate file to use for TLS.
124# Ensure that every user who can launch PyKota commands can read this file.
125# There's NO default value for this directive.
126#
127#cacert: /etc/pykota/mycertfile
128
129
130
131# Here we define some helpers to know where
132# to plug into an existing LDAP directory
133# NB : THE DIRECTIVES BELOW MUST BE PRESENT WITH AN LDAP BACKEND
134# BUT YOU ARE FREE TO CHANGE THE VALUES.
135#
136#userbase: ou=People,dc=example,dc=com
137#userrdn: uid
138#balancebase: ou=People,dc=example,dc=com
139#balancerdn: uid
140#groupbase: ou=Groups,dc=example,dc=com
141#grouprdn: cn
142#printerbase: ou=Printers,ou=PyKota,dc=example,dc=com
143#printerrdn: cn
144#jobbase: ou=Jobs,ou=PyKota,dc=example,dc=com
145#lastjobbase: ou=LastJobs,ou=PyKota,dc=example,dc=com
146#billingcodebase: ou=BillingCodes,ou=PyKota,dc=example,dc=com
147
148# These two fields are special, they either accept a branch
149# dn, like an ou for example, or the special keywords 'user'
150# and 'group'. If 'user' or 'group' is used, the print quota
151# entries will be created below the user or group entry itself,
152# which will then be used like a branch (you can mix and match
153# different values depending on what you want to do).
154#
155# NB : YOU MUST CHOOSE A VALUE FOR USERQUOTABASE AND A VALUE
156# FOR GROUPQUOTABASE, BUT ONLY ONE LINE OF EACH MUST BE PRESENT.
157#userquotabase: user
158#userquotabase: ou=UQuotas,ou=PyKota,dc=example,dc=com
159#groupquotabase: group
160#groupquotabase: ou=GQuotas,ou=PyKota,dc=example,dc=com
161
162
163
164# How to create new accounts and groups
165# authorized values are "below" and "attach(objectclass name [, fail|warn])"
166#
167# "below" creates the new accounts/groups as standalone entries
168# below the above defined 'userbase' ou
169#
170# attach(objectclass name [, action]) tries to find some existing user/group
171# using the above defined 'userrdn' or 'grouprdn' and 'userbase'
172# 'groupbase', and attach the PyKota specific entries to it.
173# if action is "warn" and no entry exists to attach to, a new
174# entry is created, and a message is logged.
175# if action is "fail" and no entry exists to attach to, program
176# logs an error message and aborts.
177# if action is not set, the default value is "fail".
178#
179# a possible value:  newuser: attach(posixAccount, warn)
180#
181#newuser : below
182#newgroup : below
183
184
185
186# LDAP attribute which stores the user's email address
187#
188#usermail : mail
189
190
191
192# Choose what attribute contains the list of group members
193# common values are : memberUid, uniqueMember, member
194#
195#groupmembers: memberUid
196
197
198
199# Activate low-level LDAP cache yes/no
200# Nothing to do with "storagecaching" which is higher level
201# and database independant.
202# This saves some search queries and may help with heavily
203# loaded LDAP servers.
204# This is EXPERIMENTAL.
205#
206# BEWARE : SETTING THIS TO 'YES' CAUSES PROBLEMS FOR NOW
207# BETTER TO LET IT SET TO 'NO'
208#
209# ldapcache: no
210
211####################################################################
212
213#############################################################
214# END of database specific directives                       #
215#############################################################
216
217
218
219# Should the database caching mechanism be enabled or not ?
220# If unset, caching is disabled. Possible values Y/N/YES/NO
221# caching mechanism works with both relationnal and OpenLDAP backends
222# but may be really interesting only with OpenLDAP.
223#
224# ACTIVATING CACHE MAY CAUSE PRECISION PROBLEMS IN PRINT ACCOUNTING
225# IF AN USER PRINTS ON SEVERAL PRINTERS AT THE SAME TIME.
226# YOU MAY FIND IT INTERESTING ANYWAY, ESPECIALLY FOR LDAP.
227#
228# THERE'S NO GUARANTEE THAT THIS CACHING MECHANISM WILL IMPROVE
229# PERFORMANCE WITH RELATIONNAL BACKENDS. IT MIGHT EVEN MAKE
230# PERFORMANCE DECREASE. AS ALWAYS : YMMV.
231#
232# FYI, I ALWAYS SET IT TO YES !
233#
234storagecaching: No
235
236
237
238# Should full job history be disabled ?
239# If unset or set to No, full job history is kept in the database.
240# Disabling the job history can be useful with heavily loaded
241# LDAP servers, to not make the LDAP tree grow out of control.
242# Disabling the job history with a relationnal backend works too
243# but it's probably less useful than with LDAP.
244#
245disablehistory: No
246
247
248
249# Where to log ?
250# supported values : stderr, system (system means syslog, but don't use
251# 'syslog' here). if the value is not set then the default SYSTEM applies.
252#
253logger: system
254
255
256
257# Enable debugging ? Put YES or NO there.
258# debug is set to YES in this sample configuration file, so debugging
259# is activated when configuring PyKota, which helps a lot. After all
260# works, just put NO instead to save some disk space in your logs.
261# NB : When set to YES, there is a very significant impact on performance
262# when managing many users, printers or billing codes at once, because
263# hundreds of thousands of log lines can be generated.
264# When printing a job, typically around 250-300 log lines are generated,
265# so the impact per job is really minimal. Note however that this will
266# add up over a large number of jobs.
267#
268debug : Yes
269
270
271
272# The URL to PyKota's logo when used from the CGI scripts.
273# You can use your own logo by modifying the URL below.
274# If not defined, the default URL is the same as the
275# one defined below :
276#
277logourl : http://www.pykota.com/pykota.png
278
279
280
281# The destination to which the web browser will be redirected
282# when you click on the logo defined above.
283# If not defined, the default URL is the same as the
284# one defined below :
285#
286logolink : http://www.pykota.com/
287
288
289
290# Mail server to use to warn users
291# If the value is not set then localhost is used.
292#
293smtpserver: localhost
294
295
296
297# Crash messages' recipient : in addition to the log files
298# each software crash can be sent to the author of PyKota
299# or any other person of your choice. By default this
300# is disabled for privacy concerns (see below). The address
301# pykotacrashed@librelogiciel.com reaches PyKota's author.
302# The 'adminmail' (defined a bit below) is CCed.
303#
304# Privacy concerns : what is sent is only :
305#
306#        - a copy of the software's traceback
307#        - a copy of the software's command line arguments
308#        - a copy of the software's environment variables
309#
310# suggested value :
311#
312# crashrecipient: pykotacrashed@librelogiciel.com
313
314
315
316# Email domain
317# If the value is not set, and the mail attribute for the user
318# is not set in the PyKota storage, be it LDAP (see usermail directive
319# above) or a relationnal one, then email messages are sent to
320# username@smtpserver
321#
322# If the value is set, then email messages are sent to
323# username@maildomain using the SMTP server defined above
324#
325# Set the appropriate value below, example.com set as per RFC2606.
326#
327maildomain: example.com
328
329
330
331# Should we force usernames to be all lowercase when printing ?
332# Default is No.
333# This is a [global] option only.
334# Some people reported that WinXP sends mixed case usernames
335# setting 'utolower: Yes' solves the problem.
336# Of course you have to use lowercase only when adding
337# users with edpykota, because ALL database accesses are
338# still case sensitive.
339#
340# If utolower is Yes, the usernames received from the printing
341# system is converted to lowercase at the start of printing,
342# BUT ONLY when printing.
343#
344# If utolower is No, which is the default, strict case checking
345# is done, this means that users 'Jerome' and 'jerome' are
346# different. Printer and groups names are ALWAYS case sensitive.
347#
348utolower: No
349
350
351
352# Should we split usernames on a specific separator when printing ?
353# Default is No, i.e. if the value is unset.
354# This is a [global] option only.
355# This option adds support for Samba's Winbind utility, which
356# prefixes usernames with domain name and separator character.
357# Of course if you set this then you have to use NO separator when
358# adding users with edpykota.
359#
360# If winbind_separator is set, the usernames received from the printing
361# system are split on the separator's value, and only the last part
362# (real username) is used.
363#
364# If winbind_separator is not set, which is the default, strict
365# username equality checking will be done (modulo the setting
366# of the 'utolower' directive), this means that users 'DOMAIN1/jerome',
367# 'Domain2/jerome' and 'jerome' are different.
368#
369# winbind_separator: /
370
371
372
373# When creating users or groups accounts, should we reject users
374# or groups which are unknown from the system ?
375# The default if unset is NO. This means that by default, you
376# can create users or groups for which `getent passwd username`
377# or `getent group groupname` returns nothing.
378#
379# Allowed values : Yes | No
380# Default value : No
381#
382# reject_unknown: No
383
384
385
386# Do we want to hide jobs' title, filename and options for privacy
387# reasons ?
388# This may be required in some countries (Italy comes to mind).
389# Allowed values are YES and NO.
390# If unset, the default value is NO, meaning that jobs' title, filename
391# and options will be saved into the history.
392# This option can't be set on a per printer basis, only into the
393# [global] section.
394#
395privacy : no
396
397
398
399# When the real CUPS backend fail, should we modify the
400# user's page counters and account balance or not ?
401# Also should we retry and if yes then how often and how many times ?
402# If you trust your users, set it to "nocharge".
403# If you think they found some mean to kill the real CUPS backend,
404# then set it to "charge".
405# If your print queues get regularly disabled by CUPS when the printers
406# are switched off, you might want to set it to "retry:N:S" where
407# N is the number of times the operation should be retried, and S is
408# the delay in seconds during which PyKota will sleep before trying again.
409# This 'retry' feature works in a way similar to Till Kamppeter's beh
410# backend wrapper which offers this functionnality but is actually not
411# compatible with PyKota (because of my own inability to master regular
412# expressions).
413# If N is 0, PyKota will retry indefinitely each S seconds until the
414# backend succeeds, so you should use this with caution. If N is 0,
415# of course neither "charge" nor "nocharge" will be honored.
416# You can combine "charge" or "nocharge" with "retry:N:S" if you want,
417# by separating the values with a comma as shown in the examples below.
418# If unset, the default value is "nocharge", meaning that users won't be
419# charged whenever a CUPS backend fails. This is the OPPOSITE
420# behavior compared to PyKota versions prior to 1.24alpha2.
421# This value can be set either globally or on a per printer basis
422# If both are defined, the printer option has priority.
423#
424# onbackenderror : charge,retry:5:60
425# onbackenderror : retry:0:300
426# onbackenderror : retry:3:300,nocharge
427# onbackenderror : charge
428onbackenderror : nocharge
429
430
431
432# Should we strip off some characters from the beginning of
433# print jobs' titles ? This can be used to remove smbprn.??????
434# which sometimes appear when printing in raw mode from Windows
435# through Samba.
436# This setting only applies at printing time.
437# When not set, titles are used as received from the printing system.
438# The default is to not strip any character off of jobs' titles.
439# This value can be set either globally or on a per printer basis
440# If both are defined, the printer option has priority.
441#
442# striptitle : smbprn.??????
443
444
445
446# Should we launch a command to overwrite the job's ticket ?
447# This allows a command to overwrite the username and/or the
448# billing code used, or to deny or cancel the job.
449# If unset no command is launched and the job's username and
450# billing code are used as they are received.
451# To overwrite the job's ticket, the command has to print
452# on its standard output one or more of the following lines,
453# without any prefix or space character :
454#
455#    USERNAME=the_username_we_want_to_overwrite_with
456#    BILLINGCODE=the_billingcode_we_want_to_overwrite_with
457#    REASON=reason_we_chose_deny_or_cancel
458#    AUTH=NO (equivalent to DENY below)
459#    DENY
460#    CANCEL
461#
462# NB : the output of your command is entirely read, and the latest
463# value seen is used, so you command can output several usernames
464# or billing codes and only the latest ones will be used.
465# If only USERNAME= lines are printed, the billing code,
466# if any, is used unchanged.
467# If only BILLINGCODE= lines are printed, the username is
468# used unchanged.
469# If DENY or CANCEL is output, neither the username nor the
470# billing code can be overwritten.
471# If REASON is output, that will be used in the notification in the case of
472# DENY or CANCEL. Otherwise, the built-in reasons will be used.
473#
474# This value can be set either globally or on a per printer basis
475# If both are defined, the printer option has priority.
476#
477#�IMPORTANT :
478#
479#       If you use this directive to interact with the end user in
480#       some way, for example through pknotify+pykoticon or similar
481#       tools, you have to keep in mind that this directive, as all
482#       the directives in pykota*.conf, is processed at the time
483#       the print job reaches the top of the print queue, and not
484#       at the time it enters the print queue. For heavily loaded
485#       systems where several jobs are in the print queue at a given
486#       time, there may be a significant delay between the moment the
487#       user submits the print job, and the moment this directive is
488#       processed.
489#
490# examples :
491#
492# overwrite_jobticket : /usr/bin/pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 --timeout 180 --denyafter 3 --checkauth --ask "Username:username:$PYKOTAUSERNAME" "Password:password:" "Billing code:billingcode:$PYKOTAJOBBILLING"
493# overwrite_jobticket : /path/to/some/script/or/command
494
495
496
497# Should we ask the end user for a confirmation about their print job ?
498#
499# Any script can be launched here. If your script prints CANCEL on
500# its standard output, the job is cancelled, else processing of the
501# job continues to next step.
502#
503# NB : the output of your command is read until CANCEL is found
504# or all lines have been read.
505#
506# This value can be set either globally or on a per printer basis
507# If both are defined, the printer option has priority.
508#
509# examples :
510#
511# askconfirmation : /usr/bin/pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 --timeout 120 --confirm "Hello $PYKOTAUSERNAME.\nPrint job $PYKOTAJOBID send to printer $PYKOTAPRINTERNAME is $PYKOTAPRECOMPUTEDJOBSIZE pages long\nand will cost you $PYKOTAPRECOMPUTEDJOBPRICE credits.\n\nYou currently have $PYKOTABALANCE credits.\n\nDo you really want to print ?"
512
513
514
515# What should we do when we print and the billing code used is
516# not present in the database ?
517# The default value is 'create' which adds the billing code to the
518# database.
519# Other values can be :
520#       deny
521#     which silently rejects the job.
522# or :
523#       deny(your script here)
524#     if you put the path to a script or command here, it is executed, for
525#     example you can open a popup window explaining why the job was
526#     rejected.
527#
528# This value can be set either globally or on a per printer basis
529# If both are defined, the printer option has priority.
530#
531# unknown_billingcode : deny
532# unknown_billingcode : deny(/usr/bin/pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 --timeout 60 --notify "The billing code specified is not allowed")
533# unknown_billingcode : deny(/path/to/some/script)
534# unknown_billingcode : create
535
536
537
538# Where should we store our (temporary) files when printing ?
539# if unset, defaults to a system directory dedicated to temporary
540# files and evaluated at runtime (see Python's documentation
541# for the tempfile.gettempdir() function).
542# This value can be set either globally or on a per printer basis
543# If both are defined, the printer option has priority.
544# On my system, when not set, the /var/spool/cups/tmp directory is used.
545# directory : /tmp
546# directory : /var/spool/cups
547
548
549
550# Should we keep our work files on disk after printing ?
551# If unset, temporary files are deleted once the work is finished.
552# If set to yes, files are kept on disk in the 'directory'
553# named with the previous directive.
554# This value can be set either globally or on a per printer basis
555# If both are defined, the printer option has priority.
556# Default value is No, meaning temporary files are deleted
557# You should set it to yes only during installation to not
558# waste disk space during normal use.
559#
560# keepfiles : yes
561keepfiles : no
562
563
564
565# What is the accounting backend to use : this defines the way PyKota
566# will compute the number of pages printed. This directive is the most
567# important one in PyKota's configuration.
568#
569# NB : This directive is MANDATORY, there's no default value when not set.
570#
571# Supported values :
572#
573# - software([/path/to/some/script[ --with-args]])
574# - hardware(snmp[:community]|pjl[:port]|/path/to/some/script[ --with-args])
575#
576# Hardware asks the printer for its lifetime page counter through either
577# SNMP, PJL-over-TCP, or through any command of your choice. This is
578# the recommended way to use PyKota, although it might not work with some
579# printers. The page counter is asked twice per job : before the job
580# is sent to the printer, and after it has been entirely sent.
581# The big advantages of hardware accounting are lighter CPU usage compared
582# to software accounting described below, although it can take more time
583# because of necessary internal counter stabilization delays, and the fact
584# that paper jams don't cause users to be charged for pages they couldn't
585# print.
586# For hardware accounting, two special values are accepted in addition
587# to a script name : snmp and pjl. 'snmp' asks PyKota to use its internal
588# SNMP code, 'pjl' asks PyKota to internally send a specially crafter PJL
589# job to the printer's TCP port 9100 (by default).
590#
591# Software counts pages by parsing the print job's datas, either internally
592# when no script is specified, or through any script of your choice.
593# This works with ALL printers, provided you've got a script to parse
594# datas produced by your printer driver. PyKota's internal parser, also
595# available under the name 'pkpgcounter', recognizes several page description
596# languages, but may occasionally fail for some printer drivers.
597# You can however use any other command, provided it can read the datas to
598# parse from its standard input, and prints a single integer on its standard
599# output, representing the number of pages in the print job.
600# Software accounting unfortunately may overcharge users in case of paper
601# jams.
602#
603# Ink computes the price of a print job by parsing the job's datas
604# through pkpgcounter, and using the percents of ink coverage returned
605# for each color in the specified colorspace.
606
607# Supported colorspaces for ink accounting currently are :
608#
609#       bw      ===> Black & White
610#       cmyk    ===> Cyan, Magenta, Yellow, Black
611#       cmy     ===> Cyan, Magenta, Yellow
612#       rgb     ===> Red, Green, Blue
613#       gc      ===> Grayscale, Colored : this is a pseudo colorspace useful
614#                    if all you need is differentiating grayscale from
615#                    colored pages.
616#
617# Supported resolutions for ink accounting are any number of dots
618# per inch comprised between 72 and 1200.
619# IMPORTANT : increasing the resolution increases precision, but
620# increase CPU load a lot at the same time. The default resolution
621# if unset is 72, for 72 dpi.
622# If you want to use ink accounting, you have to define a set of
623# coefficients for each color in the colorspace, as explained
624# further below in this file.
625#
626# You can get hints on which configuration is best for your printers by
627# typing : pkturnkey --doconf
628#
629# In the lines below "%(printer)s" is automatically replaced at run time
630# with your printer's Fully Qualified Domain Name for network printers,
631# if PyKota can extract it from its environment.
632#
633# Examples :
634#
635# accounter : hardware(snmp)
636# accounter : hardware(snmp:private)
637# accounter : hardware(pjl)
638# accounter : hardware(pjl:9101)
639# accounter : hardware(/usr/share/pykota/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ")
640# accounter : hardware(/usr/bin/npadmin --pagecount %(printer)s)
641# accounter : hardware(/usr/share/pykota/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /usr/share/pykota/pagecount.ps  2>/dev/null | /bin/grep -v status | /bin/grep -v Connect | /usr/bin/tail -1)
642# accounter : hardware(/bin/cat /usr/share/pykota/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1)
643# accounter : hardware(/opt/local/net-snmp/bin/snmpwalk -v 1 -Cc -c public %(printer)s | grep mib-2.43.10.2.1.4.1.1 | cut -d " " -f4)
644# accounter : hardware(/opt/local/net-snmp/bin/snmpwalk -v 1 -Cc -c public -Ov %(printer)s | grep Counter32 | tail -2 | head -1 | cut -d " " -f2)
645# accounter : software(/usr/bin/pkpgcounter)
646# accounter : software()
647# accounter : ink(cmyk, 150)
648# accounter : ink(bw, 300)
649# accounter : ink(bw)
650# accounter : ink(cmy, 72)
651# accounter : ink(gc, 72)
652#         
653# This directive can be set either globally or per printer or both.
654# If both are defined, the printer option has priority.
655#         
656# IF YOU PLAN TO USE YOUR OWN SCRIPTS FOR HARDWARE ACCOUNTING,     
657# YOU ABSOLUTELY HAVE TO BE SURE YOU HAVE A SCRIPT WHICH WAITS FOR THE
658# PRINTER BEING READY BEFORE ASKING FOR ITS INTERNAL PAGE COUNTER.
659#         
660# PYKOTA'S 'snmp' and 'pjl' HARDWARE ACCOUNTING METHODS DO THE CORRECT WORK
661# INTERNALLY, BUT SOME OF THE EXAMPLES ABOVE DON'T, YOU HAVE BEEN WARNED.
662#
663# WITH THE SPECIAL MAGIC hardware(snmp) AND hardware(pjl) VALUES, PYKOTA
664# TAKES CARE OF ALL THIS FOR YOU, SO PLEASE UNDERSTAND THAT IT IS PREFERABLE
665# TO USE THESE TWO METHODS : THEY WORK FINE, REQUIRE LITTLE TO NO CPU,
666# AND DO ALL THE HARD WORK AUTOMATICALLY. IF YOU REALLY NEED TO YOU CAN USE
667# YOUR OWN EXTERNAL COMMANDS AS DESCRIBED ABOVE, JUST BE CAREFUL WITH THIS.
668#         
669# Sane default :
670#
671accounter: software()
672
673# Should we ensure that the printer really is idle before
674# sending the job's datas to it ?
675#
676# This directive is only used when you use an internal
677#�hardware accounting mechanism, like hardware(snmp) or
678# hardware(pjl), and is not used for external hardware
679# accounting mechanisms or for software or ink accounting.
680#
681# If PyKota and CUPS are properly configured, i.e. a single
682# computer (the print server) can access to a particular physical
683# printer, or all CUPS+PyKota print servers which access to the
684# same physical printer share a common network directory used
685# by PyKota to lock this printer resource, then it is not necessary
686# to really ensure the printer is idle before the job, because
687# this is already the case : we already wait at the end of the
688# preceding job for the printer to be idle before reading its
689# internal page counter. So setting this value to Yes usually
690# saves a lot of time between jobs, generally around 30 seconds.
691#
692# If you're not sure, leave this value to the default which is No,
693# meaning that before sending the job's datas to the printer, PyKota
694# will ensure this printer is in idle state.
695#
696# If not defined, a value of No is assumed.
697#
698# This value can be set either globally or on a per printer basis
699# If both are defined, the printer option has priority.
700#
701# Sane default :
702#
703skipinitialwait : no
704
705# What is the "pre"-accounter used for precomputing the job's size.
706#
707# Supported values are :
708#
709#  preaccounter: software()       
710#  preaccounter: software(/path/to/your/script)
711#  preaccounter: ink(colorspace, resolution)
712#
713# NB : the preaccounter directive doesn't support hardware() for obvious
714# reasons. If unset, "software()" is assumed. If you use your own script,
715# ensure that it only prints the job's number of pages (or an estimation
716# of it) on its standard output.
717#
718# You may want to define for example 'preaccounter : software(/bin/echo 1)'
719# in the case your printer supports an hardware accounter but pkpgcounter
720# can't parse your printer driver's datas.
721#
722# Supported colorspaces for ink accounting currently are :
723#
724#       bw      ===> Black & White
725#       cmyk    ===> Cyan, Magenta, Yellow, Black
726#       cmy     ===> Cyan, Magenta, Yellow
727#       rgb     ===> Red, Green, Blue
728#       gc      ===> Grayscale, Colored : this is a pseudo colorspace useful
729#                    if all you need is differentiating grayscale from
730#                    colored pages.
731#
732# Supported resolutions for ink accounting are any number of dots
733# per inch comprised between 72 and 1200.
734# IMPORTANT : increasing the resolution increases precision, but
735# increase CPU load a lot at the same time. The default resolution
736# if unset is 72, for 72 dpi.
737#
738# This value can be set either globally or on a per printer basis
739# If both are defined, the printer option has priority.
740#
741# Sane default :
742#
743preaccounter: software()
744
745
746
747# What should we do if the accounter's subprocess doesn't return
748# a valid result (for example doesn't return an integer on its stdout)
749#
750# Valid values are : 'continue' and 'stop'. 'stop' is the default
751# if unset.
752#
753# 'continue' means try to process as usual, this may introduce
754# accounting errors and free jobs. This was the default behavior
755# until v1.20alpha5.
756#
757# 'stop' means fail and stop the print queue. If an accounter
758# error occurs, most of the time this is a misconfiguration, so
759# stopping the print queue is usually the better thing to do
760# until the admin has fixed the configuration.
761#
762# This value can be set either globally or on a per printer basis
763# If both are defined, the printer option has priority.
764#
765# NB : This directive shouldn't do much now because in case
766# of external accounter error, PyKota just loops.
767#
768# onaccountererror: continue
769onaccountererror: stop
770
771
772
773# Print Quota administrator
774# These values can be set either globally or per printer or both.
775# If both are defined, the printer option has priority.
776# If these values are not set, the default admin root
777# and the default adminmail root@localhost are used.
778admin: John Doe
779adminmail: root@localhost
780
781
782
783# Who should we send an email to in case a quota is reached ?
784# possible values are : DevNull, User, Admin, Both, External(some command)
785# The Both value means that the User and the Admin will receive
786# an email message.
787# The DevNull value means no email message will be sent.
788# This value can be set either globally or per printer or both.
789# If both are defined, the printer option has priority.
790# If the value is not set, then the default BOTH applies.
791#
792#   Format of the external syntax :
793#
794#       mailto: external(/usr/bin/mycommand >/dev/null)
795#
796#   You can use :
797#
798#       '%(action)s'            will contain either WARN or DENY
799#       '%(username)s'          will contain the user's name
800#       '%(printername)s'       will contain the printer's name
801#       '%(email)s'             will contain the user's email address
802#       '%(message)s'           will contain the message if you want
803#                               to use it.
804#
805#   on your command line, to pass arguments to your command.
806#   Examples :
807#
808#     mailto: external(/usr/bin/callpager %(username)s "Quota problem on %(printername)s" >/dev/null)
809#
810#   To automatically send a WinPopup message (this may only work with a PDC,
811#   here the same machine does Samba as PDC + CUPS) :
812#
813#     mailto: external(echo "%(message)s" | /usr/bin/iconv --to-code utf-8 --from-code iso-8859-15 | /usr/bin/smbclient -M "%(username)s" 2>&1 >/dev/null)
814#
815#   NB : I use ISO-8859-15, but Windows expects UTF-8, so we pipe the message
816#        into iconv before sending it to the Windows user.
817#
818# or more simply :
819#
820#     mailto: external(/usr/share/pykota/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null)
821#
822#   NB : The mailandpopup.sh shell script is now included in PyKota
823#
824#   NB : in ANY case, don't forget to redirect your command's standard output
825#        somewhere (e.g. >/dev/null) so that there's no perturbation to the
826#        underlying layer (filter or backend)
827#
828mailto : both
829
830
831
832# The value of the zero for account balance limitations.
833# If a user is limited by balance, he can print until
834# his balance reaches the value defined here. If unset,
835# the default value is 0. Any floating point value
836# is accepted.
837# You'll want to use this to give free credits to your users
838# at the start of the year for example.
839#
840# This option can only appear in the global section
841#
842# balancezero : -0.25
843#
844balancezero: 0.0
845
846
847
848# Grace delay in days
849# This value can be set either globally or per printer or both.
850# If both are defined, the printer option has priority.
851# If the value is not set then the default seven (7) days applies.
852#
853gracedelay : 7
854
855
856
857# Poor man's threshold
858# If account balance reaches below this amount, a warning message
859# is sent through the 'mailto' directive above.
860#
861# If unset, default poor man's threshold is 1.0.
862# This option can only appear in the global section
863#
864poorman : 1.0
865
866
867
868# Poor man's warning message
869# The warning message that is sent if the "poorman" value is reached
870# Again this must appear in the global section
871#
872poorwarn : Your Print Quota account balance is low.
873 Soon you'll not be allowed to print anymore.
874
875
876
877# Soft limit reached warning message
878# The warning message that is sent if the soft quota limit is reached
879# May appear either globally or on a per-printer basis
880#
881softwarn: Your Print Quota Soft Limit is reached.
882 This means that you may still be allowed to print for some
883 time, but you must contact your administrator to purchase
884 more print quota.
885
886
887
888# Hard limit reached error message
889# The error message that is sent if the hard quota limit is reached
890# May appear either globally or on a per-printer basis
891#
892hardwarn: Your Print Quota Hard Limit is reached.
893 This means that you are not allowed to print anymore.
894 Please contact your administrator at root@localhost
895 as soon as possible to solve the problem.
896
897
898
899# Default policy to apply when either :
900#
901#       - Printer doesn't exist in PyKota's database
902#       - User doesn't exist in PyKota's database
903#       - User has no quota entry for this Printer in PyKota's database
904#
905# Value can be either allow or deny or external(some command here)
906#
907# This value can be set either globally or per printer or both.
908# If both are defined, the printer option has priority.
909# If the value is not set then the default policy DENY applies.
910# There's no policy wrt inexistant groups, they are ignored.
911#
912# external policy can be used to launch any external command of your choice,
913# for example to automatically add the user to the quota database, and set
914# page limits on the current printer if he is unknown :
915#
916#   policy: external(/usr/bin/pkusers --add --skipexisting %(username)s && /usr/bin/edpykota --add --skipexisting --printer %(printername)s --softlimit 50 --hardlimit 60 %(username)s)
917#
918# NB : If you want to limit users by their account balance value, it is preferable to
919# use the following policy to automate user account creation on first print :
920#
921#   policy: external(/usr/bin/autopykota --initbalance 25.0)
922#
923#   This will automatically add the user if he doesn't already exist, and
924#   set his initial balance value to 25.0 (for example). If the user already
925#   exists then his balance value will not be modified.
926#   Please don't use autopykota if you want to limit your users by page
927#   quota, and in any case, carefully read autopykota's help or manpage
928#   and understand its goal before using it in your own configuration.
929#
930# Of course you can launch any command of your choice with this, e.g. :
931#
932#   policy: external(/usr/local/bin/myadminscript.sh %(username)s)
933#
934# You can use :
935#
936#       '%(username)s'          will contain the user's name
937#       '%(printername)s'       will contain the printer's name
938#
939#   On your command line, to pass arguments to your command.
940#
941# If the printer, user, or user quota entry still doesn't exist after
942# external policy command was launched (the external command didn't add it),
943# or if an error occured during the execution of the external policy
944# command, then the job is rejected.
945#
946# By default, we reject all jobs from users not in the database :
947#
948policy: deny
949
950
951
952# Pre and Post Hooks
953# These directives allow the easy plug-in of any command of your choice
954# at different phases of PyKota's execution.
955# Pre and Post Hooks can access some of PyKota's internal information
956# by reading environment variables as described below.
957# The actual phase of PyKota's execution is available in the
958# PYKOTAPHASE environment variable.
959# Pre and Post Hooks can be defined either globally, per printer,
960# or both. If both are defined, the printer specific hook has
961# priority.
962#
963# List of available environment variables :
964# NB : Most of these variables are also available during the execution
965# of external commands defined in the accounter and mailto
966# directives.
967#
968# PYKOTADIRECTORY : The directory containing cupspykota's temporary files
969# PYKOTADATAFILE : The name of the temporary file which contains the
970#                  job's datas
971# PYKOTAFILENAME : The name of the file which contains the job's datas or
972#                  empty if datas come from stdin
973# PYKOTACONTROLFILE : The name of the IPP message file
974# PYKOTAMD5SUM : Contains an hexadecimal digest of the md5 sum of the job's datas
975# PYKOTAPHASE : BEFORE or AFTER the job is sent to the printer
976# PYKOTAACTION : ALLOW or DENY or WARN for current print job
977# PYKOTAUSERNAME : user's name, possibly modified through the overwrite_jobticket directive.
978# PYKOTAORIGINALUSERNAME : user's name, unmodified.
979# PYKOTAPRINTERNAME : printer's name
980# PYKOTAPGROUPS : list of printers groups the current printer is a member of
981# PYKOTAJOBID : job's id
982# PYKOTATITLE : job's title
983# PYKOTACOPIES : number of copies
984# PYKOTAOPTIONS : job's options
985# PYKOTABALANCE : user's account balance
986# PYKOTALIFETIMEPAID : user's grand total paid
987# PYKOTALIMITBY : user print limiting factor, for example 'quota' or 'balance'
988# PYKOTAPAGECOUNTER : user's page counter on this printer
989# PYKOTALIFEPAGECOUNTER : user's life time page counter on this printer
990# PYKOTASOFTLIMIT : user's soft page limit on this printer
991# PYKOTAHARDLIMIT : user's hard page limit on this printer
992# PYKOTADATELIMIT : user's soft to hard limit date limit on this printer
993# PYKOTASTATUS : contains "CANCELLED" when SIGTERM was received by PyKota
994#                else is not set.
995# PYKOTAJOBSIZEBYTES : contains the job's size in bytes. Always available.
996# PYKOTAPRECOMPUTEDJOBSIZE : contains the precomputed job's size
997# PYKOTAPRECOMPUTEDJOBPRICE : contains the precomputed job's price
998# PYKOTAJOBORIGINATINGHOSTNAME : contains the client's hostname if
999#                                it is possible to retrieve it.
1000# PYKOTAPRINTERHOSTNAME : the printer's hostname or IP address for network
1001#                         printers, or "localhost" if not defined or not
1002#                         meaningful.
1003# PYKOTAWARNCOUNT : the number of times the user was forbidden to print but a banner
1004#                   page was still printed on the current printer.                   
1005# PYKOTAOVERCHARGE : user's overcharging factor.
1006# PYKOTAJOBBILLING : Job's billing code if present, possibly modified through the overwrite_jobticket directive.
1007# PYKOTAORIGINALJOBBILLING : Job's billing code if present, unmodified.
1008# PYKOTAREASON : if the job was denied or a warning needs to be issued, contains
1009#                the message to send to the user.
1010# PYKOTAUSERDESCRIPTION : the user's textual description
1011# PYKOTAPRINTERDESCRIPTION : the printer's textual description
1012# PYKOTAPRINTERPASSTHROUGHMODE : the printer's passthrough mode
1013# PYKOTAPRINTERMAXJOBSIZE : the printer's maximal job size
1014# PYKOTAPRICEPERJOB : the printer's price per job
1015# PYKOTAPRICEPERPAGE : the printer's price per page
1016#
1017
1018
1019# PreHook : gets executed after being sure the user, printer and user quota
1020# entry on the printer both exist in the PyKota database, and after
1021# checking if the user is allowed to print or not, but just before
1022# the job is sent to the printer (if allowed)
1023# prehook has access to many environment variables :
1024#
1025# PYKOTAACTION contains either "ALLOW", "WARN" or "DENY" and
1026# represents the action which is to be done wrt the print job.
1027# PYKOTAPHASE contains 'BEFORE' during execution of prehook
1028#
1029# uncomment the line below to see what environment variables are available
1030# prehook: /usr/bin/printenv >/tmp/before
1031
1032
1033
1034# PostHook : gets executed after the job has been added to the history.
1035# posthook has access to all the environment variables defined above,
1036# as well as two additionnal environment variables : PYKOTAJOBPRICE
1037# and PYKOTAJOBSIZE.
1038# PYKOTAPHASE contains 'AFTER' during execution of posthook.
1039#
1040# uncomment the line below to see what environment variables are available
1041# posthook: /usr/bin/printenv >/tmp/after
1042
1043
1044
1045# AccountBanner : how should banner accounting be done ?
1046#
1047# If enabled, banner pages printed from StartingBanner and/or EndingBanner
1048# (depending on the value) will be included in the accounting for the
1049# print job
1050#
1051# If disabled, banner pages printed from StartingBanner and EndingBanner will
1052# *not* be included in the accounting for the print job
1053#
1054# IMPORTANT : CUPS generated banners are ALWAYS accounted for, although you
1055#             can refund them by using negative prices on printers.
1056#
1057# Allowed values : Starting | Ending | None | Both
1058#
1059#       - Starting : only the starting banner will be accounted for.
1060#       - Ending : only the ending banner will be accounted for.
1061#       - Both : both starting and ending banners will be accounted for.
1062#       - None : banners will not be accounted for.
1063#
1064# Default value :
1065# accountbanner: Both
1066
1067
1068
1069# Maximal number of times the banner will still be printed if
1070# the user is forbidden to print.
1071#
1072# This option can be set either globally or on a per printer basis.
1073# Allowed values are 0 or any positive integer.
1074# Default value is 0, which means that the banner won't be printed
1075# at all if the user is forbidden to print.
1076#
1077maxdenybanners: 0
1078
1079
1080
1081# If a job is cancelled, should any start or end banners still be printed
1082#
1083# This option can be set either globally or on a per printer basis.
1084# If set to yes, any defined banners will be printed
1085# If set to no, no banners will be printed
1086#
1087# This value defaults to yes
1088# printcancelledbanners: yes
1089
1090
1091# If a job is printed by the same person as the last job on the same printer,
1092# should banners be avoided to save some paper
1093#
1094# This option can be set either globally or on a per printer basis.
1095# If set to yes, any duplicate banners will be avoided forever
1096# If set to no or 0, no banners will be avoided (they will all be printed)
1097# If set to any positive integer, banners will be avoided if printed within
1098#     'integer' seconds of the last job
1099#
1100# This value defaults to no
1101# avoidduplicatebanners: yes
1102# avoidduplicatebanners: no
1103# avoidduplicatebanners: 600   
1104
1105
1106# StartingBanner : if defined will print a banner before the rest of the job
1107# is printed. The argument can be a printable file, or an executable file.
1108# If not executable, the file will be printed as is. If executable, the
1109# file will be executed and its standard output will be sent to the printer.
1110#
1111# In any case, the banner content which will be sent to the printer
1112# MUST be in a format your printer will accept !!!
1113#
1114# The pkbanner command included in PyKota can automatically generate
1115# starting and ending banners in the PostScript format. You can use
1116# this command in a pipe through GhostScript if your printer doesn't
1117# accept PostScript as an input format.
1118# NB : pkbanner's default page size is A4
1119#
1120# startingbanner: /home/joe/mystaticbanner.ps
1121# startingbanner: /usr/bin/pkbanner --pagesize=A4 --logo="/home/joe/mylogo.jpeg" --url="http://tech.example.com"
1122# startingbanner: /usr/bin/pkbanner | gs -q -dNOPAUSE -dBATCH -dPARANOIDSAFER -sOutputFile=- -sDEVICE=lj5mono -
1123# startingbanner: /usr/bin/pkbanner
1124
1125
1126
1127# EndingBanner : if defined will print a banner after the job
1128# has been printed. The argument can be a printable file, or an executable file.
1129# If not executable, the file will be printed as is. If executable, the
1130# file will be executed and its standard output will be sent to the printer.
1131#
1132# In any case, the banner content which will be sent to the printer
1133# MUST be in a format your printer will accept !!!
1134#
1135# The pkbanner command included in PyKota can automatically generate
1136# starting and ending banners in the PostScript format. You can use
1137# this command in a pipe through GhostScript if your printer doesn't
1138# accept PostScript as an input format.
1139# NB : pkbanner's default page size is A4
1140#
1141# A static banner page
1142# endingbanner: /home/joe/mystaticbanner.ps
1143#
1144# A banner with personnalized logo and url
1145# endingbanner: /usr/bin/pkbanner --pagesize=A4 --logo="/home/joe/mylogo.jpeg" --url="http://tech.example.com"
1146#
1147# A banner in the format accepted by the printer
1148# endingbanner: /usr/bin/pkbanner | gs -q -dNOPAUSE -dBATCH -dPARANOIDSAFER -sOutputFile=- -sDEVICE=lj5mono -
1149#
1150# A banner with more info on it, extracted from the yellow pages.
1151# the string "Phone 111222333444" will be added to the banner page
1152# if extractphone.sh returns 111222333444 for the current user.
1153# endingbanner: /usr/bin/pkbanner Phone `extractphone.sh $PYKOTAUSERNAME`
1154#
1155# Default PyKota banner
1156# endingbanner: /usr/bin/pkbanner
1157
1158
1159
1160# How should enforcement be done for this printer ?
1161#
1162# "laxist" is the default if value is not set, and allows users
1163# to be over quota on their last job.
1164#
1165# "strict" tries to prevent users from ever being over quota.
1166#
1167# Enforcement can be defined either globally, per printer,
1168# or both. If both are defined, the printer specific enforcement
1169# setting has priority.
1170#
1171# valid values : "strict" or "laxist"
1172#
1173# default value when not set is "laxist"
1174#
1175# enforcement : laxist
1176enforcement : strict
1177
1178
1179
1180# Should we trust the job size on this printer ?
1181#
1182# "trustjobsize : yes" is the default, the jobsize, either computed
1183# by the hardware or by software is trusted.
1184#
1185# "trustjobsize : >N:precomputed" : uses the precomputed value
1186#                                   if jobsize > N pages
1187# "trustjobsize : >N:25" : uses 25 if jobsize is >N pages
1188#
1189# General form : ">n:m" where n is a positive integer, and m is
1190# either the word 'precomputed' or a positive integer.
1191# The special form "yes" is also accepted and is the default.
1192#
1193# This directive can be set either globally or on a per printer
1194# basis. Use this directive when hardware accounting for a particular
1195# printer produces some glitches due to the printer returning
1196# incorrect answers.
1197#
1198# NB : DON'T MODIFY THIS IF YOU DON'T NEED TO. THIS IS ONLY TO BE USED
1199# AS A WORKAROUND FOR SOME PRINTERS. IT'S PROBABLY BETTER TO ALWAYS
1200# SET THIS DIRECTIVE TO 'yes'. THIS DIRECTIVE WILL ONLY BE HONORED
1201# IF PYKOTA DETECTS A DIFFERENCE BETWEEN THE PRECOMPUTED JOB SIZE
1202# AND THE JOB SIZE AS COMPUTED BY PYKOTA EITHER USING HARDWARE OR
1203# SOFTWARE.
1204#
1205trustjobsize : yes
1206
1207
1208
1209# Should we deny duplicate jobs ?
1210#
1211# A duplicate is a job sent twice (or more) in a row to the same printer
1212# by the same user.
1213#
1214# This can be defined either globally or on a per printer basis
1215# The default value is 'no', meaning that duplicate jobs are
1216# allowed.
1217#
1218# NB : if an user prints a job, a second user prints another
1219#      job, and the first user prints the first job again,
1220#      this is NOT considered as a duplicate since the two
1221#      identical jobs printed by the first user are not
1222#      one just after the other.
1223#
1224# Possible values are 'yes', 'no', or any other string.
1225# If the string is not recognized as a truth value,
1226# it is considered to be a command to launch.
1227# PyKota launches the command and parses its standard
1228# output. The special keywords 'ALLOW' and 'DENY' are
1229# recognized, allowing an external tool to decide if
1230# the job is to be allowed or denied.
1231#
1232# denyduplicates : /usr/bin/myowncommand with some arguments
1233# denyduplicates : yes
1234denyduplicates : no
1235
1236
1237
1238# Sets the delay in seconds after which two identical jobs are
1239# not considered as being a duplicate.
1240#
1241# This can be defined either globally or on a per printer basis
1242# The default value if not set is 0, for 0 seconds.
1243# duplicatesdelay : 300
1244duplicatesdelay : 0
1245
1246
1247
1248# Sets the maximum number of seconds to wait for the printer
1249# being in 'printing' mode once the job has been sent to it.
1250# Once this delay is expired, PyKota will consider this job
1251# will never be printed, aborts the hardware accounting
1252# process, and uses the latest internal page counter value seen.
1253#
1254# Increasing this value, or setting it to 0, may help with some
1255# printers which don't conform to RFC3805. Problem reported on a
1256# Samsung ML2551n gave a way for clever students to bypass
1257# hardware accounting entirely by removing the paper from
1258# the paper tray before the job had begun to print, then
1259# waiting 60 seconds, and putting the paper back in the tray...
1260#
1261# IMPORTANT : always ensure that your printers' firmware is up
1262# to date.
1263#
1264# This directive can be set either globally or on a per printer
1265# basis.
1266#
1267# When not set, an hardcoded value of 60 seconds is used.
1268# When set to 0, PyKota will wait indefinitely until the
1269# printer switches to the 'printing' status.
1270noprintingmaxdelay : 60
1271
1272
1273
1274# Defines a set of coefficients for ink accounting.
1275#
1276# Each ink coefficient is the factor of the price per page
1277# you set with pkprinters which would represent the cost
1278# of a page covered at 100% with ink in this particular color.
1279#
1280# With these coefficients, the exact cost of each page
1281# can be computed : for each ink color in the colorspace specified
1282# in the preaccounter and/or accounter directives, we multiply the
1283# base cost per page set with pkprinters by this ink color's coefficient
1284# and by the percent of that page covered with such ink. Then we
1285# sum the values, and repeat the operation for each page. We then
1286# add the base cost per job set with pkprinters, and repeat
1287# the operation recursively in case of nested printers groups.
1288#
1289# The names of the coefficients you should set depend on the colorspace
1290# you want to use for ink accounting :
1291#
1292#       cmyk :
1293#               coefficient_cyan
1294#               coefficient_magenta
1295#               coefficient_yellow
1296#               coefficient_black
1297#
1298#       cmy :
1299#               coefficient_cyan
1300#               coefficient_magenta
1301#               coefficient_yellow
1302#
1303#       rgb :
1304#               coefficient_red
1305#               coefficient_green
1306#               coefficient_blue
1307#
1308#       bw :
1309#               coefficient_black
1310#
1311#       gc :
1312#               coefficient_grayscale
1313#               coefficient_colored
1314#
1315# Any coefficient which is not set is considered to be equal to 1.0
1316#
1317# Coefficients can be set either in the [global] section or in any
1318# [printqueuename] section. The latter taking precedence, as always.
1319#
1320#coefficient_cyan : 1.2
1321#coefficient_magenta : 3
1322#coefficient_yellow : 1.1
1323#coefficient_black : 1.0
Note: See TracBrowser for help on using the browser.