NoPaste

cups-pdf.conf

von KBDCALLS

SNIPPET_TEXT:
  1. #  cups-pdf.conf -- CUPS Backend Configuration (version 2.6.1, 2011-10-04)
  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. #                                                                         #
  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. ##  on Ubuntu, the cupsd AppArmor profile needs to be updated
  42. ##  to match the output path as per instructions in LP:147551
  43. ### Default: /var/spool/cups-pdf/${USER}
  44.  
  45. Out ${HOME}/PDF
  46.  
  47. ### Key: AnonDirName
  48. ##  ABSOLUTE path for anonymously created PDF files
  49. ##  if anonymous access is disabled this setting has no effect
  50. ### Default: /var/spool/cups-pdf/ANONYMOUS
  51.  
  52. #AnonDirName /var/spool/cups-pdf/ANONYMOUS
  53.  
  54. ### Key: Spool
  55. ##  CUPS-PDF spool directory - make sure there is no user 'SPOOL' on your
  56. ##  system or change the path  
  57. ### Default: /var/spool/cups-pdf/SPOOL
  58.  
  59. #Spool /var/spool/cups-pdf/SPOOL
  60.  
  61.  
  62. ###########################################################################
  63. #                                                                         #
  64. # Filename Settings                                                       #
  65. #                                                                         #
  66. ###########################################################################
  67.  
  68. ### Key: Truncate
  69. ##  truncate long filenames to a maximum of <Truncate> characters
  70. ##  this does not consider the full path to the output but only the filename
  71. ##  without the .pdf-extension or a job-id prefix (see 'Label')
  72. ##  the minimal value is 8
  73. ### Default: 64
  74.  
  75. #Truncate 64
  76.  
  77. ### Key: Cut
  78. ##  removing file name extensions before appending .pdf to output
  79. ##  extensions will only be removed if _both_ the following criteria are met:
  80. ##   - the extension (w/o the dot) is not longer than <Cut> characters
  81. ##   - the remaining filename has a minimal length of 1 character
  82. ##  set Cut to -1 in order to disable cutting
  83. ##  recommended values: pure UNIX environment : -1
  84. ##                      mixed environments    :  3
  85. ### Default: 3
  86.  
  87. #Cut 3
  88.  
  89. ### Key: Label
  90. ##  label all jobs with a unique job-id in order to avoid overwriting old
  91. ##  files in case new ones with identical names are created; always true for
  92. ##  untitled documents
  93. ##  0: label untitled documents only
  94. ##  1: label all documents with a preceeding "job_#-"
  95. ##  2: label all documents with a tailing "-job_#"
  96. ### Default: 0
  97.  
  98. # Label 0
  99.  
  100. Label 2 # added 09.10.2016
  101.  
  102. ### Key: TitlePref
  103. ##  where to look first for a title when creating the output filename
  104. ##  (title in PS file or title on commandline):
  105. ##  0: prefer title from %Title statement in the PS file
  106. ##  1: prefer title passed via commandline
  107. ### Default: 0
  108.  
  109. #TitlePref 0
  110.  
  111. TitlePref 1 # added 09.10.2016
  112.  
  113. ###########################################################################
  114. #                                                                         #
  115. # User Settings                                                           #
  116. #                                                                         #
  117. ###########################################################################
  118.  
  119. ### Key: AnonUser
  120. ##  uid for anonymous PDF creation (this might be a security issue)
  121. ##  this setting has no influence on AnonDirName (see there)
  122. ##  set this to an empty value to disable anonymous
  123. ### Default: nobody
  124.  
  125. #AnonUser nobody
  126.  
  127. ### Key: LowerCase
  128. ##  This options allows to check user names given to CUPS-PDF additionally
  129. ##  against their lower case variants. This is necessary since in some
  130. ##  Windows environments only upper case user names are passed. Usually UNIX
  131. ##  user names are all lower case and it is save to use this option  
  132. ##  but be aware that it can lead to mis-identifications in case
  133. ##  you have user names that differ only in upper/lower case.
  134. ##     check only against user name as passed to CUPS  : 0
  135. ##     check additionally against lower case user name : 1
  136. ### Default: 1
  137.  
  138. #LowerCase 1
  139.  
  140. ### Key: UserPrefix
  141. ##  some installations require a domain prefix added to the user name
  142. ##  leave empty for no prefix
  143. ### Default: <empty>
  144.  
  145. #UserPrefix
  146.  
  147. ### Key: DirPrefix
  148. ##  if a prefix was defined above this switch toggels whether to include
  149. ##  the prefix in the output directory's name (if not $HOME) or not
  150. ##  0: do not include, 1: include
  151. ### Default: 0
  152.  
  153. #DirPrefix 0
  154.  
  155. ### Key: RemovePrefix
  156. ##  some installation pass usernames with a prefix (usually a domain name)
  157. ##  if you do not want this prefix to be used by the ${USER} variable for
  158. ##  output directories put the part which is to be cut here
  159. ### Default: <empty>
  160.  
  161. #RemovePrefix
  162.  
  163.  
  164. ###########################################################################
  165. #                                                                         #
  166. # Security Settings                                                       #
  167. #                                                                         #
  168. ###########################################################################
  169.  
  170. ### Key: AnonUMask
  171. ##  umask for anonymous output
  172. ##  these are the _inverse_ permissions to be granted
  173. ### Default: 0000
  174.  
  175. #AnonUMask 0000
  176.  
  177. ### Key: UserUMask
  178. ##  umask for user output of known users
  179. ##  changing this can introduce security leaks if confidential
  180. ##  information is processed!
  181. ### Default: 0077
  182.  
  183. #UserUMask 0077
  184.  
  185. ### Key: Grp
  186. ##  group cups-pdf is supposed to run as - this will also be the gid for all
  187. ##  created directories and log files
  188. ### Default: lp
  189.  
  190. Grp lpadmin
  191.  
  192.  
  193. ###########################################################################
  194. #                                                                         #
  195. # Log Settings                                                            #
  196. #                                                                         #
  197. ###########################################################################
  198.  
  199. ### Key: Log
  200. ##  CUPS-PDF log directory
  201. ##  set this to an empty value to disable all logging
  202. ### Default: /var/log/cups
  203.  
  204. #Log /var/log/cups
  205.  
  206. ### Key: LogType
  207. ##  log-mode
  208. ##  1: errors
  209. ##  2: status (i.e. activity)
  210. ##  4: debug - this will generate a lot of log-output!
  211. ##  add up values to combine options, i.e. 7 is full logging
  212. ##  if logging is disabled these setting have no effect
  213. ### Default: 3
  214.  
  215. #LogType 3
  216.  
  217.  
  218. ###########################################################################
  219. #                                                                         #
  220. # PDF Conversion Settings                                                 #
  221. #                                                                         #
  222. ###########################################################################
  223.  
  224. ### Key: GhostScript
  225. ##  location of GhostScript binary (gs)
  226. ##  MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
  227. ##          or its proper location on your system
  228. ### Default: /usr/bin/gs
  229.  
  230. #GhostScript /usr/bin/gs
  231.  
  232. ### Key: GSTmp
  233. ##  location of temporary files during GhostScript operation
  234. ##  this must be user-writable like /var/tmp or /tmp !
  235. ### Default: /var/tmp
  236.  
  237. #GSTmp /var/tmp
  238.  
  239. ### Key: GSCall
  240. ## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
  241. ## MacOSX: for using pstopdf set this to %s %s -o %s %s
  242. ### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
  243.  
  244. #GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
  245.  
  246. ### Key: PDFVer
  247. ##  PDF version to be created - can be "1.5", "1.4", "1.3" or "1.2"
  248. ##  MacOSX: for using pstopdf set this to an empty value
  249. ### Default: 1.4
  250.  
  251. #PDFVer 1.4
  252.  
  253. ### Key: PostProcessing
  254. ##  postprocessing script that will be called after the creation of the PDF
  255. ##  as arguments the filename of the PDF, the username as determined by
  256. ##  CUPS-PDF and the one as given to CUPS-PDF will be passed
  257. ##  the script will be called with user privileges
  258. ##  set this to an empty value to use no postprocessing
  259. ### Default: <empty>
  260.  
  261. #PostProcessing
  262.  
  263.  
  264. ###########################################################################
  265. #                                                                         #
  266. # Experimental Settings                                                   #
  267. #   These settings activate experimental options. If you decide to use    #
  268. #   them I would appreciate any feedback - including an 'ok' if they      #
  269. #   work as expected - so I can eventually put them into the non-         #
  270. #   experimental sections.                                                #
  271. #                                                                         #
  272. ###########################################################################
  273.  
  274. ### Key: DecodeHexStrings
  275. ##  this option will try to decode hex strings in the title to allow
  276. ##  internationalized titles
  277. ##  (have a look at contrib/pstitleconv for a suitable filter for data
  278. ##   from Windows clients)
  279. ##  0: disable, 1: enable
  280. ### Default: 0
  281.  
  282. DecodeHexStrings 1
  283.  
  284. ### Key: FixNewlines
  285. ##  this option will try to fix various unusal line delimiters (e.g.
  286. ##  form feeds)
  287. ##  especially useful when using non-Linux-generated files
  288. ##  0: disable, 1: enable
  289. ### Default: 0
  290.  
  291. #FixNewlines 0

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN