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
8
# This code may be freely distributed as long as this header
9
# is preserved. Changes to the code should be clearly indicated.
11
# This code is distributed under the GPL.
12
# (http://www.gnu.org/copyleft/gpl.html)
14
# For more detailed licensing information see cups-pdf.c in the
15
# corresponding version number.
17
###########################################################################
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. #
23
# Take care not to add whitespaces at the end of a line! #
25
###########################################################################
28
###########################################################################
32
###########################################################################
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
41
### Default: /var/spool/cups-pdf/${USER}
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
51
#AnonDirName /var/spool/cups-pdf/ANONYMOUS
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
58
#Spool /var/spool/cups-pdf/SPOOL
61
###########################################################################
65
###########################################################################
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
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
83
## 0: label untitled documents only, 1: label all documents
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
98
###########################################################################
102
###########################################################################
105
## user for anonymous PDF creation (this might be a security issue)
106
## set this to an empty value to disable anonymous
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
125
## some installations require a domain prefix added to the user name
126
## leave empty for no prefix
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
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
148
###########################################################################
150
# Security Settings #
152
###########################################################################
155
## umask for anonymous output
156
## these are the _inverse_ permissions to be granted
162
## umask for user output of known users
163
## changing this can introduce security leaks if confidential
164
## information is processed!
170
## group cups-pdf is supposed to run as - this will also be the gid for all
171
## created directories and log files
176
###########################################################################
180
###########################################################################
183
## CUPS-PDF log directory
184
## set this to an empty value to disable all logging
185
### Default: /var/log/cups
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
201
###########################################################################
203
# PDF Conversion Settings #
205
###########################################################################
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
213
#GhostScript /usr/bin/gs
216
## location of temporary files during GhostScript operation
217
## this must be user-writable like /var/tmp or /tmp !
218
### Default: /var/tmp
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
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
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
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