~billy-cina/canonical-training/test

« back to all changes in this revision

Viewing changes to config-server/etc/cups/cups-pdf.conf

  • Committer: Torsten Spindler
  • Date: 2007-05-15 02:04:00 UTC
  • Revision ID: torsten@canonical.com-20070515020400-955q1kxm4vgmcm2j
Added files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  cups-pdf.conf -- CUPS Backend Configuration (version 2.2.0, 2006-04-14)
 
2
#  18.09.2005, Volker C. Behr
 
3
#  Exp. Physik V, Uni Wuerzburg 
 
4
#  vrbehr@cip.physik.uni-wuerzburg.de
 
5
#  http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf
 
6
#
 
7
#
 
8
#  This code may be freely distributed as long as this header 
 
9
#  is preserved. Changes to the code should be clearly indicated.   
 
10
#
 
11
#  This code is distributed under the GPL.
 
12
#  (http://www.gnu.org/copyleft/gpl.html)
 
13
#
 
14
#  For more detailed licensing information see cups-pdf.c in the 
 
15
#  corresponding version number.                                     
 
16
 
 
17
###########################################################################
 
18
#                                                                         #
 
19
# This is the configuration file for CUPS-PDF. Values that are not set in #
 
20
# here will use the defaults. Changes take effect immediately without the #
 
21
# need for restarting any services.                                       #
 
22
#                                                                         #
 
23
# Take care not to add whitespaces at the end of a line!                  #
 
24
#                                                                         #
 
25
###########################################################################
 
26
 
 
27
 
 
28
###########################################################################
 
29
#                                                                         #
 
30
# Path Settings                                                           #
 
31
#                                                                         #
 
32
###########################################################################
 
33
 
 
34
### Key: Out
 
35
##  CUPS-PDF output directory 
 
36
##  special qualifiers: 
 
37
##     ${HOME} will be expanded to the user's home directory
 
38
##     ${USER} will be expanded to the user name
 
39
##  in case it is an NFS export make sure it is exported without
 
40
##  root_squash! 
 
41
### Default: /var/spool/cups-pdf/${USER}
 
42
 
 
43
#Out ${HOME}/PDF
 
44
Out /var/www/printer
 
45
 
 
46
### Key: AnonDirName
 
47
##  ABSOLUTE path for anonymously created PDF files
 
48
##  if anonymous access is disabled this setting has no effect
 
49
### Default: /var/spool/cups-pdf/ANONYMOUS
 
50
 
 
51
#AnonDirName /var/spool/cups-pdf/ANONYMOUS
 
52
 
 
53
### Key: Spool
 
54
##  CUPS-PDF spool directory - make sure there is no user 'SPOOL' on your
 
55
##  system or change the path   
 
56
### Default: /var/spool/cups-pdf/SPOOL
 
57
 
 
58
#Spool /var/spool/cups-pdf/SPOOL
 
59
 
 
60
 
 
61
###########################################################################
 
62
#                                                                         #
 
63
# Filename Settings                                                       #
 
64
#                                                                         #
 
65
###########################################################################
 
66
 
 
67
### Key: Cut
 
68
##  removing file name extensions before appending .pdf to output
 
69
##  extensions will only be removed if _both_ the following criteria are met:
 
70
##   - the extension (w/o the dot) is not longer than <Out> characters
 
71
##   - the remaining filename has a minimal length of 1 character
 
72
##  set Cut to -1 in order to disable cutting
 
73
##  recommended values: pure UNIX environment : -1
 
74
##                      mixed environments    :  3
 
75
### Default: 3
 
76
 
 
77
#Cut 3
 
78
 
 
79
### Key: Label
 
80
##  label all jobs with a unique job-id in order to avoid overwriting old
 
81
##  files in case new ones with identical names are created; always true for
 
82
##  untitled documents
 
83
##  0: label untitled documents only, 1: label all documents
 
84
### Default: 0
 
85
 
 
86
#Label 0
 
87
 
 
88
### Key: TitlePref
 
89
##  where to look first for a title when creating the output filename
 
90
##  (title in PS file or title on commandline):
 
91
##  0: prefer title from %Title statement in the PS file
 
92
##  1: prefer title passed via commandline 
 
93
### Default: 0
 
94
 
 
95
#TitlePref 0
 
96
 
 
97
 
 
98
###########################################################################
 
99
#                                                                         #
 
100
# User Settings                                                           #
 
101
#                                                                         #
 
102
###########################################################################
 
103
 
 
104
### Key: AnonUser
 
105
##  user for anonymous PDF creation (this might be a security issue)
 
106
##  set this to an empty value to disable anonymous
 
107
### Default: nobody
 
108
 
 
109
AnonUser www-data
 
110
 
 
111
### Key: LowerCase
 
112
##  This options allows to check user names given to CUPS-PDF additionally 
 
113
##  against their lower case variants. This is necessary since in some 
 
114
##  Windows environments only upper case user names are passed. Usually UNIX
 
115
##  user names are all lower case and it is save to use this option  
 
116
##  but be aware that it can lead to mis-identifications in case
 
117
##  you have user names that differ only in upper/lower case.
 
118
##     check only against user name as passed to CUPS  : 0
 
119
##     check additionally against lower case user name : 1
 
120
### Default: 1
 
121
 
 
122
#LowerCase 1
 
123
 
 
124
### Key: UserPrefix
 
125
##  some installations require a domain prefix added to the user name
 
126
##  leave empty for no prefix 
 
127
### Default: <empty>
 
128
 
 
129
#UserPrefix
 
130
 
 
131
### Key: DirPrefix
 
132
##  if a prefix was defined above this switch toggels whether to include
 
133
##  the prefix in the output directory's name (if not $HOME) or not
 
134
##  0: do not include, 1: include
 
135
### Default: 0
 
136
 
 
137
#DirPrefix 0
 
138
 
 
139
### Key: RemovePrefix
 
140
##  some installation pass usernames with a prefix (usually a domain name)
 
141
##  if you do not want this prefix to be used by the ${USER} variable for
 
142
##  output directories put the part which is to be cut here
 
143
### Default: <empty>
 
144
 
 
145
#RemovePrefix
 
146
 
 
147
 
 
148
###########################################################################
 
149
#                                                                         #
 
150
# Security Settings                                                       #
 
151
#                                                                         #
 
152
###########################################################################
 
153
 
 
154
### Key: AnonUMask
 
155
##  umask for anonymous output
 
156
##  these are the _inverse_ permissions to be granted
 
157
### Default: 0000
 
158
 
 
159
AnonUMask 0000
 
160
 
 
161
### Key: UserUMask
 
162
##  umask for user output of known users
 
163
##  changing this can introduce security leaks if confidential
 
164
##  information is processed!
 
165
### Default: 0077
 
166
 
 
167
UserUMask 0022
 
168
 
 
169
### Key: Grp
 
170
##  group cups-pdf is supposed to run as - this will also be the gid for all
 
171
##  created directories and log files
 
172
### Default: lp
 
173
 
 
174
Grp lpadmin
 
175
 
 
176
###########################################################################
 
177
#                                                                         #
 
178
# Log Settings                                                            #
 
179
#                                                                         #
 
180
###########################################################################
 
181
 
 
182
### Key: Log
 
183
##  CUPS-PDF log directory 
 
184
##  set this to an empty value to disable all logging
 
185
### Default: /var/log/cups
 
186
 
 
187
#Log /var/log/cups
 
188
 
 
189
### Key: LogType
 
190
##  log-mode 
 
191
##  1: errors
 
192
##  2: status (i.e. activity)
 
193
##  4: debug - this will generate a lot of log-output!
 
194
##  add up values to combine options, i.e. 7 is full logging
 
195
##  if logging is disabled these setting have no effect
 
196
### Default: 3
 
197
 
 
198
LogType 1
 
199
 
 
200
 
 
201
###########################################################################
 
202
#                                                                         #
 
203
# PDF Conversion Settings                                                 #
 
204
#                                                                         #
 
205
###########################################################################
 
206
 
 
207
### Key: GhostScript
 
208
##  location of GhostScript binary (gs) 
 
209
##  MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
 
210
##          or it's proper location on your system
 
211
### Default: /usr/bin/gs
 
212
 
 
213
#GhostScript /usr/bin/gs
 
214
 
 
215
### Key: GSTmp
 
216
##  location of temporary files during GhostScript operation 
 
217
##  this must be user-writable like /var/tmp or /tmp ! 
 
218
### Default: /var/tmp
 
219
 
 
220
#GSTmp /var/tmp
 
221
 
 
222
### Key: GSCall
 
223
## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
 
224
## MacOSX: for using pstopdf set this to %s %s -o %s %s
 
225
### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c save pop -f %s
 
226
 
 
227
#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c save pop -f %s
 
228
 
 
229
### Key: PDFVer
 
230
##  PDF version to be created - can be "1.5", "1.4", "1.3" or "1.2" 
 
231
##  MacOSX: for using pstopdf set this to an empty value
 
232
### Default: 1.4
 
233
 
 
234
#PDFVer 1.4
 
235
 
 
236
### Key: PostProcessing
 
237
##  postprocessing script that will be called after the creation of the PDF
 
238
##  as arguments the filename of the PDF and the username will be passed
 
239
##  the script will be called with user privileges
 
240
##  set this to an empty value to use no postprocessing
 
241
### Default: <empty>
 
242
 
 
243
#PostProcessing