1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <!-- SECTION: Specifications -->
5 <title>CUPS PPD Extensions
</title>
6 <meta name='keywords' content='Programming, PostScript Printer Description'
>
7 <link rel='stylesheet' type='text/css' href='../cups-printable.css'
>
11 "$Id: spec-ppd.html 7937 2008-09-11 16:16:41Z mike $"
13 CUPS PPD extensions specification for CUPS.
15 Copyright 2007-2010 by Apple Inc.
16 Copyright 1997-2007 by Easy Software Products.
18 These coded instructions, statements, and computer programs are the
19 property of Apple Inc. and are protected by Federal copyright
20 law. Distribution and use rights are outlined in the file "LICENSE.txt"
21 which should have been included with this file. If this file is
22 file is missing or damaged, see the license at "http://www.cups.org/".
25 <H1 CLASS=
"title">CUPS PPD Extensions
</H1>
27 <h2 class='title'
><a name='INTRODUCTION'
>Introduction
</a></h2>
29 <p>This specification describes the attributes and extensions
31 href=
"http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf">
32 Adobe TechNote #
5003: PostScript Printer Description File Format
33 Specification Version
4.3</a>. PostScript Printer Description
34 (
"PPD") files describe the capabilities of each printer and are
35 used by CUPS to support printer-specific features and intelligent
38 <h2 class='title'
><a name='SYNTAX'
>PPD File Syntax
</a></h2>
40 <p>The PPD format is text-based and uses lines of up to
255
41 characters terminated by a carriage return, linefeed, or
42 combination of carriage return and line feed. The following ABNF
43 definition [RFC4234] defines the general format of lines in a PPD
47 PPD-FILE = HEADER +(DATA / COMMENT / LINE-END)
49 HEADER =
"*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END
51 VERSION =
"4.0" /
"4.1" /
"4.2" /
"4.3"
53 COMMENT =
"*%" *TCHAR LINE-END
55 DATA =
"*" 1*KCHAR [ WSP
1*KCHAR [
"/" 1*TCHAR ] ]
":"
56 1*(*WSP VALUE) LINE-END
58 VALUE =
1*TCHAR / DQUOTE
1*SCHAR DQUOTE
60 KCHAR = ALPHA / DIGIT /
"_" /
"." /
"-"
62 SCHAR = LINE-END / WSP / %x21.23-
7E.A0-FF
66 LINE-END = CR / LF / CR LF
70 <h2 class='title'
><a name='AUTOCONFIG'
>Auto-Configuration
</a></h2>
72 <p>CUPS supports several methods of auto-configuration via PPD attributes.
73 <em>Currently these methods are only implemented on Mac OS X.
</em></p>
75 <h3><span class='info'
>Mac OS X
10.5</span><a name='APAutoSetupTool'
>APAutoSetupTool
</a></h3>
77 <p class='summary'
>*APAutoSetupTool:
"/LibraryPrinters/vendor/filename"</p>
79 <p>This attribute defines a program that sets the default option choices. It
80 is run when a printer is added from the printer browser instead of the
81 normal PostScript query and SNMP OID attribute lookups.
</p>
83 <p>The program is provided with two arguments: the printer's device URI and
84 the PPD file to be used for the printer. The program must write an updated
85 PPD file to stdout.
</p>
90 *% Use our setup tool when adding a printer
91 *APAutoSetupTool:
"/Library/Printers/vendor/Tools/autosetuptool"
94 <h3><span class='info'
>Mac OS X
10.2</span><a name='QUERYKEYWORD'
>?MainKeyword
</a></h3>
96 <p class='summary'
>*?
<i>MainKeyword
</i>:
"<br>
97 PostScript query code that writes a message using the = operator...<br>
101 <p>The
<tt>?
<i>MainKeyword
</i></tt> attribute defines PostScript code that
102 determines the currently selected/enabled option keyword (choice) for the
103 main keyword (option). It is typically used when communicating with USB,
104 serial, Appletalk, and AppSocket (port
9100) printers.
</p>
106 <p>The PostScript code typically sends its response back using the
<tt>=
</tt>
111 <pre class='command'
>
112 *OpenUI OptionDuplex/Duplexer Installed: Boolean
113 *DuplexOptionDuplex: False
114 *OptionDuplex False/Not Installed:
""
115 *OptionDuplex True/Installed:
""
117 <em>*% Query the printer for the presence of the duplexer option...
</em>
119 currentpagedevice /Duplex known
120 {(True)} {(False)} ifelse
124 *CloseUI: OptionDuplex
127 <h3><span class='info'
>Mac OS X
10.4</span><a name='OID'
>OIDMainKeyword
</a></h3>
129 <p class='summary'
>*?OID
<i>MainKeyword
</i>:
".n.n.n..."<br>
130 *OID
<i>MainKeyword
</i> <i>OptionKeyword1
</i>:
"value"<br>
132 *OID
<i>MainKeyword
</i> <i>OptionKeywordN
</i>:
"value"</p>
134 <p>The
<tt>OID
<i>MainKeyword
</i></tt> attribute is used to define
135 SNMP OIDs that map to installable options. The first (query) line
136 defines the OID to lookup on the network device. The second and
137 subsequent attributes define a mapping from OID value to option
138 keyword. Since SNMP is an IP-based network protocol, this method
139 is typically only used to configure AppSocket, IPP, and LPD network
144 <pre class='command'
>
145 *% Get the installed memory on the printer...
146 *?OIDInstalledMemory:
".1.3.6.1.2.1.25.2.2.0"
147 *OIDInstalledMemory
16MB:
"16384 KBytes"
148 *OIDInstalledMemory
32MB:
"32768 KBytes"
149 *OIDInstalledMemory
48MB:
"49152 KBytes"
150 *OIDInstalledMemory
72MB:
"73728 KBytes"
154 <h2 class='title'
><a name='PROFILES'
>Color Profiles
</a></h2>
156 <p>CUPS supports three types of color profiles. The first type is
157 based on sRGB and is used by the standard CUPS raster filters and
158 GPL Ghostscript. The second type is based on ICC profiles and is
159 used by the Quartz-based filters on MacOS X. The final type is
160 based on well-known colorspaces such as sRGB and Adobe RGB.
</p>
162 <blockquote><b>Note:
</b>
164 <p>At this time, none of the CUPS raster filters support ICC profiles. This
165 will be addressed as time and resources permit.
</p>
169 <h3><span class='info'
>Deprecated
</span><a name='cupsColorProfile'
>cupsColorProfile
</a></h3>
171 <p class='summary'
>*cupsColorProfile Resolution/MediaType:
"density
172 gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"</p>
174 <p>This string attribute specifies an sRGB-based color profile
175 consisting of gamma and density controls and a
3x3 CMY color
176 transform matrix.
<em>This attribute is not supported on Mac OS X.
</em></p>
178 <p>The
<i>Resolution
</i> and
<i>MediaType
</i> values may be
"-"
179 to act as a wildcard. Otherwise they must match one of the
180 <tt>Resolution
</tt> or
<tt>MediaType
</tt> attributes defined in
183 <p>The
<i>density
</i> and
<i>gamma
</i> values define gamma and
184 density adjustment function such that:
</p>
186 <pre class='command'
>
187 f(x) = density * x
<sup style='font-size:
100%'
>gamma
</sup>
190 <p>The
<i>m00
</i> through
<i>m22
</i> values define a
3x3
191 transformation matrix for the CMY color values. The density
192 function is applied
<i>after
</i> the CMY transformation:
</p>
194 <pre class='command'
>
202 <pre class='command'
>
203 <em>*% Specify a profile for printing at
360dpi on all media types
</em>
204 *cupsColorProfile
360dpi/-:
"1.0 1.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
206 <em>*% Specify a profile for printing at
720dpi on Glossy media
</em>
207 *cupsColorProfile
720dpi/Glossy:
"1.0 2.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
209 <em>*% Specify a default profile for printing at all other resolutions and media types
</em>
210 *cupsColorProfile -/-:
"0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
214 <h3><span class='info'
>Mac OS X
10.3/CUPS
1.2/Mac OS X
10.5</span><a name='cupsICCProfile'
>cupsICCProfile
</a></h3>
216 <p class='summary'
>*cupsICCProfile
217 ColorModel.MediaType.Resolution/Description:
"filename"</p>
219 <p>This attribute specifies an ICC color profile that is
220 used to convert the document colors to the device
221 colorspace. The
<tt>ColorModel
</tt>,
<tt>MediaType
</tt>, and
222 <tt>Resolution
</tt> keywords specify a selector for color
223 profiles. If omitted, the color profile will match any option
224 keyword for the corresponding main keyword.
</p>
226 <p>The
<tt>Description
</tt> specifies human-readable text that
227 is associated with the color profile. The
<tt>filename
</tt>
228 portion specifies the ICC color profile to use; if the filename
229 is not absolute, it is loaded relative to the
230 <var>/usr/share/cups/profiles
</var> directory.
</p>
234 <pre class='command'
>
235 <em>*% Specify a profile for CMYK printing at
360dpi on all media types
</em>
236 *cupsICCProfile CMYK.
.360dpi/
360dpi CMYK:
"/Library/Printers/vendor/Profiles/foo-360-cmyk.icc"
238 <em>*% Specify a profile for RGB printing at
720dpi on Glossy media
</em>
239 *cupsColorProfile RGB.Glossy
.720dpi/
720dpi Glossy:
"/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc"
241 <em>*% Specify a default profile for printing at all other resolutions and media types
</em>
242 *cupsICCProfile ../Default:
"/Library/Printers/vendor/Profiles/foo-default.icc"
245 <h4>Customizing the Profile Selection Keywords
</h4>
247 <p>The
<tt>MediaType
</tt> and
<tt>Resolution
</tt> keywords can be
248 reassigned to different main keywords, allowing drivers to do
249 color profile selection based on different parameters. The
250 <tt>cupsICCQualifier2
</tt> and
<tt>cupsICCQualifier3
</tt>
251 attributes define the mapping from selector to main keyword:
</p>
253 <pre class='command'
>
254 *cupsICCQualifier2: MainKeyword2
255 *cupsICCQualifier3: MainKeyword3
258 <p>The default mapping is as follows:
</p>
260 <pre class='command'
>
261 *cupsICCQualifier2: MediaType
262 *cupsICCQualifier3: Resolution
265 <h3><span class='info'
>Mac OS X
10.4</span><a name='APCustom'
>Custom Color Matching Support
</a></h3>
267 <p class='summary'
>*
<a href='#APSupportsCustomColorMatching'
>APSupportsCustomColorMatching
</a>: true
<br>
268 *
<a href='#APCustomColorMatchingName'
>APCustomColorMatchingName
</a> name/text:
""<br>
269 *
<a href='#APCustomColorMatchingProfile'
>APCustomColorMatchingProfile
</a>: profile
<br>
270 *
<a href='#APDefaultCustomColorMatchingProfile'
>APDefaultCustomColorMatchingProfile
</a>: profile
</p>
272 <p>These attributes tell the Mac OS X raster filters that the printer
273 driver provides its own custom color matching and that generic color
274 profiles should be used when generating
1-,
3-, and
4-component raster
275 data as requested by the driver. The
<tt>APCustomColorMatchingProfile
</tt>
276 and
<tt>APDefaultColorMatchingProfile
</tt> attributes specify alternate
277 color profiles (sRGB or AdobeRGB) to use for
3-color (RGB) raster data.
</p>
279 <blockquote><b>Note:
</b>
281 <p>Prior to Mac OS X
10.6, the default RGB color space was Apple's
"GenericRGB".
282 The new default in Mac OS X
10.6 and later is
"sRGB". For more information, see
283 <a href=
"http://support.apple.com/kb/HT3712">"Mac OS X v10.6: About gamma
284 2.2"</a> on Apple's support site.
</p>
288 <h4><span class='info'
>Mac OS X
10.5</span><a name='APCustomColorMatchingName'
>APCustomColorMatchingName
</a></h4>
290 <p class='summary'
>*APCustomColorMatchingName name/text:
""</p>
292 <p>This attribute defines an alternate name for the color matching
293 provided by a driver in the
<var>Color Matching
</var> print panel.
294 The default is to use the name
"Vendor Matching" or its localized
299 <pre class='command'
>
300 *% Define the names for our color matching...
301 *APCustomColorMatchingName name/AcmeColor(tm):
""
302 *fr.APCustomColorMatchingName name/La AcmeColor(tm):
""
305 <h4><span class='info'
>Mac OS X
10.5</span><a name='APCustomColorMatchingProfile'
>APCustomColorMatchingProfile
</a></h4>
307 <p class='summary'
>*APCustomColorMatchingProfile: name
</p>
309 <p>This attribute defines a supported RGB color profile that can be used
310 when doing custom color matching. Currently only
<tt>sRGB
</tt>,
311 <tt>AdobeRGB
</tt>, and
<tt>GenericRGB
</tt> are supported. If not specified, RGB
312 data will use the GenericRGB colorspace.
</p>
314 <blockquote><b>Note:
</b>
316 <p>If you provide multiple
<tt>APCustomColorMatchingProfile
</tt> attributes,
317 you are responsible for providing the necessary user interface controls to
318 select the profile in a
<a href='#APDialogExtension'
>print dialog pane
</a>.
319 Add the named profile to the print settings using the key
320 <tt>kPMCustomColorMatchingProfileKey
</tt>.
</p>
326 <pre class='command'
>
327 *% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB
328 *APSupportsCustomColorMatching: true
329 *APDefaultCustomColorMatchingProfile: sRGB
330 *APCustomColorMatchingProfile: sRGB
331 *APCustomColorMatchingProfile: AdobeRGB
334 <h4><span class='info'
>Mac OS X
10.5</span><a name='APDefaultCustomColorMatchingProfile'
>APDefaultCustomColorMatchingProfile
</a></h4>
336 <p class='summary'
>*APDefaultCustomColorMatchingProfile: name
</p>
338 <p>This attribute defines the default RGB color profile that will be used
339 when doing custom color matching. Currently only
<tt>sRGB
</tt>,
340 <tt>AdobeRGB
</tt>, and
<tt>GenericRGB
</tt> are supported.
</p>
344 <pre class='command'
>
345 *% Use sRGB for RGB color by default
346 *APSupportsCustomColorMatching: true
347 *APDefaultCustomColorMatchingProfile: sRGB
350 <h4><span class='info'
>Mac OS X
10.4</span><a name='APSupportsCustomColorMatching'
>APSupportsCustomColorMatching
</a></h4>
352 <p class='summary'
>*APSupportsCustomColorMatching: boolean
</p>
354 <p>This attribute specifies that the driver provides its own custom color
355 matching. When
<tt>true
</tt>, the default hand-off colorspace will be
356 GenericGray, GenericRGB, or GenericCMYK depending on the number of
357 components the driver requests. The
<a
358 href='#APDefaultCustomColorMatchingProfile'
><tt>APDefaultCustomColorMatchingProfile
</tt></a>
359 attribute can be used to override the default
3-component (RGB) colorspace.
</p>
361 <p>The default for
<tt>APSupportsCustomColorMatching
</tt> is
<tt>false
</tt>.
</p>
365 <pre class='command'
>
366 *APSupportsCustomColorMatching: true
367 *APDefaultCustomColorMatchingProfile: sRGB
371 <h2 class='title'
><a name='CONSTRAINTS'
>Constraints
</a></h2>
373 <p>Constraints are option choices that are not allowed by the driver or
374 device, for example printing
2-sided transparencies. All versions of CUPS
375 support constraints defined by the legacy Adobe
<tt>UIConstraints
</tt> and
376 <tt>NonUIConstraints
</tt> attributes which support conflicts between any two
377 option choices, for example:
</p>
379 <pre class='command'
>
380 *% Do not allow
2-sided printing on transparency media
381 *UIConstraints:
"*Duplex *MediaType Transparency"
382 *UIConstraints:
"*MediaType Transparency *Duplex"
385 <p>While nearly all constraints can be expressed using these attributes, there
386 are valid scenarios requiring constraints between more than two option choices.
387 In addition, resolution of constraints is problematic since users and software
388 have to guess how a particular constraint is best resolved.
</p>
390 <p>CUPS
1.4 and higher define two new attributes for constraints,
391 <tt>cupsUIConstraints
</tt> and
<tt>cupsUIResolver
</tt>. Each
392 <tt>cupsUIConstraints
</tt> attribute points to a
<tt>cupsUIResolver
</tt>
393 attribute which specifies alternate options that resolve the conflict condition.
394 The same
<tt>cupsUIResolver
</tt> can be used by multiple
395 <tt>cupsUIConstraints
</tt>.
</p>
397 <blockquote><b>Note:
</b>
399 <p>When developing PPD files that contain constraints, it is very important
400 to use the
<a href=
"man-cupstestppd.html">cupstestppd(
1)
</a> program to
401 verify that your constraints are accurate and cannot result in unresolvable
402 option selections.
</p>
406 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsUIConstraints'
>cupsUIConstraints
</a></h3>
408 <p class='summary'
>*cupsUIConstraints resolver:
"*Keyword1 *Keyword2 ..."<br>
409 *cupsUIConstraints resolver:
"*Keyword1 OptionKeyword1 *Keyword2 ..."<br>
410 *cupsUIConstraints resolver:
"*Keyword1 *Keyword2 OptionKeyword2 ..."<br>
411 *cupsUIConstraints resolver:
"*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."<br>
412 *cupsUIConstraints:
"*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
414 <p>Lists two or more options which conflict. The
"resolver" string is a
415 (possibly unique) keyword which specifies which options to change when the
416 constraint exists. When no resolver is provided, CUPS first tries the default
417 choice followed by testing each option choice to resolve the conflict.
</p>
421 <pre class='command'
>
422 <em>*% Specify that
2-sided printing cannot happen on transparencies
</em>
423 *cupsUIConstraints transparency:
"*Duplex *MediaType Transparency"
425 <em>*% Specify that envelope printing cannot happen from the paper trays
</em>
426 *cupsUIConstraints envelope:
"*PageSize Env10 *InputSlot Tray1"
427 *cupsUIConstraints envelope:
"*PageSize Env10 *InputSlot Tray1"
428 *cupsUIConstraints envelope:
"*PageSize EnvDL *InputSlot Tray2"
429 *cupsUIConstraints envelope:
"*PageSize EnvDL *InputSlot Tray2"
431 <em>*% Specify an installable option constraint for the envelope feeder
</em>
432 *cupsUIConstraints:
"*InputSlot EnvFeeder *InstalledEnvFeeder"
434 <em>*% Specify that photo printing cannot happen on plain paper or transparencies at
1200dpi
</em>
435 *cupsUIConstraints photo:
"*OutputMode Photo *MediaType Plain *Resolution 1200dpi"
436 *cupsUIConstraints photo:
"*OutputMode Photo *MediaType Transparency *Resolution 1200dpi"
439 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsUIResolver'
>cupsUIResolver
</a></h3>
441 <p class='summary'
>*cupsUIResolution resolver:
"*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
443 <p>Specifies two or more options to mark/select to resolve a constraint. The
444 "resolver" string identifies a particular action to take for one or more
445 <a href='#cupsUIConstraints'
><tt>cupsUIConstraints
</tt></a>. The same action
446 can be used for multiple constraints. The option keyword pairs are treated as
447 an ordered list of option selections to try - only the first N selections will
448 be used, where N is the minimum number of selections required. Because
449 <a href=
"api-ppd.html#cupsResolveConflicts"><code>cupsResolveConflicts()
</code></a>
450 will not change the most recent option selection passed to it, at least two
451 options from the constraints must be listed to avoid situations where conflicts
452 cannot be resolved.
</p>
456 <pre class='command'
>
457 <em>*% Specify the options to change for the
2-sided transparency constraint
</em>
458 *cupsUIResolver transparency:
"*Duplex None *MediaType Plain"
460 <em>*% Specify the options to change for the envelope printing constraints. Notice
461 *% that we try to change the InputSlot to either the envelope feeder or the
462 *% manual feed first, then we change the page size...
</em>
463 *cupsUIResolver envelope:
"*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter"
465 <em>*% Specify the options to change for the photo printing constraints
</em>
466 *cupsUIResolver photo:
"*OutputMode Best *Resolution 600dpi"
470 <h2 class='title'
><a name='I18N'
>Globalized PPD Support
</a></h2>
472 <p>CUPS
1.2 and higher adds support for PPD files containing multiple
473 languages by following the following additional rules:
</p>
477 <li>The
<tt>LanguageVersion
</tt> MUST be
<tt>English
</tt></li>
479 <li>The
<tt>LanguageEncoding
</tt> MUST be
<tt>ISOLatin1
</tt></li>
481 <li>The
<tt>cupsLanguages
</tt> attribute MUST be provided and
482 list each of the supported locales in the PPD file
</li>
484 <li>Main and option keywords MUST NOT exceed
34 (instead of
40)
485 characters to allow room for the locale prefixes in translation
488 <li>The main keyword
"Translation" MUST NOT be used
</li>
490 <li>Translation strings included with the main and option
491 keywords MUST NOT contain characters outside the ASCII
492 subset of ISOLatin1 and UTF-
8; developers wishing to use
493 characters outside ASCII MUST provide a separate set of
494 English localization attributes for the affected keywords.
</li>
496 <li>Localizations are specified using a locale prefix of
497 the form
"ll" or
"ll_CC." where
"ll" is the
2-letter ISO
498 language code and
"CC" is the
2-letter ISO country
500 <li>A generic language translation (
"ll") SHOULD be provided with country-specific differences (
"ll_CC") provided only as needed
</li>
501 <li>For historical reasons, the
"zh" and
"zh_CN" locales map to Simplified Chinese while the
"zh_TW" locale maps to Traditional Chinese
</li>
504 <li>Locale-specific translation strings MUST be encoded
507 <li>Main keywords MUST be localized using one of the
509 <p><tt>*ll.Translation MainKeyword/translation
511 <tt>*ll_CC.Translation MainKeyword/translation
512 text:
""</tt></p></li>
514 <li>Option keywords MUST be localized using one of the
516 <p><tt>*ll.MainKeyword OptionKeyword/translation
518 <tt>*ll_CC.MainKeyword OptionKeyword/translation
519 text:
""</tt></p></li>
521 <li>Localization attributes MAY appear anywhere after the
522 first line of the PPD file
</li>
526 <blockquote><b>Note:
</b>
528 <p>We use a
<tt>LanguageEncoding
</tt> value of
<tt>ISOLatin1
</tt>
529 and limit the allowed base translation strings to ASCII to avoid
530 character coding issues that would otherwise occur. In addition,
531 requiring the base translation strings to be in English allows
532 for easier fallback translation when no localization is provided
533 in the PPD file for a given locale.
</p>
539 <pre class='command'
>
540 *LanguageVersion: English
541 *LanguageEncoding: ISOLatin1
542 *cupsLanguages:
"de fr_CA"
543 *ModelName:
"Foobar Laser 9999"
545 <em>*% Localize ModelName for French and German
</em>
546 *fr_CA.Translation ModelName/La Foobar Laser
9999:
""
547 *de.Translation ModelName/Foobar LaserDrucken
9999:
""
549 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html"
550 <em>*% Localize printer-state-reason for French and German
</em>
551 *fr_CA.cupsIPPReason com.vendor-error/Une erreur s
èrieuse s'est produite:
"/help/com.vendor/error.html"
552 *de.cupsIPPReason com.vendor-error/Eine ernste St
örung trat:
"/help/com.vendor/error.html"
556 *OpenUI *InputSlot/Paper Source: PickOne
557 *OrderDependency:
10 AnySetup *InputSlot
558 *DefaultInputSlot: Auto
559 <em>*% Localize InputSlot for French and German
</em>
560 *fr_CA.Translation InputSlot/Papier source:
""
561 *de.Translation InputSlot/Papiereinzug:
""
562 *InputSlot Auto/Default:
"<</ManualFeed false>>setpagedevice"
563 <em>*% Localize InputSlot=Auto for French and German
</em>
564 *fr_CA.InputSlot Auto/Par Defaut:
""
565 *de.InputSlot Auto/Standard:
""
566 *InputSlot Manual/Manual Feed:
"<</ManualFeed true>>setpagedevice"
567 <em>*% Localize InputSlot=Manual for French and German
</em>
568 *fr_CA.InputSlot Manual/Manuel mecanisme de alimentation:
""
569 *de.InputSlot Manual/Manueller Einzug:
""
574 <h2 class='title'
><a name='OPTIONS'
>Custom Options
</a></h2>
576 <p>CUPS supports custom options using an extension of the
577 <tt>CustomPageSize
</tt> and
<tt>ParamCustomPageSize
</tt>
580 <pre class='command'
>
581 *CustomFoo True:
"command"
582 *ParamCustomFoo Name1/Text
1: order type minimum maximum
583 *ParamCustomFoo Name2/Text
2: order type minimum maximum
585 *ParamCustomFoo NameN/Text N: order type minimum maximum
588 <p>When the base option is part of the
<tt>JCLSetup
</tt> section,
589 the
"command" string contains JCL commands with
"\order"
590 placeholders for each numbered parameter. The CUPS API handles
591 any necessary value quoting for HP-PJL commands. For example, if
592 the JCL command string is
"@PJL SET PASSCODE=\1" and the first
593 option value is
"1234" then CUPS will output the string
594 "@PJL SET PASSCODE=1234".
</p>
596 <p>For non-
<tt>JCLSetup
</tt> options, the
"order" value is a
597 number from
1 to N and specifies the order of values as they are
598 placed on the stack before the command. For example, if the
599 PostScript command string is
600 "<</cupsReal1 2 1 roll>>setpagedevice" and the
601 option value is
"2.0" then CUPS will output the string
602 "2.0 <</cupsReal1 2 1 roll>>setpagedevice".
</p>
604 <p>The
"type" is one of the following keywords:
</p>
608 <li><tt>curve
</tt> - a real value from
"minimum" to
609 "maximum" representing a gamma correction curve using the
610 function: f(x) = x
<sup>value
</sup></li>
612 <li><tt>int
</tt> - an integer value from
"minimum" to
615 <li><tt>invcurve
</tt> - a real value from
"minimum" to
616 "maximum" representing a gamma correction curve using the
617 function: f(x) = x
<sup>1 / value
</sup></li>
619 <li><tt>passcode
</tt> - a string of numbers value with a
620 minimum of
"minimum" numbers and a maximum of
"maximum"
621 numbers (
"minimum" and
"maximum" are numbers and passcode
622 strings are not displayed in the user interface)
</li>
624 <li><tt>password
</tt> - a string value with a minimum of
625 "minimum" characters and a maximum of
"maximum"
626 characters (
"minimum" and
"maximum" are numbers and password
627 strings are not displayed in the user interface)
</li>
629 <li><tt>points
</tt> - a measurement value in points from
630 "minimum" to
"maximum"</li>
632 <li><tt>real
</tt> - a real value from
"minimum" to
635 <li><tt>string
</tt> - a string value with a minimum of
636 "minimum" characters and a maximum of
"maximum"
637 characters (
"minimum" and
"maximum" are numbers)
</li>
641 <blockquote><b>Note:
</b>
643 <p>Custom options are not directly supported by the Mac OS X Print Dialog
644 nor by the CUPS web interface at this time. Vendors that use custom
645 options on Mac OS X must provide their own user interface via the
646 <a href='#APDialogExtension'
><tt>APDialogExtension
</tt></a> attribute.
</p>
652 <pre class='command'
>
653 <em>*% Base JCL key code option
</em>
654 *JCLOpenUI JCLPasscode/Key Code: PickOne
655 *OrderDependency:
10 JCLSetup *JCLPasscode
656 *DefaultJCLPasscode: None
657 *JCLPasscode None/No Code:
""
658 *JCLPasscode
1111:
"@PJL SET PASSCODE = 1111<0A>"
659 *JCLPasscode
2222:
"@PJL SET PASSCODE = 2222<0A>"
660 *JCLPasscode
3333:
"@PJL SET PASSCODE = 3333<0A>"
661 *JCLCloseUI: *JCLPasscode
663 <em>*% Custom JCL key code option
</em>
664 *CustomJCLPasscode True:
"@PJL SET PASSCODE = \1<0A>"
665 *ParamCustomJCLPasscode Code/Key Code:
1 passcode
4 4
668 <em>*% Base PostScript watermark option
</em>
669 *OpenUI WatermarkText/Watermark Text: PickOne
670 *OrderDependency:
10 AnySetup *WatermarkText
671 *DefaultWatermarkText: None
672 *WatermarkText None:
""
673 *WatermarkText Draft:
"<</cupsString1(Draft)>>setpagedevice"
674 *CloseUI: *WatermarkText
676 <em>*% Custom PostScript watermark option
</em>
677 *CustomWatermarkText True:
"<</cupsString1 3 -1 roll>>setpagedevice"
678 *ParamCustomWatermarkText Text:
1 string
0 32
681 <em>*% Base PostScript gamma/density option
</em>
682 *OpenUI GammaDensity/Gamma and Density: PickOne
683 *OrderDependency:
10 AnySetup *GammaDensity
684 *DefaultGammaDensity: Normal
685 *GammaDensity Normal/Normal:
"<</cupsReal1 1.0/cupsReal2 1.0>>setpagedevice"
686 *GammaDensity Light/Lighter:
"<</cupsReal1 0.9/cupsReal2 0.67>>setpagedevice"
687 *GammaDensity Dark/Darker:
"<</cupsReal1 1.1/cupsReal2 1.5>>setpagedevice"
688 *CloseUI: *GammaDensity
690 <em>*% Custom PostScript gamma/density option
</em>
691 *CustomGammaDensity True:
"<</cupsReal1 3 -1 roll/cupsReal2 5 -1>>setpagedevice"
692 *ParamCustomGammaDensity Gamma:
1 curve
0.1 10
693 *ParamCustomGammaDensity Density:
2 real
0 2
697 <h2 class='title'
><a name='RASTERPS'
>Writing PostScript Option Commands for Raster Drivers
</a></h2>
699 <p>PPD files are used for both PostScript and non-PostScript printers. For CUPS raster drivers, you use a subset of the PostScript language to set page device attributes such as page size, resolution, and so forth. For example, the following code sets the page size to A4 size:
</p>
701 <pre class='command'
>
702 *PageSize A4:
"<</PageSize[595 842]>>setpagedevice"
705 <p>Custom options typically use other operators to organize the values into a key/value dictionary for
<tt>setpagedevice
</tt>. For example, our previous
<tt>CustomWatermarkText
</tt> option code uses the
<tt>roll
</tt> operator to move the custom string value into the dictionary for
<tt>setpagedevice
</tt>:
</p>
707 <pre class='command'
>
708 *CustomWatermarkText True:
"<</cupsString1 3 -1 roll>>setpagedevice"
711 <p>For a custom string value of
"My Watermark", CUPS will produce the following PostScript code for the option:
</p>
713 <pre class='command'
>
715 <</cupsString1
3 -
1 roll
>>setpagedevice
718 <p>The code moves the string value (
"My Watermark") from the bottom of the stack to the top, creating a dictionary that looks like:
</p>
720 <pre class='command'
>
721 <</cupsString1(My Watermark)
>>setpagedevice
724 <p>The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.
</p>
726 <h3>Custom Page Size Code
</a></h3>
728 <p>There are many possible implementations of the
<tt>CustomPageSize
</tt> code. For CUPS raster drivers, the following code is recommended:
</p>
730 <pre class='command'
>
731 *ParamCustomPageSize Width:
1 points
<i>min-width max-width
</i>
732 *ParamCustomPageSize Height:
2 points
<i>min-height max-height
</i>
733 *ParamCustomPageSize WidthOffset:
3 points
0 0
734 *ParamCustomPageSize HeightOffset:
4 points
0 0
735 *ParamCustomPageSize Orientation:
5 int
0 0
736 *CustomPageSize True:
"pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
739 <h3>Supported PostScript Operators
</a></h3>
741 <p>CUPS supports the following PostScript operators in addition to the usual PostScript number, string (literal and hex-encoded), boolean, null, and name values:
</p>
745 <li><tt><<</tt> - Start a dictionary.
</li>
747 <li><tt>>></tt> - End a dictionary.
</li>
749 <li><tt>[
</tt> - Start an array.
</li>
751 <li><tt>]
</tt> - End an array.
</li>
753 <li><tt>copy
</tt> - Copy the top N objects on the stack.
</li>
755 <li><tt>dup
</tt> - Copy the top object on the stack.
</li>
757 <li><tt>index
</tt> - Copy the Nth from the top object on the stack.
</li>
759 <li><tt>pop
</tt> - Pop the top object on the stack.
</li>
761 <li><tt>roll
</tt> - Shift the top N objects on the stack.
</li>
763 <li><tt>setpagedevice
</tt> - Set the page header values according to the key/value dictionary on the stack.
</li>
767 <blockquote><b>Note:
</b>
769 <p><em>Never
</em> use the unsupported
<tt>dict
</tt> or
<tt>put
</tt>
770 operators in your option code. These operators are typically used in
771 option code dating back to Level
1 PostScript printers, which did not
772 support the simpler
<tt><<</tt> or
<tt>>></tt> operators.
773 If you have old option code using
<tt>dict
</tt> or
<tt>put
</tt>, you can
774 rewrite it very easily to use the newer
<tt><<</tt> and
775 <tt>>></tt> operators instead. For example, the following code
776 to set the page size:
</p>
778 <style type='text/css'
><!--
786 <pre class='command'
>
787 <b>1 dict dup
</b> /PageSize [
612 792]
<b>put
</b> setpagedevice
790 <p>can be rewritten as:
</p>
792 <pre class='command'
>
793 <b><<</b> /PageSize [
612 792]
<b>>></b> setpagedevice
798 <h3>Supported Page Device Attributes
</a></h3>
800 <p>Table
2 shows the supported page device attributes along with PostScript code examples.
</p>
803 <table summary='Supported Page Device Attributes'
>
804 <caption>Table
2:
<a name='TABLE_2'
>Supported Page Device Attributes
</a></caption>
815 <td><tt>AdvanceDistance
</tt></td>
817 <td>Specifies the number of points to advance roll media after printing.
</td>
818 <td><tt><</AdvanceDistance
18>>setpagedevice
</tt></td>
821 <td><tt>AdvanceMedia
</tt></td>
823 <td>Specifies when to advance the media:
0 = never,
1 = after the file,
2 = after the job,
3 = after the set, and
4 = after the page.
</td>
824 <td><tt><</AdvanceMedia
4>>setpagedevice
</tt></td>
827 <td><tt>Collate
</tt></td>
829 <td>Specifies whether collated copies are required.
</td>
830 <td><tt><</Collate true
>>setpagedevice
</tt></td>
833 <td><tt>CutMedia
</tt></td>
835 <td>Specifies when to cut the media:
0 = never,
1 = after the file,
2 = after the job,
3 = after the set, and
4 = after the page.
</td>
836 <td><tt><</CutMedia
1>>setpagedevice
</tt></td>
839 <td><tt>Duplex
</tt></td>
841 <td>Specifies whether
2-sided printing is required.
</td>
842 <td><tt><</Duplex true
>>setpagedevice
</tt></td>
845 <td><tt>HWResolution
</tt></td>
846 <td>Integer Array
</td>
847 <td>Specifies the resolution of the page image in pixels per inch.
</td>
848 <td><tt><</HWResolution[
1200 1200]
>>setpagedevice
</tt></td>
851 <td><tt>InsertSheet
</tt></td>
853 <td>Specifies whether to insert a blank sheet before the job.
</td>
854 <td><tt><</InsertSheet true
>>setpagedevice
</tt></td>
857 <td><tt>Jog
</tt></td>
859 <td>Specifies when to shift the media in the output bin:
0 = never,
1 = after the file,
2 = after the job,
3 = after the set, and
4 = after the page.
</td>
860 <td><tt><</Jog
2>>setpagedevice
</tt></td>
863 <td><tt>LeadingEdge
</tt></td>
865 <td>Specifies the leading edge of the media:
0 = top,
1 = right,
2 = bottom,
3 = left.
</td>
866 <td><tt><</LeadingEdge
0>>setpagedevice
</tt></td>
869 <td><tt>ManualFeed
</tt></td>
871 <td>Specifies whether media should be drawn from the manual feed tray. Note: The
<tt>MediaPosition
</tt> attribute is preferred over the
<tt>ManualFeed
</tt> attribute.
</td>
872 <td><tt><</ManualFeed true
>>setpagedevice
</tt></td>
875 <td><tt>MediaClass
</tt></td>
877 <td>Specifies a named media.
</td>
878 <td><tt><</MediaClass (Invoices)
>>setpagedevice
</tt></td>
881 <td><tt>MediaColor
</tt></td>
883 <td>Specifies the color of the media.
</td>
884 <td><tt><</MediaColor
>>setpagedevice
</tt></td>
887 <td><tt>MediaPosition
</tt></td>
889 <td>Specifies the tray or source of the media.
</td>
890 <td><tt><</MediaPosition
12>>setpagedevice
</tt></td>
893 <td><tt>MediaType
</tt></td>
895 <td>Specifies the general media type.
</td>
896 <td><tt><</MediaType (Glossy)
>>setpagedevice
</tt></td>
899 <td><tt>MediaWeight
</tt></td>
901 <td>Specifies the media weight in grams per meter
<sup>2</sup>.
</td>
902 <td><tt><</MediaWeight
100>>setpagedevice
</tt></td>
905 <td><tt>MirrorPrint
</tt></td>
907 <td>Specifies whether to flip the output image horizontally.
</td>
908 <td><tt><</MirrorPrint true
>>setpagedevice
</tt></td>
911 <td><tt>NegativePrint
</tt></td>
913 <td>Specifies whether to invert the output image.
</td>
914 <td><tt><</NegativePrint true
>>setpagedevice
</tt></td>
917 <td><tt>NumCopies
</tt></td>
919 <td>Specifies the number of copies to produce of each page.
</td>
920 <td><tt><</NumCopies
100>>setpagedevice
</tt></td>
923 <td><tt>Orientation
</tt></td>
925 <td>Specifies the orientation of the output:
0 = portrait,
1 = landscape rotated counter-clockwise,
2 = upside-down,
3 = landscape rotated clockwise.
</td>
926 <td><tt><</Orientation
3>>setpagedevice
</tt></td>
929 <td><tt>OutputFaceUp
</tt></td>
931 <td>Specifies whether to place the media face-up in the output bin/tray.
</td>
932 <td><tt><</OutputFaceUp true
>>setpagedevice
</tt></td>
935 <td><tt>OutputType
</tt></td>
937 <td>Specifies the output type name.
</td>
938 <td><tt><</OutputType (Photo)
>>setpagedevice
</tt></td>
941 <td><tt>PageSize
</tt></td>
942 <td>Integer/Real Array
</td>
943 <td>Specifies the width and length/height of the page in points.
</td>
944 <td><tt><</PageSize[
595 842]
>>setpagedevice
</tt></td>
947 <td><tt>Separations
</tt></td>
949 <td>Specifies whether to produce color separations.
</td>
950 <td><tt><</Separations true
>>setpagedevice
</tt></td>
953 <td><tt>TraySwitch
</tt></td>
955 <td>Specifies whether to switch trays automatically.
</td>
956 <td><tt><</TraySwitch true
>>setpagedevice
</tt></td>
959 <td><tt>Tumble
</tt></td>
961 <td>Specifies whether the back sides of pages are rotated
180 degrees.
</td>
962 <td><tt><</Tumble true
>>setpagedevice
</tt></td>
965 <td><tt>cupsBorderlessScalingFactor
</tt></td>
967 <td>Specifies the amount to scale the page image dimensions.
</td>
968 <td><tt><</cupsBorderlessScalingFactor
1.01>>setpagedevice
</tt></td>
971 <td><tt>cupsColorOrder
</tt></td>
973 <td>Specifies the order of colors:
0 = chunked,
1 = banded,
2 = planar.
</td>
974 <td><tt><</cupsColorOrder
0>>setpagedevice
</tt></td>
977 <td><tt>cupsColorSpace
</tt></td>
979 <td>Specifies the page image colorspace:
0 = W,
1 = RGB,
2 = RGBA,
3 = K,
4 = CMY,
5 = YMC,
6 = CMYK,
7 = YMCK,
8 = KCMY,
9 = KCMYcm,
10 = GMCK,
11 = GMCS,
12 = White,
13 = Gold,
14 = Silver,
15 = CIE XYZ,
16 = CIE Lab,
17 = RGBW,
32 to
46 = CIE Lab (
1 to
15 inks)
</td>
980 <td><tt><</cupsColorSpace
1 >>setpagedevice
</tt></td>
983 <td><tt>cupsCompression
</tt></td>
985 <td>Specifies a driver compression type/mode.
</td>
986 <td><tt><</cupsCompression
2>>setpagedevice
</tt></td>
989 <td><tt>cupsInteger0
<br>
991 cupsInteger15
</tt></td>
993 <td>Specifies driver integer values.
</td>
994 <td><tt><</cupsInteger11
1234>>setpagedevice
</tt></td>
997 <td><tt>cupsMarkerType
</tt></td>
999 <td>Specifies the type of ink/toner to use.
</td>
1000 <td><tt><</cupsMarkerType (Black+Color)
>>setpagedevice
</tt></td>
1003 <td><tt>cupsMediaType
</tt></td>
1005 <td>Specifies a numeric media type.
</td>
1006 <td><tt><</cupsMediaType
999>>setpagedevice
</tt></td>
1009 <td><tt>cupsPageSizeName
</tt></td>
1011 <td>Specifies the name of the page size.
</td>
1012 <td><tt><</cupsPageSizeName (A4.Full)
>>setpagedevice
</tt></td>
1015 <td><tt>cupsPreferredBitsPerColor
</tt></td>
1017 <td>Specifies the preferred number of bits per color, typically
8 or
16.
</td>
1018 <td><tt><</cupsPreferredBitsPerColor
16>>setpagedevice
</tt></td>
1021 <td><tt>cupsReal0
<br>
1023 cupsReal15
</tt></td>
1025 <td>Specifies driver real number values.
</td>
1026 <td><tt><</cupsReal15
1.234>>setpagedevice
</tt></td>
1029 <td><tt>cupsRenderingIntent
</tt></td>
1031 <td>Specifies the color rendering intent.
</td>
1032 <td><tt><</cupsRenderingIntent (AbsoluteColorimetric)
>>setpagedevice
</tt></td>
1035 <td><tt>cupsRowCount
</tt></td>
1037 <td>Specifies the number of rows of raster data to print on each line for some drivers.
</td>
1038 <td><tt><</cupsRowCount
24>>setpagedevice
</tt></td>
1041 <td><tt>cupsRowFeed
</tt></td>
1043 <td>Specifies the number of rows to feed between passes for some drivers.
</td>
1044 <td><tt><</cupsRowFeed
17>>setpagedevice
</tt></td>
1047 <td><tt>cupsRowStep
</tt></td>
1049 <td>Specifies the number of lines between columns/rows on the print head for some drivers.
</td>
1050 <td><tt><</cupsRowStep
2>>setpagedevice
</tt></td>
1053 <td><tt>cupsString0
<br>
1055 cupsString15
</tt></td>
1057 <td>Specifies driver string values.
</td>
1058 <td><tt><</cupsString0(String Value)
>>setpagedevice
</tt></td>
1064 <h2 class='title'
><a name='MEDIA'
>Media Attributes
</a></h2>
1066 <p>The CUPS media attributes allow drivers to specify alternate custom page
1067 size limits based on up to two options.
</p>
1069 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMediaQualifier2'
>cupsMediaQualifier2
</a></h3>
1071 <p class='summary'
>*cupsMediaQualifier2: MainKeyword
</p>
1073 <p>This attribute specifies the second option to use for overriding the
1074 custom page size limits.
</p>
1078 <pre class='command'
>
1079 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1080 *cupsMediaQualifier2: InputSlot
1081 *cupsMediaQualifier3: Quality
1082 *cupsMaxSize .Manual.:
"1000 1000"
1083 *cupsMinSize .Manual.:
"100 100"
1084 *cupsMinSize .Manual.Photo:
"200 200"
1085 *cupsMinSize ..Photo:
"300 300"
1088 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMediaQualifier3'
>cupsMediaQualifier3
</a></h3>
1090 <p class='summary'
>*cupsMediaQualifier3: MainKeyword
</p>
1092 <p>This attribute specifies the third option to use for overriding the
1093 custom page size limits.
</p>
1097 <pre class='command'
>
1098 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1099 *cupsMediaQualifier2: InputSlot
1100 *cupsMediaQualifier3: Quality
1101 *cupsMaxSize .Manual.:
"1000 1000"
1102 *cupsMinSize .Manual.:
"100 100"
1103 *cupsMinSize .Manual.Photo:
"200 200"
1104 *cupsMinSize ..Photo:
"300 300"
1107 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMinSize'
>cupsMinSize
</a></h3>
1109 <p class='summary'
>*cupsMinSize .Qualifier2.Qualifier3:
"width length"<br>
1110 *cupsMinSize .Qualifier2.:
"width length"<br>
1111 *cupsMinSize ..Qualifier3:
"width length"</p>
1113 <p>This attribute specifies alternate minimum custom page sizes in points.
1114 The
<a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a> and
1115 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a> attributes
1116 are used to identify options to use for matching.
</p>
1120 <pre class='command'
>
1121 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1122 *cupsMediaQualifier2: InputSlot
1123 *cupsMediaQualifier3: Quality
1124 *cupsMaxSize .Manual.:
"1000 1000"
1125 *cupsMinSize .Manual.:
"100 100"
1126 *cupsMinSize .Manual.Photo:
"200 200"
1127 *cupsMinSize ..Photo:
"300 300"
1130 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMaxSize'
>cupsMaxSize
</a></h3>
1132 <p class='summary'
>*cupsMaxSize .Qualifier2.Qualifier3:
"width length"<br>
1133 *cupsMaxSize .Qualifier2.:
"width length"<br>
1134 *cupsMaxSize ..Qualifier3:
"width length"</p>
1136 <p>This attribute specifies alternate maximum custom page sizes in points.
1137 The
<a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a> and
1138 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a> attributes
1139 are used to identify options to use for matching.
</p>
1143 <pre class='command'
>
1144 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1145 *cupsMediaQualifier2: InputSlot
1146 *cupsMediaQualifier3: Quality
1147 *cupsMaxSize .Manual.:
"1000 1000"
1148 *cupsMinSize .Manual.:
"100 100"
1149 *cupsMinSize .Manual.Photo:
"200 200"
1150 *cupsMinSize ..Photo:
"300 300"
1154 <h2 class='title'
><a name='ATTRIBUTES'
>General Attributes
</a></h2>
1156 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsBackSide'
>cupsBackSide
</a></h3>
1158 <p class='summary'
>*cupsBackSide: keyword
</p>
1160 <p>This attribute requests special handling of the back side of pages
1161 when doing duplexed (
2-sided) output.
<a href='#TABLE_1'
>Table
1</a>
1162 shows the supported keyword values for this attribute and their effect
1163 on the raster data sent to your driver. For example, when
<tt>cupsBackSide
</tt>
1164 is
<code>Rotated
</code> and
<tt>Tumble
</tt> is
<tt>false
</tt>, your driver
1165 will receive print data starting at the bottom right corner of the page, with
1166 each line going right-to-left instead of left-to-right. The default value is
1167 <code>Normal
</code>.
</p>
1169 <blockquote><b>Note:
</b>
1171 <p><tt>cupsBackSide
</tt> replaces the older
<tt>cupsFlipDuplex
</tt>
1172 attribute - if
<tt>cupsBackSide
</tt> is specified,
<tt>cupsFlipDuplex
</tt>
1173 will be ignored.
</p>
1178 <table width='
80%' summary='Back Side Raster Coordinate System'
>
1179 <caption>Table
1:
<a name='TABLE_1'
>Back Side Raster Coordinate System
</a></caption>
1182 <th>cupsBackSide
</th>
1183 <th>Tumble Value
</th>
1184 <th>Image Presentation
</th>
1189 <td><code>Normal
</code></td>
1190 <td><code>false
</code></td>
1191 <td>Left-to-right, top-to-bottom
</td>
1194 <td><code>Normal
</code></td>
1195 <td><code>true
</code></td>
1196 <td>Left-to-right, top-to-bottom
</td>
1199 <td><code>ManualTumble
</code></td>
1200 <td><code>false
</code></td>
1201 <td>Left-to-right, top-to-bottom
</td>
1204 <td><code>ManualTumble
</code></td>
1205 <td><code>true
</code></td>
1206 <td>Right-to-left, bottom-to-top
</td>
1209 <td><code>Rotated
</code></td>
1210 <td><code>false
</code></td>
1211 <td>Right-to-left, bottom-to-top
</td>
1214 <td><code>Rotated
</code></td>
1215 <td><code>true
</code></td>
1216 <td>Right-to-left, top-to-bottom
</td>
1219 <td><code>Flipped
</code> *
</td>
1220 <td><code>false
</code></td>
1221 <td>Left-to-right, bottom-to-top
</td>
1224 <td><code>Flipped
</code> *
</td>
1225 <td><code>true
</code></td>
1226 <td>Right-to-left, top-to-bottom
</td>
1232 <p><em>* - Not supported in Mac OS X
10.5.x and earlier
</em></p>
1234 <div class='figure'
><table summary='Back side images'
>
1235 <caption>Figure
1: Back side images
</caption>
1236 <tr><td><img src='../images/raster.png' width='
624' height='
448' alt='Back side images'
></td></tr>
1241 <pre class='command'
>
1242 <em>*% Flip the page image for the back side of duplexed output
</em>
1243 *cupsBackSide: Flipped
1245 <em>*% Rotate the page image for the back side of duplexed output
</em>
1246 *cupsBackSide: Rotated
1249 <p>Also see the related
<a href='#APDuplexRequiresFlippedMargin'
><tt>APDuplexRequiresFlippedMargin
</tt></a>
1252 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsCommands'
>cupsCommands
</a></h3>
1254 <p class='summary'
>*cupsCommands:
"name name2 ... nameN"</p>
1256 <p>This string attribute specifies the commands that are supported by the
1257 CUPS command file filter for this device. The command names are separated
1262 <pre class='command'
>
1263 <em>*% Specify the list of commands we support
</em>
1264 *cupsCommands:
"AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo"
1268 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsEvenDuplex'
>cupsEvenDuplex
</a></h3>
1270 <p class='summary'
>*cupsEvenDuplex: boolean
</p>
1272 <p>This boolean attribute notifies the RIP filters that the
1273 destination printer requires an even number of pages when
2-sided
1274 printing is selected. The default value is
<code>false
</code>.
</p>
1278 <pre class='command'
>
1279 <em>*% Always send an even number of pages when duplexing
</em>
1280 *cupsEvenDuplex: true
1283 <h3><a name='cupsFax'
>cupsFax
</a></h3>
1285 <p class='summary'
>*cupsFax: boolean
</p>
1287 <p>This boolean attribute specifies whether the PPD defines a facsimile device. The default is
<tt>false
</tt>.
</p>
1291 <pre class='command'
>
1295 <h3><a name='cupsFilter'
>cupsFilter
</a></h3>
1297 <p class='summary'
>*cupsFilter:
"source/type cost program"</p>
1299 <p>This string attribute provides a conversion rule from the
1300 given source type to the printer's native format using the
1301 filter
"program". If a printer supports the source type directly,
1302 the special filter program
"-" may be specified.
</p>
1306 <pre class='command'
>
1307 <em>*% Standard raster printer driver filter
</em>
1308 *cupsFilter:
"application/vnd.cups-raster 100 rastertofoo"
1310 <em>*% Plain text filter
</em>
1311 *cupsFilter:
"text/plain 10 texttofoo"
1313 <em>*% Pass-through filter for PostScript printers
</em>
1314 *cupsFilter:
"application/vnd.cups-postscript 0 -"
1317 <h3><span class='info'
>Deprecated
</span><a name='cupsFlipDuplex'
>cupsFlipDuplex
</a></h3>
1319 <p class='summary'
>*cupsFlipDuplex: boolean
</p>
1321 <p>Due to implementation differences between Mac OS X and Ghostscript,
1322 the
<tt>cupsFlipDuplex
</tt> attribute is deprecated. Instead, use
1323 the
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a> attribute to specify
1324 the coordinate system (pixel layout) of the page data on the back side of
1327 <p>The value
<code>true
</code> maps to a
<tt>cupsBackSide
</tt> value
1328 of
<code>Rotated
</code> on Mac OS X and
<code>Flipped
</code> with
1331 <p>The default value is
<code>false
</code>.
</p>
1333 <blockquote><b>Note:
</b>
1335 <p>Mac OS X drivers that previously used
1336 <tt>cupsFlipDuplex
</tt> may wish to provide both the old and
1337 new attributes for maximum compatibility, for example:
</p>
1339 <pre class='command'
>
1340 *cupsBackSide: Rotated
1341 *cupsFlipDuplex: true
1344 <p>Similarly, drivers written for other operating systems using
1345 Ghostscript can use:
</p>
1347 <pre class='command'
>
1348 *cupsBackSide: Flipped
1349 *cupsFlipDuplex: true
1352 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsIPPFinishings'
>cupsIPPFinishings
</a></h3>
1354 <p class='summary'
>*cupsIPPFinishings number/text:
"*Option Choice ..."</p>
1356 <p>This attribute defines a mapping from IPP
<code>finishings
</code>
1357 values to PPD options and choices.
</p>
1361 <pre class='command'
>
1362 *cupsIPPFinishings
4/staple:
"*StapleLocation SinglePortrait"
1363 *cupsIPPFinishings
5/punch:
"*PunchMedia Yes *PunchLocation LeftSide"
1364 *cupsIPPFinishings
20/staple-top-left:
"*StapleLocation SinglePortrait"
1365 *cupsIPPFinishings
21/staple-bottom-left:
"*StapleLocation SingleLandscape"
1368 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsIPPReason'
>cupsIPPReason
</a></h3>
1370 <p class='summary'
>*cupsIPPReason reason/Reason Text:
"optional URIs"</p>
1372 <p>This optional attribute maps custom
1373 <code>printer-state-reasons
</code> keywords that are generated by
1374 the driver to human readable text. The optional URIs string
1375 contains zero or more URIs separated by a newline. Each URI can
1376 be a CUPS server absolute path to a help file under the
1377 scheduler's
<code>DocumentRoot
</code> directory, a full HTTP URL
1378 (
"http://www.domain.com/path/to/help/page.html"), or any other
1379 valid URI which directs the user at additional information
1380 concerning the condition that is being reported.
</p>
1382 <p>Since the reason text is limited to
80 characters by the PPD specification,
1383 longer text strings can be included by URI-encoding the text with the
"text"
1384 scheme, for example
"text:some%20text". Multiple
<code>text
</code> URIs are
1385 combined (with spaces between each URI) by the
<tt>ppdLocalizeIPPReason
</tt>
1386 into a single string that can be displayed to the user.
</p>
1390 <pre class='command'
>
1391 <em>*% Map com.vendor-error to text but no page
</em>
1392 *cupsIPPReason com.vendor-error/A serious error occurred:
""
1394 <em>*% Map com.vendor-error to more than
80 characters of text but no page
</em>
1395 *cupsIPPReason com.vendor-error/A serious error occurred:
"text:Now%20is%20the%20time
1396 text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country."
1398 <em>*% Map com.vendor-error to text and a local page
</em>
1399 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html"
1401 <em>*% Map com.vendor-error to text and a remote page
</em>
1402 *cupsIPPReason com.vendor-error/A serious error occurred:
"http://www.vendor.com/help"
1404 <em>*% Map com.vendor-error to text and a local, Apple help book, and remote page
</em>
1405 *APHelpBook:
"file:///Library/Printers/vendor/Help.bundle"
1406 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html
1407 help:anchor='com.vendor-error'%20bookID=Vendor%20Help
1408 http://www.vendor.com/help"
1412 <h3><span class='info'
>CUPS
1.2/Mac OS X
10.5</span><a name='cupsLanguages'
>cupsLanguages
</a></h3>
1414 <p class='summary'
>*cupsLanguages:
"locale list"</p>
1416 <p>This attribute describes which language localizations are
1417 included in the PPD. The
"locale list" string is a space-delimited
1418 list of locale names (
"en",
"en_US",
"fr_CA", etc.)
</p>
1422 <pre class='command'
>
1423 <em>*% Specify Canadian, UK, and US English, and Candian and French French
</em>
1424 *cupsLanguages:
"en_CA en_UK en_US fr_CA fr_FR"
1427 <h3><a name='cupsManualCopies'
>cupsManualCopies
</a></h3>
1429 <p class='summary'
>*cupsManualCopies: boolean
</p>
1431 <p>This boolean attribute notifies the RIP filters that the
1432 destination printer does not support copy generation in
1433 hardware. The default value is
<code>false
</code>.
</p>
1437 <pre class='command'
>
1438 <em>*% Tell the RIP filters to generate the copies for us
</em>
1439 *cupsManualCopies: true
1442 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMarkerName'
>cupsMarkerName
</a></h3>
1444 <p class='summary'
>*cupsMarkerName/Name Text:
""</p>
1446 <p>This optional attribute maps
<code>marker-names
</code> strings that are
1447 generated by the driver to human readable text.
</p>
1451 <pre class='command'
>
1452 <em>*% Map cyanToner to
"Cyan Toner"</em>
1453 *cupsMarkerName cyanToner/Cyan Toner:
""
1456 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMarkerNotice'
>cupsMarkerNotice
</a></h3>
1458 <p class='summary'
>*cupsMarkerNotice:
"disclaimer text"</p>
1460 <p>This optional attribute provides disclaimer text for the supply level
1461 information provided by the driver, typically something like
"supply levels
1462 are approximate".
</p>
1466 <pre class='command'
>
1467 *cupsMarkerNotice:
"Supply levels are approximate."
1470 <h3><a name='cupsModelNumber'
>cupsModelNumber
</a></h3>
1472 <p class='summary'
>*cupsModelNumber: number
</p>
1474 <p>This integer attribute specifies a printer-specific model
1475 number. This number can be used by a filter program to adjust
1476 the output for a specific model of printer.
</p>
1480 <pre class='command'
>
1481 <em>*% Specify an integer for a driver-specific model number
</em>
1482 *cupsModelNumber:
1234
1485 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsPJLCharset'
>cupsPJLCharset
</a></h3>
1487 <p class='summary'
>*cupsPJLCharset:
"ISO character set name"</p>
1489 <p>This string attribute specifies the character set that is used
1490 for strings in PJL commands. If not specified, US-ASCII is
1495 <pre class='command'
>
1496 <em>*% Specify UTF-
8 is used in PJL strings
</em>
1497 *cupsPJLCharset:
"UTF-8"
1500 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsPJLDisplay'
>cupsPJLDisplay
</a></h3>
1502 <p class='summary'
>*cupsPJLDisplay:
"what"</p>
1504 <p>This optional attribute specifies which command is used to display the
1505 job ID, name, and user on the printer's control panel.
"What" is either
"none"
1506 to disable this functionality,
"job" to use
"@PJL JOB DISPLAY", or
"rdymsg"
1507 to use
"@PJL RDYMSG DISPLAY". The default is
"job".
</p>
1511 <pre class='command'
>
1512 <em>*% Display job information using @PJL SET RDYMSG
DISPLAY=
"foo"</em>
1513 *cupsPJLDisplay:
"rdymsg"
1515 <em>*% Display job information display
</em>
1516 *cupsPJLDisplay:
"none"
1519 <h3><span class='info'
>CUPS
1.2/Mac OS X
10.5</span><a name='cupsPortMonitor'
>cupsPortMonitor
</a></h3>
1521 <p class='summary'
>*cupsPortMonitor urischeme/Descriptive Text:
"port monitor"</p>
1523 <p>This string attribute specifies printer-specific
"port
1524 monitor" filters that may be used with the printer. The CUPS
1525 scheduler also looks for the
<tt>Protocols
</tt> attribute to see
1526 if the
<tt>BCP
</tt> or
<tt>TBCP
</tt> protocols are supported. If
1527 so, the corresponding port monitor (
"bcp" and
"tbcp",
1528 respectively) is listed in the printer's
1529 <tt>port-monitor-supported
</tt> attribute.
</p>
1531 <p>The
"urischeme" portion of the attribute specifies the URI scheme
1532 that this port monitor should be used for. Typically this is used to
1533 pre-select a particular port monitor for each type of connection that
1534 is supported by the printer. The
"port monitor" string can be
"none"
1535 to disable the port monitor for the given URI scheme.
</p>
1539 <pre class='command'
>
1540 <em>*% Specify a PostScript printer that supports the TBCP protocol
</em>
1541 *Protocols: TBCP PJL
1543 <em>*% Specify that TBCP should be used for socket connections but not USB
</em>
1544 *cupsPortMonitor socket/AppSocket Printing:
"tbcp"
1545 *cupsPortMonitor usb/USB Printing:
"none"
1547 <em>*% Specify a printer-specific port monitor for an Epson USB printer
</em>
1548 *cupsPortMonitor usb/USB Status Monitor:
"epson-usb"
1551 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsPreFilter'
>cupsPreFilter
</a></h3>
1553 <p class='summary'
>*cupsPreFilter:
"source/type cost program"</p>
1555 <p>This string attribute provides a pre-filter rule. The pre-filter
1556 program will be inserted in the conversion chain immediately
1557 before the filter that accepts the given MIME type.
</p>
1561 <pre class='command'
>
1562 <em>*% PDF pre-filter
</em>
1563 *cupsPreFilter:
"application/pdf 100 mypdfprefilter"
1565 <em>*% PNG pre-filter
</em>
1566 *cupsPreFilter:
"image/png 0 mypngprefilter"
1570 <h3><span class='info'
>CUPS
1.5</span><a name='cupsPrintQuality'
>cupsPrintQuality
</a></h3>
1572 <p class='summary'
>*cupsPrintQuality keyword/text:
"code"</p>
1574 <p>This UI keyword defines standard print qualities that directly map from the IPP
"print-quality" job template attribute. Standard keyword values are
"Draft",
"Normal", and
"High" which are mapped from the IPP
"print-quality" values
3,
4, and
5 respectively. Each
<code>cupsPrintQuality
</code> option typically sets output mode and resolution parameters in the page device dictionary, eliminating the need for separate (and sometimes confusing) output mode and resolution options.
</p>
1576 <blockquote><b>Note:
</b>
1578 <p>Unlike all of the other keywords defined in this document,
<code>cupsPrintQuality
</code> is a UI keyword that MUST be enclosed inside the PPD
<code>OpenUI
</code> and
<code>CloseUI
</code> keywords.
</p>
1584 <pre class='command'
>
1585 *OpenUI *cupsPrintQuality/Print Quality: PickOne
1586 *OrderDependency:
10 AnySetup *cupsPrintQuality
1587 *DefaultcupsPrintQuality: Normal
1588 *cupsPrintQuality Draft/Draft:
"code"
1589 *cupsPrintQuality Normal/Normal:
"code"
1590 *cupsPrintQuality High/Photo:
"code"
1591 *CloseUI: *cupsPrintQuality
1594 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsSNMPSupplies'
>cupsSNMPSupplies
</a></h3>
1596 <p class='summary'
>*cupsSNMPSupplies: boolean
</p>
1598 <p>This attribute tells the standard network backends whether they should query
1599 the standard SNMP Printer MIB OIDs for supply levels. The default value is
1604 <pre class='command'
>
1605 <em>*% Do not use SNMP queries to report supply levels
</em>
1606 *cupsSNMPSupplies: False
1609 <h3><a name='cupsVersion'
>cupsVersion
</a></h3>
1611 <p class='summary'
>*cupsVersion: major.minor
</p>
1613 <p>This required attribute describes which version of the CUPS
1614 PPD file extensions was used. Currently it must be the string
1615 "1.0",
"1.1",
"1.2", or
"1.3".
</p>
1619 <pre class='command'
>
1620 <em>*% Specify a CUPS
1.2 driver
</em>
1625 <h2 class='title'
><a name='MACOSX'
>Mac OS X Attributes
</a></h2>
1627 <h3><span class='info'
>Mac OS X
10.3</span><a name='APDialogExtension'
>APDialogExtension
</a></h3>
1629 <p class='summary'
>*APDialogExtension:
"/Library/Printers/vendor/filename.plugin"</p>
1631 <p>This attribute defines additional option panes that are displayed in the
1632 print dialog. Each attribute adds one or more option panes. See the
"OutputBinsPDE"
1633 example and
<a href='http://developer.apple.com/qa/qa2004/qa1352.html'
>Apple
1634 Technical Q
&A QA1352
</a> for information on writing your own print dialog
1637 <blockquote><b>Note:
</b>
1639 <p>Starting with Mac OS X
10.5, each plug-in must be compiled
"4-way fat"
1640 (
32-bit and
64-bit for both PowerPC and Intel) with garbage collection enabled
1641 in order to be usable with all applications.
</p>
1647 <pre class='command'
>
1648 *% Add two panes for finishing and driver options
1649 *APDialogExtension:
"/Library/Printers/vendor/finishing.plugin"
1650 *APDialogExtension:
"/Library/Printers/vendor/options.plugin"
1653 <h3><span class='info'
>Mac OS X
10.4</span><a name='APDuplexRequiresFlippedMargin'
>APDuplexRequiresFlippedMargin
</a></h3>
1655 <p class='summary'
>*APDuplexRequiresFlippedMargin: boolean
</p>
1657 <p>This boolean attribute notifies the RIP filters that the
1658 destination printer requires the top and bottom margins of the
1659 <tt>ImageableArea
</tt> to be swapped for the back page. The
1660 default is
<tt>true
</tt> when
<tt>cupsBackSide
</tt> is
<tt>Flipped
</tt>
1661 and
<tt>false
</tt> otherwise.
<a href='#TABLE_2'
>Table
2</a> shows how
1662 <tt>APDuplexRequiresFlippedMargin
</tt> interacts with
<tt>cupsBackSide
</tt>
1663 and the
<tt>Tumble
</tt> page attribute.
</p>
1666 <table width='
80%' summary='Margin Flipping Modes'
>
1667 <caption>Table
2:
<a name='TABLE_2'
>Margin Flipping Modes
</a></caption>
1670 <th>APDuplexRequiresFlippedMargin
</th>
1671 <th>cupsBackSide
</th>
1672 <th>Tumble Value
</th>
1691 <td>ManualDuplex
</td>
1697 <td>ManualDuplex
</td>
1714 <td>true or unspecified
</td>
1724 <pre class='command'
>
1725 <em>*% Rotate the back side images
</em>
1726 *cupsBackSide: Rotated
1728 <em>*% Don't swap the top and bottom margins for the back side
</em>
1729 *APDuplexRequiresFlippedMargin: false
1732 <p>Also see the related
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a>
1735 <h3><a name='APHelpBook'
>APHelpBook
</a></h3>
1737 <p class='summary'
>*APHelpBook:
"bundle URL"</p>
1739 <p>This string attribute specifies the Apple help book bundle to use when
1740 looking up IPP reason codes for this printer driver. The
1741 <a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> attribute maps
1742 "help" URIs to this file.
</p>
1746 <pre class='command'
>
1747 *APHelpBook:
"file:///Library/Printers/vendor/Help.bundle"
1750 <h3><span class='info'
>Mac OS X
10.6</span><a name='APICADriver'
>APICADriver
</a></h3>
1752 <p class='summary'
>*APICADriver: boolean
</p>
1754 <p>This attribute specifies whether the device has a matching Image Capture
1755 Architecture (ICA) driver for scanning. The default is
<tt>False
</tt>.
</p>
1759 <pre class='command'
>
1761 *APScanAppBundleID:
"com.apple.ImageCaptureApp"
1764 <h3><span class='info'
>Mac OS X
10.3</span><a name='APPrinterIconPath'
>APPrinterIconPath
</a></h3>
1766 <p class='summary'
>*APPrinterIconPath:
"/Library/Printers/vendor/filename.icns"</p>
1768 <p>This attribute defines the location of a printer icon file to use when
1769 displaying the printer. The file must be in the Apple icon format.
</p>
1773 <pre class='command'
>
1775 *APPrinterIconPath:
"/Library/Printers/vendor/Icons/filename.icns"
1778 <h3><span class='info'
>Mac OS X
10.4</span><a name='APPrinterLowInkTool'
>APPrinterLowInkTool
</a></h3>
1780 <p class='summary'
>*APPrinterLowInkTool:
"/Library/Printers/vendor/program"</p>
1782 <p>This attribute defines an program that checks the ink/toner/marker levels
1783 on a printer, returning an XML document with those levels. See the
"InkTool"
1785 <a href='http://developer.apple.com/technotes/tn2005/tn2144.html'
>Apple
1786 Technical Note TN2144
</a> for more information.
</p>
1790 <pre class='command'
>
1791 *% Use a vendor monitoring program
1792 *APPrinterLowInkTool:
"/Library/Printers/vendor/Tools/lowinktool"
1795 <h3><span class='info'
>Mac OS X
10.5</span><a name='APPrinterPreset'
>APPrinterPreset
</a></h3>
1797 <p class='summary'
>*APPrinterPreset name/text:
"*Option Choice ..."</p>
1799 <p>This attribute defines presets for multiple options that show up
1800 in the print dialog of applications (such as iPhoto) that set the job
1801 style hint to
<tt>NSPrintPhotoJobStyleHint
</tt>. Each preset maps to one or
1802 more pairs of PPD options and choices as well as providing key/value data for
1803 the application. The following standard preset names are currently defined:
</p>
1807 <li><code>General_with_Paper_Auto-Detect
</code>; Normal quality general printing with auto-detected media.
</li>
1809 <li><code>General_with_Paper_Auto-Detect_-_Draft
</code>; Draft quality general printing with auto-detected media.
</li>
1811 <li><code>General_on_Plain_Paper
</code>; Normal quality general printing on plain paper.
</li>
1813 <li><code>General_on_Plain_Paper_-_Draft
</code>; Draft quality general printing on plain paper.
</li>
1815 <li><code>Photo_with_Paper_Auto-Detect
</code>; Normal quality photo printing with auto-detected media.
</li>
1817 <li><code>Photo_with_Paper_Auto-Detect_-_Fine
</code>; High quality photo printing with auto-detected media.
</li>
1819 <li><code>Photo_on_Plain_Paper
</code>; Normal quality photo printing on plain paper.
</li>
1821 <li><code>Photo_on_Plain_Paper_-_Fine
</code>; High quality photo printing on plain paper.
</li>
1823 <li><code>Photo_on_Photo_Paper
</code>; Normal quality photo printing on glossy photo paper.
</li>
1825 <li><code>Photo_on_Photo_Paper_-_Fine
</code>; High quality photo printing on glossy photo paper.
</li>
1827 <li><code>Photo_on_Matte_Paper
</code>; Normal quality photo printing on matte paper.
</li>
1829 <li><code>Photo_on_Matte_Paper_-_Fine
</code>; High quality photo printing on matte paper.
</li>
1833 <p>The value string consists of pairs of keywords, either an option name and
1834 choice (*MainKeyword OptionKeyword) or a preset identifier and value
1835 (com.apple.print.preset.foo value). The following preset identifiers are currently used:
</p>
1839 <li><code>com.apple.print.preset.graphicsType
</code>; specifies the type of printing used for this printing -
"General" for general purpose printing and
"Photo" for photo printing.
</li>
1841 <li><code>com.apple.print.preset.media-front-coating
</code>; specifies the media type selected by this preset -
"none" (plain paper),
"glossy",
"high-gloss",
"semi-gloss",
"satin",
"matte", and
"autodetect".
</li>
1843 <li><code>com.apple.print.preset.output-mode
</code>; specifies the output mode for this preset -
"color" (default for color printers) or
"monochrome" (grayscale, default for B
&W printers).
</li>
1845 <li><code>com.apple.print.preset.quality
</code>; specifies the overall print quality selected by this preset -
"low" (draft),
"mid" (normal), or
"high".
</li>
1849 <p>Presets, like options, can also be localized in multiple languages.
</p>
1853 <pre class='command'
>
1854 *APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper:
"
1858 com.apple.print.preset.graphicsType Photo
1859 com.apple.print.preset.quality mid
1860 com.apple.print.preset.media-front-coating glossy"
1862 *fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique:
""
1865 <h3><span class='info'
>Mac OS X
10.3</span><a name='APPrinterUtilityPath'
>APPrinterUtilityPath
</a></h3>
1867 <p class='summary'
>*APPrinterPrinterUtilityPath:
"/Library/Printers/vendor/filename.app"</p>
1869 <p>This attribute defines a GUI application that can be used to do printer
1870 maintenance functions such as cleaning the print head(s). See ... for more
1875 <pre class='command'
>
1876 *% Define the printer utility application
1877 *APPrinterPrinterUtilityPath:
"/Library/Printers/vendor/Tools/utility.app"
1880 <h3><span class='info'
>Mac OS X
10.6</span><a name='APScannerOnly'
>APScannerOnly
</a></h3>
1882 <p class='summary'
>*APScannerOnly: boolean
</p>
1884 <p>This attribute specifies whether the device has scanning but no printing
1885 capabilities. The default is
<tt>False
</tt>.
</p>
1889 <pre class='command'
>
1891 *APScannerOnly: True
1894 <h3><span class='info'
>Mac OS X
10.3</span><a name='APScanAppBundleID'
>APScanAppBundleID
</a></h3>
1896 <p class='summary'
>*APScanAppBundleID:
"bundle ID"</p>
1898 <p>This attribute defines the application to use when scanning pages from
1903 <pre class='command'
>
1905 *APScanAppBundleID:
"com.apple.ImageCaptureApp"
1909 <h2 class='title'
><a name='HISTORY'
>Change History
</a></h2>
1911 <h3>Changes in CUPS
1.4.5</h3>
1915 <li>Added
<a href='#cupsPrintQuality'
><tt>cupsPrintQuality
</tt></a> UI keyword.
</li>
1917 <li>Added new properties and values for the
<a href='#APPrinterPreset'
><tt>APPrinterPreset
</tt></a> keyword.
</li>
1922 <h3>Changes in CUPS
1.4</h3>
1926 <li>Added
<a href='#APICADriver'
><tt>APICADriver
</tt></a>
1929 <li>Added
<a href='#cupsCommands'
><tt>cupsCommands
</tt></a>
1932 <li>Added
<a href='#cupsMarkerName'
><tt>cupsMarkerName
</tt></a>
1935 <li>Added
<a href='#cupsMarkerNotice'
><tt>cupsMarkerNotice
</tt></a>
1938 <li>Added
<a href='#cupsPJLDisplay'
><tt>cupsPJLDisplay
</tt></a>
1941 <li>Added
<a href='#cupsSNMPSupplies'
><tt>cupsSNMPSupplies
</tt></a>
1944 <li>Added
<a href='#cupsUIResolver'
><tt>cupsUIResolver
</tt></a> and
1945 <a href='#cupsUIConstraints'
><tt>cupsUIConstraints
</tt></a>
1949 <a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a>,
1950 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a>,
1951 <a href='#cupsMinSize'
><tt>cupsMinSize
</tt></a>, and
1952 <a href='#cupsMaxSize'
><tt>cupsMaxSize
</tt></a> attributes.
</li>
1957 <h3>Changes in CUPS
1.3.1</h3>
1961 <li>Added missing Mac OS X
<tt>AP
</tt> attributes.
</li>
1963 <li>Added section on auto-configuration including the
1964 <tt>OID
<i>MainKeyword
</i></tt> and
<tt>?
<i>MainKeyword
</i></tt>
1967 <li>Minor reorganization.
</li>
1972 <h3>Changes in CUPS
1.3</h3>
1976 <li>Added
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a> and
1977 deprecated
<a href='#cupsFlipDuplex'
><tt>cupsFlipDuplex
</tt></a>.
</li>
1979 <li>Added text URI information to
1980 <a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> documentation.
</li>
1982 <li>Added
<a href='#APPrinterPreset'
><tt>APPrinterPreset
</tt></a>,
1983 <a href='#cupsIPPFinishings'
><tt>cupsIPPFinishings
</tt></a>, and
1984 <a href='#cupsPreFilter'
><tt>cupsPreFilter
</tt></a> attributes.
</li>
1986 <li>Added discussion of custom option code, sample
1987 <tt>CustomPageSize
</tt> code, and
"do not use dict and put" note.
</li>
1991 <h3>Changes in CUPS
1.2.8</h3>
1995 <li>Added section on supported PostScript commands for raster
2000 <h3>Changes in CUPS
1.2</h3>
2004 <li>Added globalization support attributes
</li>
2006 <li>Added custom option values support
</li>
2008 <li>Added
<a href='#APHelpBook'
><tt>APHelpBook
</tt></a> attribute
</li>
2010 <li>Added
<a href='#APDuplexRequiresFlippedMargin'
><tt>APDuplexRequiresFlippedMargin
</tt></a>
2013 <li>Added
<a href='#cupsICCProfile'
><tt>cupsICCProfile
</tt></a> attribute
</li>
2015 <li>Added
<a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> attribute
</li>
2017 <li>Added
<a href='#cupsLanguages'
><tt>cupsLanguages
</tt></a> attribute
</li>
2019 <li>Added
<a href='#cupsPortMonitor'
><tt>cupsPortMonitor
</tt></a> attribute
</li>
2021 <li>Removed
<tt>cupsProtocol
</tt> attribute
</li>
2025 <h3>Changes in CUPS
1.1</h3>
2029 <li>Added
<a href='#cupsFlipDuplex'
><tt>cupsFlipDuplex
</tt></a> attribute
</li>
2031 <li>Added
<tt>cupsProtocol
</tt> attribute
</li>