Guest User

Untitled

a guest
Apr 10th, 2021
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.81 KB | None | 0 0
  1. # cups-pdf.conf -- CUPS Backend Configuration (version 3.0.1, 2017-02-24)
  2. # 18.09.2005, Volker C. Behr
  3. # http://www.cups-pdf.de
  4. #
  5. #
  6. # This code may be freely distributed as long as this header
  7. # is preserved. Changes to the code should be clearly indicated.
  8. #
  9. # This code is distributed under the GPL.
  10. # (http://www.gnu.org/copyleft/gpl.html)
  11. #
  12. # For more detailed licensing information see cups-pdf.c in the
  13. # corresponding version number.
  14.  
  15. ###########################################################################
  16. # #
  17. # This is the configuration file for CUPS-PDF. Values that are not set in #
  18. # here will use the defaults. Changes take effect immediately without the #
  19. # need for restarting any services. #
  20. # #
  21. # Take care not to add whitespaces at the end of a line! #
  22. # #
  23. # Options are marked where they can be set (setting via PPD requires the #
  24. # PPD file that comes with CUPS-PDF to be used!). #
  25. # Options passed via lpoptions that are not named for lpoptions here are #
  26. # ignored. #
  27. # Options precedence is as follows: #
  28. # 1st: lpoptions #
  29. # 2nd: PPD settings #
  30. # 3rd: config file (this file) #
  31. # 4th: default values #
  32. ###########################################################################
  33.  
  34.  
  35. ###########################################################################
  36. # #
  37. # Path Settings #
  38. # #
  39. ###########################################################################
  40.  
  41. ### Key: Out (config)
  42. ## CUPS-PDF output directory
  43. ## special qualifiers:
  44. ## ${HOME} will be expanded to the user's home directory
  45. ## ${USER} will be expanded to the user name
  46. ## in case it is an NFS export make sure it is exported without
  47. ## root_squash!
  48. ### Default: /var/spool/cups-pdf/${USER}
  49.  
  50. Out /home/${USER}/cups-pdf
  51.  
  52. ### Key: AnonDirName (config)
  53. ## ABSOLUTE path for anonymously created PDF files
  54. ## if anonymous access is disabled this setting has no effect
  55. ### Default: /var/spool/cups-pdf/ANONYMOUS
  56.  
  57. #AnonDirName /var/spool/cups-pdf/ANONYMOUS
  58.  
  59. ### Key: Spool (config)
  60. ## CUPS-PDF spool directory - make sure there is no user 'SPOOL' on your
  61. ## system or change the path
  62. ### Default: /var/spool/cups-pdf/SPOOL
  63.  
  64. #Spool /var/spool/cups-pdf/SPOOL
  65.  
  66.  
  67. ###########################################################################
  68. # #
  69. # Filename Settings #
  70. # #
  71. ###########################################################################
  72.  
  73. ### Key: Truncate (config, ppd, lpoptions)
  74. ## truncate long filenames to a maximum of <Truncate> characters
  75. ## this does not consider the full path to the output but only the filename
  76. ## without the .pdf-extension or a job-id prefix (see 'Label')
  77. ## the minimal value is 8
  78. ### Default: 64
  79.  
  80. #Truncate 64
  81.  
  82. ### Key: Cut (config, lpoptions)
  83. ## removing file name extensions before appending .pdf to output
  84. ## extensions will only be removed if _both_ the following criteria are met:
  85. ## - the extension (w/o the dot) is not longer than <Cut> characters
  86. ## - the remaining filename has a minimal length of 1 character
  87. ## set Cut to -1 in order to disable cutting
  88. ## recommended values: pure UNIX environment : -1
  89. ## mixed environments : 3
  90. ### Default: 3
  91.  
  92. #Cut 3
  93.  
  94. ### Key: Label (config, ppd, lpoptions)
  95. ## label all jobs with a unique job-id in order to avoid overwriting old
  96. ## files in case new ones with identical names are created; always true for
  97. ## untitled documents
  98. ## 0: label untitled documents only
  99. ## 1: label all documents with a preceeding "job_#-"
  100. ## 2: label all documents with a tailing "-job_#"
  101. ### Default: 0
  102.  
  103. #Label 0
  104.  
  105. ### Key: TitlePref (config, ppd, lpoptions)
  106. ## where to look first for a title when creating the output filename
  107. ## (title in PS file or title on commandline):
  108. ## 0: prefer title from %Title statement in the PS file
  109. ## 1: prefer title passed via commandline
  110. ### Default: 0
  111.  
  112. #TitlePref 0
  113.  
  114.  
  115. ###########################################################################
  116. # #
  117. # User Settings #
  118. # #
  119. ###########################################################################
  120.  
  121. ### Key: AnonUser (config)
  122. ## uid for anonymous PDF creation (this might be a security issue)
  123. ## this setting has no influence on AnonDirName (see there)
  124. ## set this to an empty value to disable anonymous
  125. ### Default: nobody
  126.  
  127. #AnonUser nobody
  128.  
  129. ### Key: LowerCase (config)
  130. ## This options allows to check user names given to CUPS-PDF additionally
  131. ## against their lower case variants. This is necessary since in some
  132. ## Windows environments only upper case user names are passed. Usually UNIX
  133. ## user names are all lower case and it is save to use this option
  134. ## but be aware that it can lead to mis-identifications in case
  135. ## you have user names that differ only in upper/lower case.
  136. ## check only against user name as passed to CUPS : 0
  137. ## check additionally against lower case user name : 1
  138. ### Default: 1
  139.  
  140. #LowerCase 1
  141.  
  142. ### Key: UserPrefix (config)
  143. ## some installations require a domain prefix added to the user name
  144. ## leave empty for no prefix
  145. ### Default: <empty>
  146.  
  147. #UserPrefix
  148.  
  149. ### Key: DirPrefix (config)
  150. ## if a prefix was defined above this switch toggels whether to include
  151. ## the prefix in the output directory's name (if not $HOME) or not
  152. ## 0: do not include, 1: include
  153. ### Default: 0
  154.  
  155. #DirPrefix 0
  156.  
  157. ### Key: RemovePrefix (config)
  158. ## some installation pass usernames with a prefix (usually a domain name)
  159. ## if you do not want this prefix to be used by the ${USER} variable for
  160. ## output directories put the part which is to be cut here
  161. ### Default: <empty>
  162.  
  163. #RemovePrefix
  164.  
  165.  
  166. ###########################################################################
  167. # #
  168. # Security Settings #
  169. # #
  170. ###########################################################################
  171.  
  172. ### Key: AnonUMask (config)
  173. ## umask for anonymous output
  174. ## these are the _inverse_ permissions to be granted
  175. ### Default: 0000
  176.  
  177. #AnonUMask 0000
  178.  
  179. ### Key: UserUMask (config, lptoptions)
  180. ## umask for user output of known users
  181. ## changing this can introduce security leaks if confidential
  182. ## information is processed!
  183. ### Default: 0077
  184.  
  185. #UserUMask 0077
  186.  
  187. ### Key: Grp (config)
  188. ## group cups-pdf is supposed to run as - this will also be the gid for all
  189. ## created directories and log files
  190. ### Default: cups
  191.  
  192. Grp cups
  193.  
  194. ### Key: AllowUnsafeOptions (config)
  195. ## DON'T CHANGE THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING
  196. ## set to 1 in order to allow users to override any option - including
  197. ## those that pose SEVERE SECURITY RISKS, set to 0 for full security
  198. ### Default: 0
  199.  
  200. #AllowUnsafeOptions 0
  201.  
  202.  
  203. ###########################################################################
  204. # #
  205. # Log Settings #
  206. # #
  207. ###########################################################################
  208.  
  209. ### Key: Log (config)
  210. ## CUPS-PDF log directory
  211. ## set this to an empty value to disable all logging
  212. ### Default: /var/log/cups
  213.  
  214. #Log /var/log/cups
  215.  
  216. ### Key: LogType (config, ppd)
  217. ## log-mode
  218. ## 1: errors
  219. ## 2: status (i.e. activity)
  220. ## 4: debug - this will generate a lot of log-output!
  221. ## add up values to combine options, i.e. 7 is full logging
  222. ## if logging is disabled these setting have no effect
  223. ### Default: 3
  224.  
  225. #LogType 3
  226.  
  227.  
  228. ###########################################################################
  229. # #
  230. # PDF Conversion Settings #
  231. # #
  232. ###########################################################################
  233.  
  234. ### Key: GhostScript (config)
  235. ## location of GhostScript binary (gs)
  236. ## MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
  237. ## or its proper location on your system
  238. ### Default: /usr/bin/gs
  239.  
  240. #GhostScript /usr/bin/gs
  241.  
  242. ### Key: GSTmp (config)
  243. ## location of temporary files during GhostScript operation
  244. ## this must be user-writable like /var/tmp or /tmp !
  245. ### Default: /var/tmp
  246.  
  247. #GSTmp /var/tmp
  248.  
  249. ### Key: GSCall (config)
  250. ## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
  251. ## MacOSX: for using pstopdf set this to %s %s -o %s %s
  252. ### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
  253.  
  254. #GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
  255.  
  256. ### Key: PDFVer (config, ppd, lptopions)
  257. ## PDF version to be created - can be "1.5", "1.4", "1.3" or "1.2"
  258. ## MacOSX: for using pstopdf set this to an empty value
  259. ### Default: 1.4
  260.  
  261. #PDFVer 1.4
  262.  
  263. ### Key: PostProcessing (config, lptoptions)
  264. ## postprocessing script that will be called after the creation of the PDF
  265. ## as arguments the filename of the PDF, the username as determined by
  266. ## CUPS-PDF and the one as given to CUPS-PDF will be passed
  267. ## the script will be called with user privileges
  268. ## set this to an empty value to use no postprocessing
  269. ### Default: <empty>
  270.  
  271. #PostProcessing
  272.  
  273.  
  274. ###########################################################################
  275. # #
  276. # Experimental Settings #
  277. # These settings activate experimental options. If you decide to use #
  278. # them I would appreciate any feedback - including an 'ok' if they #
  279. # work as expected - so I can eventually put them into the non- #
  280. # experimental sections. #
  281. # #
  282. ###########################################################################
  283.  
  284. ### Key: DecodeHexStrings (config)
  285. ## this option will try to decode hex strings in the title to allow
  286. ## internationalized titles
  287. ## (have a look at pstitleconv on www.cups-pdf.de for a suitable filter
  288. ## for data from Windows clients)
  289. ## 0: disable, 1: enable
  290. ### Default: 0
  291.  
  292. #DecodeHexStrings 0
  293.  
  294. ### Key: FixNewlines (config)
  295. ## this option will try to fix various unusal line delimiters (e.g.
  296. ## form feeds)
  297. ## especially useful when using non-Linux-generated files
  298. ## 0: disable, 1: enable
  299. ### Default: 0
  300.  
  301. #FixNewlines 0
  302.  
Advertisement
Add Comment
Please, Sign In to add comment