/cups/cups-pdf.conf

http://github.com/brinkman83/bashrc · Config · 274 lines · 214 code · 60 blank · 0 comment · 0 complexity · 89f80be2a8a516dc597f062d5016bf15 MD5 · raw file

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