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=
"Specifications">
7 <meta http-equiv=
"Content-Type" content=
"text/html;charset=utf-8">
8 <meta name=
"creator" content=
"Mini-XML v2.7">
9 <style type=
"text/css"><!--
11 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
14 H1, H2, H3, H4, H5, H6, P, TD, TH {
15 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
19 font-family: monaco, courier, monospace;
24 font-family: monaco, courier, monospace;
28 border: dotted thin #7f7f7f;
44 border: dotted thin #999999;
49 PRE.command EM, PRE.example EM {
50 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
54 font-family: monaco, courier, monospace;
65 border: solid thin #999999;
76 -moz-border-radius: 10px;
81 text-decoration: none;
84 A:link:hover, A:visited:hover, A:active {
85 text-decoration: underline;
92 TR.data, TD.data, TR.data TD {
95 border-bottom: solid 1pt #999999;
99 border-bottom: solid 1pt #999999;
106 border: solid thin #999999;
107 border-collapse: collapse;
123 border: solid thin #cccccc;
130 border-bottom: solid thin #999999;
139 caption-side: bottom;
163 border: thin solid black;
171 H2 SPAN.info, H3 SPAN.info, H4 SPAN.info {
180 border-bottom: solid 2pt #000000;
183 DIV.indent, TABLE.indent {
191 border-collapse: collapse;
194 TABLE.indent TD, TABLE.indent TH {
199 border-collapse: collapse;
207 border-bottom: solid thin #cccccc;
212 vertical-align: bottom;
221 border-bottom: solid thin #eeeeee;
226 TABLE.list TR:nth-child(even) {
230 TABLE.list TR:nth-child(odd) {
249 font-family: monaco, courier, monospace;
253 border: solid thin #999999;
254 border-collapse: collapse;
259 DIV.summary TABLE TD, DIV.summary TABLE TH {
260 border: solid thin #999999;
266 DIV.summary TABLE THEAD TH {
270 /* API documentation styles... */
277 div.body h3, div.body h4, div.body h5 {
278 margin-bottom: 0.5em;
281 .class, .enumeration, .function, .struct, .typedef, .union {
282 border-bottom: solid thin #999999;
289 code, p.code, pre, ul.code li {
290 font-family: monaco, courier, monospace;
293 ul.code, ul.contents, ul.subcontents {
294 list-style-type: none;
304 ul.contents li ul.code, ul.contents li ul.subcontents {
317 margin-bottom: 0.5em;
320 /* This is just for the HTML files generated with the framedhelp target */
323 border: solid thin black;
332 div.contents ul.contents {
335 div.contents ul.subcontents li {
344 "$Id: spec-ppd.html 9345 2010-10-26 23:46:51Z mike $"
346 PPD extension documentation for CUPS.
348 Copyright 2007-2011 by Apple Inc.
349 Copyright 1997-2007 by Easy Software Products.
351 These coded instructions, statements, and computer programs are the
352 property of Apple Inc. and are protected by Federal copyright
353 law. Distribution and use rights are outlined in the file "LICENSE.txt"
354 which should have been included with this file. If this file is
355 file is missing or damaged, see the license at "http://www.cups.org/".
358 <H1 CLASS=
"title">CUPS PPD Extensions
</H1>
360 <p>This specification describes the attributes and extensions that CUPS adds to
<a href=
"http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf" target=
"_blank">Adobe TechNote #
5003: PostScript Printer Description File Format Specification Version
4.3</a>. PostScript Printer Description (
"PPD") files describe the capabilities of each printer and are used by CUPS to support printer-specific features and intelligent filtering.
</p>
362 <div class='summary'
><table summary='General Information'
>
366 <td>Programming:
<a href='postscript-driver.html'
>Developing PostScript Printer Drivers
</a><br>
367 Programming:
<a href='raster-driver.html'
>Developing Raster Printer Drivers
</a><br>
368 Programming:
<a href='api-filter.html'
>Filter and Backend Programming
</a><br>
369 Programming:
<a href='ppd-compiler.html'
>Introduction to the PPD Compiler
</a><br>
370 Programming:
<a href='api-raster.html'
>Raster API
</a><br>
371 References:
<a href='ref-ppdcfile.html'
>PPD Compiler Driver Information File Reference
</a></td>
375 <h2 class=
"title">Contents
</h2>
376 <ul class=
"contents">
377 <li><a href=
"#SYNTAX">PPD File Syntax
</a></li>
378 <li><a href=
"#AUTOCONFIG">Auto-Configuration
</a><ul class=
"subcontents">
379 <li><a href=
"#APAutoSetupTool">APAutoSetupTool
</a></li>
380 <li><a href=
"#QUERYKEYWORD">?MainKeyword
</a></li>
381 <li><a href=
"#OID">OIDMainKeyword
</a></li>
383 <li><a href=
"#PROFILES">Color Profiles
</a><ul class=
"subcontents">
384 <li><a href=
"#cupsColorProfile">cupsColorProfile
</a></li>
385 <li><a href=
"#cupsICCProfile">cupsICCProfile
</a></li>
386 <li><a href=
"#APCustom">Custom Color Matching Support
</a></li>
388 <li><a href=
"#CONSTRAINTS">Constraints
</a><ul class=
"subcontents">
389 <li><a href=
"#cupsUIConstraints">cupsUIConstraints
</a></li>
390 <li><a href=
"#cupsUIResolver">cupsUIResolver
</a></li>
392 <li><a href=
"#I18N">Globalized PPD Support
</a></li>
393 <li><a href=
"#OPTIONS">CUPS
1.3/Mac OS X
10.6Custom Options
</a></li>
394 <li><a href=
"#RASTERPS">Writing PostScript Option Commands for Raster Drivers
</a></li>
395 <li><a href=
"#MEDIA">Media Keywords
</a><ul class=
"subcontents">
396 <li><a href=
"#cupsMediaQualifier2">cupsMediaQualifier2
</a></li>
397 <li><a href=
"#cupsMediaQualifier3">cupsMediaQualifier3
</a></li>
398 <li><a href=
"#cupsMinSize">cupsMinSize
</a></li>
399 <li><a href=
"#cupsMaxSize">cupsMaxSize
</a></li>
401 <li><a href=
"#ATTRIBUTES">General Attributes
</a><ul class=
"subcontents">
402 <li><a href=
"#cupsBackSide">cupsBackSide
</a></li>
403 <li><a href=
"#cupsCommands">cupsCommands
</a></li>
404 <li><a href=
"#cupsEvenDuplex">cupsEvenDuplex
</a></li>
405 <li><a href=
"#cupsFax">cupsFax
</a></li>
406 <li><a href=
"#cupsFilter">cupsFilter
</a></li>
407 <li><a href=
"#cupsFilter2">cupsFilter2
</a></li>
408 <li><a href=
"#cupsFlipDuplex">cupsFlipDuplex
</a></li>
409 <li><a href=
"#cupsIPPFinishings">cupsIPPFinishings
</a></li>
410 <li><a href=
"#cupsIPPReason">cupsIPPReason
</a></li>
411 <li><a href=
"#cupsIPPSupplies">cupsIPPSupplies
</a></li>
412 <li><a href=
"#cupsLanguages">cupsLanguages
</a></li>
413 <li><a href=
"#cupsManualCopies">cupsManualCopies
</a></li>
414 <li><a href=
"#cupsMarkerName">cupsMarkerName
</a></li>
415 <li><a href=
"#cupsMarkerNotice">cupsMarkerNotice
</a></li>
416 <li><a href=
"#cupsModelNumber">cupsModelNumber
</a></li>
417 <li><a href=
"#cupsPJLCharset">cupsPJLCharset
</a></li>
418 <li><a href=
"#cupsPJLDisplay">cupsPJLDisplay
</a></li>
419 <li><a href=
"#cupsPortMonitor">cupsPortMonitor
</a></li>
420 <li><a href=
"#cupsPreFilter">cupsPreFilter
</a></li>
421 <li><a href=
"#cupsPrintQuality">cupsPrintQuality
</a></li>
422 <li><a href=
"#cupsSingleFile">cupsSingleFile
</a></li>
423 <li><a href=
"#cupsSNMPSupplies">cupsSNMPSupplies
</a></li>
424 <li><a href=
"#cupsVersion">cupsVersion
</a></li>
426 <li><a href=
"#MACOSX">Mac OS X Attributes
</a><ul class=
"subcontents">
427 <li><a href=
"#APDialogExtension">APDialogExtension
</a></li>
428 <li><a href=
"#APDuplexRequiresFlippedMargin">APDuplexRequiresFlippedMargin
</a></li>
429 <li><a href=
"#APHelpBook">APHelpBook
</a></li>
430 <li><a href=
"#APICADriver">APICADriver
</a></li>
431 <li><a href=
"#APPrinterIconPath">APPrinterIconPath
</a></li>
432 <li><a href=
"#APPrinterLowInkTool">APPrinterLowInkTool
</a></li>
433 <li><a href=
"#APPrinterPreset">APPrinterPreset
</a></li>
434 <li><a href=
"#APPrinterUtilityPath">APPrinterUtilityPath
</a></li>
435 <li><a href=
"#APScannerOnly">APScannerOnly
</a></li>
436 <li><a href=
"#APScanAppBundleID">APScanAppBundleID
</a></li>
438 <li><a href=
"#HISTORY">Change History
</a></li>
440 <h2 class='title'
><a name='SYNTAX'
>PPD File Syntax
</a></h2>
442 <p>The PPD format is text-based and uses lines of up to
255 characters terminated by a carriage return, linefeed, or combination of carriage return and line feed. The following ABNF definition [
<a href=
"http://tools.ietf.org/html/rfc5234" target=
"_blank">RFC5234
</a>] defines the general format of lines in a PPD file:
</p>
444 <pre class='command'
>
445 PPD-FILE = HEADER +(DATA / COMMENT / LINE-END)
447 HEADER =
"*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END
449 VERSION =
"4.0" /
"4.1" /
"4.2" /
"4.3"
451 COMMENT =
"*%" *TCHAR LINE-END
453 DATA =
"*" 1*KCHAR [ WSP
1*KCHAR [
"/" 1*TCHAR ] ]
":"
454 1*(*WSP VALUE) LINE-END
456 VALUE =
1*TCHAR / DQUOTE
1*SCHAR DQUOTE
458 KCHAR = ALPHA / DIGIT /
"_" /
"." /
"-"
460 SCHAR = LINE-END / WSP / %x21.23-
7E.A0-FF
462 TCHAR = %x20-
7E.A0-FF
464 LINE-END = CR / LF / CR LF
468 <h2 class='title'
><a name='AUTOCONFIG'
>Auto-Configuration
</a></h2>
470 <p>CUPS supports several methods of auto-configuration via PPD keywords.
</p>
472 <h3><span class='info'
>Mac OS X
10.5</span><a name='APAutoSetupTool'
>APAutoSetupTool
</a></h3>
474 <p class='summary'
>*APAutoSetupTool:
"/LibraryPrinters/vendor/filename"</p>
476 <p>This Mac OS X keyword defines a program that sets the default option choices. It is run when a printer is added from the
<var>Add Printer
</var> window or the
<var>Nearby Printers
</var> list in the
<var>Print
</var> dialog.
</p>
478 <p>The program is provided with two arguments: the printer's device URI and the PPD file to be used for the printer. The program must write an updated PPD file to stdout.
</p>
482 <pre class='command'
>
483 *% Use our setup tool when adding a printer
484 *APAutoSetupTool:
"/Library/Printers/vendor/Tools/autosetuptool"
487 <h3><span class='info'
>Mac OS X
10.2/CUPS
1.4</span><a name='QUERYKEYWORD'
>?MainKeyword
</a></h3>
489 <p class='summary'
>*?
<i>MainKeyword
</i>:
"<br>
490 PostScript query code that writes a message using the = operator...<br>
494 <p>The
<tt>?
<i>MainKeyword
</i></tt> keyword defines PostScript code that determines the currently selected/enabled option keyword (choice) for the main keyword (option). It is typically used when communicating with USB, serial, Appletalk, and AppSocket (port
9100) printers.
</p>
496 <p>The PostScript code typically sends its response back using the
<tt>=
</tt> operator.
</p>
500 <pre class='command'
>
501 *OpenUI OptionDuplex/Duplexer Installed: Boolean
502 *DuplexOptionDuplex: False
503 *OptionDuplex False/Not Installed:
""
504 *OptionDuplex True/Installed:
""
506 <em>*% Query the printer for the presence of the duplexer option...
</em>
508 currentpagedevice /Duplex known
509 {(True)} {(False)} ifelse
513 *CloseUI: OptionDuplex
516 <h3><span class='info'
>Mac OS X
10.4/CUPS
1.5</span><a name='OID'
>OIDMainKeyword
</a></h3>
518 <p class='summary'
>*?OID
<i>MainKeyword
</i>:
".n.n.n..."<br>
519 *OID
<i>MainKeyword
</i> <i>OptionKeyword1
</i>:
"value"<br>
521 *OID
<i>MainKeyword
</i> <i>OptionKeywordN
</i>:
"value"</p>
523 <p>The
<tt>OID
<i>MainKeyword
</i></tt> keyword is used to define SNMP OIDs that map to installable options. The first (query) line defines the OID to lookup on the network device. The second and subsequent keywords define a mapping from OID value to option keyword. Since SNMP is an IP-based network protocol, this method is typically only used to configure AppSocket, IPP, and LPD network printers.
</p>
527 <pre class='command'
>
528 *% Get the installed memory on the printer...
529 *?OIDInstalledMemory:
".1.3.6.1.2.1.25.2.2.0"
530 *OIDInstalledMemory
16MB:
"16384 KBytes"
531 *OIDInstalledMemory
32MB:
"32768 KBytes"
532 *OIDInstalledMemory
48MB:
"49152 KBytes"
533 *OIDInstalledMemory
72MB:
"73728 KBytes"
537 <h2 class='title'
><a name='PROFILES'
>Color Profiles
</a></h2>
539 <p>CUPS supports three types of color profiles. The first type is based on sRGB and is used by the standard CUPS raster filters and GPL Ghostscript. The second type is based on ICC profiles and is used by the Quartz-based filters on MacOS X. The final type is based on well-known colorspaces such as sRGB and Adobe RGB.
</p>
541 <blockquote><b>Note:
</b>
543 <p>At this time, none of the CUPS raster filters support ICC profiles. This will be addressed as time and resources permit.
</p>
547 <h3><span class='info'
>Deprecated
</span><a name='cupsColorProfile'
>cupsColorProfile
</a></h3>
549 <p class='summary'
>*cupsColorProfile Resolution/MediaType:
"density gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"</p>
551 <p>This string keyword specifies an sRGB-based color profile consisting of gamma and density controls and a
3x3 CMY color transform matrix.
<em>This keyword is not supported on Mac OS X.
</em></p>
553 <p>The
<i>Resolution
</i> and
<i>MediaType
</i> values may be
"-" to act as a wildcard. Otherwise they must match one of the
<tt>Resolution
</tt> or
<tt>MediaType
</tt> option keywords defined in the PPD file.
</p>
555 <p>The
<i>density
</i> and
<i>gamma
</i> values define gamma and
556 density adjustment function such that:
</p>
558 <pre class='command'
>
559 f(x) = density * x
<sup style='font-size:
100%'
>gamma
</sup>
562 <p>The
<i>m00
</i> through
<i>m22
</i> values define a
3x3 transformation matrix for the CMY color values. The density function is applied
<i>after
</i> the CMY transformation:
</p>
564 <pre class='command'
>
572 <pre class='command'
>
573 <em>*% Specify a profile for printing at
360dpi on all media types
</em>
574 *cupsColorProfile
360dpi/-:
"1.0 1.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
576 <em>*% Specify a profile for printing at
720dpi on Glossy media
</em>
577 *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"
579 <em>*% Specify a default profile for printing at all other resolutions and media types
</em>
580 *cupsColorProfile -/-:
"0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
584 <h3><span class='info'
>Mac OS X
10.3/CUPS
1.2</span><a name='cupsICCProfile'
>cupsICCProfile
</a></h3>
586 <p class='summary'
>*cupsICCProfile ColorModel.MediaType.Resolution/Description:
"filename"</p>
588 <p>This keyword specifies an ICC color profile that is used to convert the document colors to the device colorspace. The
<tt>ColorModel
</tt>,
<tt>MediaType
</tt>, and
<tt>Resolution
</tt> option keywords specify a selector for color profiles. If omitted, the color profile will match any option keyword for the corresponding main keyword.
</p>
590 <p>The
<tt>Description
</tt> specifies human-readable text that is associated with the color profile. The
<tt>filename
</tt> portion specifies the ICC color profile to use; if the filename is not absolute, it is loaded relative to the
<var>/usr/share/cups/profiles
</var> directory.
</p>
594 <pre class='command'
>
595 <em>*% Specify a profile for CMYK printing at
360dpi on all media types
</em>
596 *cupsICCProfile CMYK.
.360dpi/
360dpi CMYK:
"/Library/Printers/vendor/Profiles/foo-360-cmyk.icc"
598 <em>*% Specify a profile for RGB printing at
720dpi on Glossy media
</em>
599 *cupsColorProfile RGB.Glossy
.720dpi/
720dpi Glossy:
"/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc"
601 <em>*% Specify a default profile for printing at all other resolutions and media types
</em>
602 *cupsICCProfile ../Default:
"/Library/Printers/vendor/Profiles/foo-default.icc"
605 <h4>Customizing the Profile Selection Keywords
</h4>
607 <p>The
<tt>MediaType
</tt> and
<tt>Resolution
</tt> main keywords can be reassigned to different main keywords, allowing drivers to do color profile selection based on different parameters. The
<tt>cupsICCQualifier2
</tt> and
<tt>cupsICCQualifier3
</tt> keywords define the mapping from selector to main keyword:
</p>
609 <pre class='command'
>
610 *cupsICCQualifier2: MainKeyword2
611 *cupsICCQualifier3: MainKeyword3
614 <p>The default mapping is as follows:
</p>
616 <pre class='command'
>
617 *cupsICCQualifier2: MediaType
618 *cupsICCQualifier3: Resolution
621 <h3><span class='info'
>Mac OS X
10.4</span><a name='APCustom'
>Custom Color Matching Support
</a></h3>
623 <p class='summary'
>*
<a href='#APSupportsCustomColorMatching'
>APSupportsCustomColorMatching
</a>: true
<br>
624 *
<a href='#APCustomColorMatchingName'
>APCustomColorMatchingName
</a> name/text:
""<br>
625 *
<a href='#APCustomColorMatchingProfile'
>APCustomColorMatchingProfile
</a>: profile
<br>
626 *
<a href='#APDefaultCustomColorMatchingProfile'
>APDefaultCustomColorMatchingProfile
</a>: profile
</p>
628 <p>These keywords tell the Mac OS X raster filters that the printer driver provides its own custom color matching and that generic color profiles should be used when generating
1-,
3-, and
4-component raster data as requested by the driver. The
<tt>APCustomColorMatchingProfile
</tt> and
<tt>APDefaultColorMatchingProfile
</tt> keywords specify alternate color profiles (sRGB or AdobeRGB) to use for
3-color (RGB) raster data.
</p>
630 <blockquote><b>Note:
</b>
632 <p>Prior to Mac OS X
10.6, the default RGB color space was Apple's
"GenericRGB". The new default in Mac OS X
10.6 and later is
"sRGB". For more information, see
<a href=
"http://support.apple.com/kb/HT3712">"Mac OS X v10.6: About gamma 2.2"</a> on Apple's support site.
</p>
636 <h4><span class='info'
>Mac OS X
10.5</span><a name='APCustomColorMatchingName'
>APCustomColorMatchingName
</a></h4>
638 <p class='summary'
>*APCustomColorMatchingName name/text:
""</p>
640 <p>This keyword defines an alternate name for the color matching provided by a driver in the
<var>Color Matching
</var> print panel. The default is to use the name
"Vendor Matching" or its localized equivalent.
</p>
644 <pre class='command'
>
645 *% Define the names for our color matching...
646 *APCustomColorMatchingName name/AcmeColor(tm):
""
647 *fr.APCustomColorMatchingName name/La AcmeColor(tm):
""
650 <h4><span class='info'
>Mac OS X
10.5</span><a name='APCustomColorMatchingProfile'
>APCustomColorMatchingProfile
</a></h4>
652 <p class='summary'
>*APCustomColorMatchingProfile: name
</p>
654 <p>This keyword defines a supported RGB color profile that can be used when doing custom color matching. Currently only
<tt>sRGB
</tt>,
<tt>AdobeRGB
</tt>, and
<tt>GenericRGB
</tt> are supported. If not specified, RGB data will use the GenericRGB colorspace.
</p>
656 <blockquote><b>Note:
</b>
658 <p>If you provide multiple
<tt>APCustomColorMatchingProfile
</tt> keywords, you are responsible for providing the necessary user interface controls to select the profile in a
<a href='#APDialogExtension'
>print dialog pane
</a>. Add the named profile to the print settings using the key
<tt>kPMCustomColorMatchingProfileKey
</tt>.
</p>
664 <pre class='command'
>
665 *% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB
666 *APSupportsCustomColorMatching: true
667 *APDefaultCustomColorMatchingProfile: sRGB
668 *APCustomColorMatchingProfile: sRGB
669 *APCustomColorMatchingProfile: AdobeRGB
672 <h4><span class='info'
>Mac OS X
10.5</span><a name='APDefaultCustomColorMatchingProfile'
>APDefaultCustomColorMatchingProfile
</a></h4>
674 <p class='summary'
>*APDefaultCustomColorMatchingProfile: name
</p>
676 <p>This keyword defines the default RGB color profile that will be used when doing custom color matching. Currently only
<tt>sRGB
</tt>,
<tt>AdobeRGB
</tt>, and
<tt>GenericRGB
</tt> are supported.
</p>
680 <pre class='command'
>
681 *% Use sRGB for RGB color by default
682 *APSupportsCustomColorMatching: true
683 *APDefaultCustomColorMatchingProfile: sRGB
686 <h4><span class='info'
>Mac OS X
10.4</span><a name='APSupportsCustomColorMatching'
>APSupportsCustomColorMatching
</a></h4>
688 <p class='summary'
>*APSupportsCustomColorMatching: boolean
</p>
690 <p>This keyword specifies that the driver provides its own custom color matching. When
<tt>true
</tt>, the default hand-off colorspace will be GenericGray, GenericRGB, or GenericCMYK depending on the number of components the driver requests. The
<a href='#APDefaultCustomColorMatchingProfile'
><tt>APDefaultCustomColorMatchingProfile
</tt></a> keyword can be used to override the default
3-component (RGB) colorspace.
</p>
692 <p>The default for
<tt>APSupportsCustomColorMatching
</tt> is
<tt>false
</tt>.
</p>
696 <pre class='command'
>
697 *APSupportsCustomColorMatching: true
698 *APDefaultCustomColorMatchingProfile: sRGB
702 <h2 class='title'
><a name='CONSTRAINTS'
>Constraints
</a></h2>
704 <p>Constraints are option choices that are not allowed by the driver or device, for example printing
2-sided transparencies. All versions of CUPS support constraints defined by the legacy Adobe
<tt>UIConstraints
</tt> and
<tt>NonUIConstraints
</tt> keywords which support conflicts between any two option choices, for example:
</p>
706 <pre class='command'
>
707 *% Do not allow
2-sided printing on transparency media
708 *UIConstraints:
"*Duplex *MediaType Transparency"
709 *UIConstraints:
"*MediaType Transparency *Duplex"
712 <p>While nearly all constraints can be expressed using these keywords, there are valid scenarios requiring constraints between more than two option choices. In addition, resolution of constraints is problematic since users and software have to guess how a particular constraint is best resolved.
</p>
714 <p>CUPS
1.4 and higher define two new keywords for constraints,
<tt>cupsUIConstraints
</tt> and
<tt>cupsUIResolver
</tt>. Each
<tt>cupsUIConstraints
</tt> keyword points to a
<tt>cupsUIResolver
</tt> keyword which specifies alternate options that resolve the conflict condition. The same
<tt>cupsUIResolver
</tt> can be used by multiple
<tt>cupsUIConstraints
</tt>.
</p>
716 <blockquote><b>Note:
</b>
718 <p>When developing PPD files that contain constraints, it is very important to use the
<a href=
"man-cupstestppd.html">cupstestppd(
1)
</a> program to verify that your constraints are accurate and cannot result in unresolvable option selections.
</p>
722 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsUIConstraints'
>cupsUIConstraints
</a></h3>
724 <p class='summary'
>*cupsUIConstraints resolver:
"*Keyword1 *Keyword2 ..."<br>
725 *cupsUIConstraints resolver:
"*Keyword1 OptionKeyword1 *Keyword2 ..."<br>
726 *cupsUIConstraints resolver:
"*Keyword1 *Keyword2 OptionKeyword2 ..."<br>
727 *cupsUIConstraints resolver:
"*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."<br>
728 *cupsUIConstraints:
"*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
730 <p>Lists two or more options which conflict. The
"resolver" string is a (possibly unique) keyword which specifies which options to change when the constraint exists. When no resolver is provided, CUPS first tries the default choice followed by testing each option choice to resolve the conflict.
</p>
734 <pre class='command'
>
735 <em>*% Specify that
2-sided printing cannot happen on transparencies
</em>
736 *cupsUIConstraints transparency:
"*Duplex *MediaType Transparency"
738 <em>*% Specify that envelope printing cannot happen from the paper trays
</em>
739 *cupsUIConstraints envelope:
"*PageSize Env10 *InputSlot Tray1"
740 *cupsUIConstraints envelope:
"*PageSize Env10 *InputSlot Tray1"
741 *cupsUIConstraints envelope:
"*PageSize EnvDL *InputSlot Tray2"
742 *cupsUIConstraints envelope:
"*PageSize EnvDL *InputSlot Tray2"
744 <em>*% Specify an installable option constraint for the envelope feeder
</em>
745 *cupsUIConstraints:
"*InputSlot EnvFeeder *InstalledEnvFeeder"
747 <em>*% Specify that photo printing cannot happen on plain paper or transparencies at
1200dpi
</em>
748 *cupsUIConstraints photo:
"*OutputMode Photo *MediaType Plain *Resolution 1200dpi"
749 *cupsUIConstraints photo:
"*OutputMode Photo *MediaType Transparency *Resolution 1200dpi"
752 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsUIResolver'
>cupsUIResolver
</a></h3>
754 <p class='summary'
>*cupsUIResolver resolver:
"*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
756 <p>Specifies two or more options to mark/select to resolve a constraint. The
"resolver" string identifies a particular action to take for one or more
<a href='#cupsUIConstraints'
><tt>cupsUIConstraints
</tt></a>. The same action can be used for multiple constraints. The option keyword pairs are treated as an ordered list of option selections to try - only the first N selections will be used, where N is the minimum number of selections required. Because
<a href=
"api-ppd.html#cupsResolveConflicts"><code>cupsResolveConflicts()
</code></a> will not change the most recent option selection passed to it, at least two options from the constraints must be listed to avoid situations where conflicts cannot be resolved.
</p>
760 <pre class='command'
>
761 <em>*% Specify the options to change for the
2-sided transparency constraint
</em>
762 *cupsUIResolver transparency:
"*Duplex None *MediaType Plain"
764 <em>*% Specify the options to change for the envelope printing constraints. Notice
765 *% that we try to change the InputSlot to either the envelope feeder or the
766 *% manual feed first, then we change the page size...
</em>
767 *cupsUIResolver envelope:
"*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter"
769 <em>*% Specify the options to change for the photo printing constraints
</em>
770 *cupsUIResolver photo:
"*OutputMode Best *Resolution 600dpi"
774 <h2 class='title'
><a name='I18N'
>Globalized PPD Support
</a></h2>
776 <p>CUPS
1.2 and higher adds support for PPD files containing multiple languages by following the following additional rules:
</p>
780 <li>The
<tt>LanguageVersion
</tt> MUST be
<tt>English
</tt></li>
782 <li>The
<tt>LanguageEncoding
</tt> MUST be
<tt>ISOLatin1
</tt></li>
784 <li>The
<tt>cupsLanguages
</tt> keyword MUST be provided and list each of the supported locales in the PPD file
</li>
786 <li>Main and option keywords MUST NOT exceed
34 (instead of
40) characters to allow room for the locale prefixes in translation keywords
</li>
788 <li>The main keyword
"Translation" MUST NOT be used
</li>
790 <li>Translation strings included with the main and option keywords MUST NOT contain characters outside the ASCII subset of ISOLatin1 and UTF-
8; developers wishing to use characters outside ASCII MUST provide a separate set of English localization keywords for the affected keywords.
</li>
792 <li>Localizations are specified using a locale prefix of the form
"ll" or
"ll_CC." where
"ll" is the
2-letter ISO language code and
"CC" is the
2-letter ISO country code
<ul>
793 <li>A generic language translation (
"ll") SHOULD be provided with country-specific differences (
"ll_CC") provided only as needed
</li>
794 <li>For historical reasons, the
"zh" and
"zh_CN" locales map to Simplified Chinese while the
"zh_TW" locale maps to Traditional Chinese
</li>
797 <li>Locale-specific translation strings MUST be encoded using UTF-
8.
</li>
799 <li>Main keywords MUST be localized using one of the following forms:
800 <p><tt>*ll.Translation MainKeyword/translation text:
""</tt><br />
801 <tt>*ll_CC.Translation MainKeyword/translation text:
""</tt></p></li>
803 <li>Option keywords MUST be localized using one of the following forms:
804 <p><tt>*ll.MainKeyword OptionKeyword/translation text:
""</tt><br>
805 <tt>*ll_CC.MainKeyword OptionKeyword/translation text:
""</tt></p></li>
807 <li>Localization keywords MAY appear anywhere after the first line of the PPD file
</li>
811 <blockquote><b>Note:
</b>
813 <p>We use a
<tt>LanguageEncoding
</tt> value of
<tt>ISOLatin1
</tt> and limit the allowed base translation strings to ASCII to avoid character coding issues that would otherwise occur. In addition, requiring the base translation strings to be in English allows for easier fallback translation when no localization is provided in the PPD file for a given locale.
</p>
819 <pre class='command'
>
820 *LanguageVersion: English
821 *LanguageEncoding: ISOLatin1
822 *cupsLanguages:
"de fr_CA"
823 *ModelName:
"Foobar Laser 9999"
825 <em>*% Localize ModelName for French and German
</em>
826 *fr_CA.Translation ModelName/La Foobar Laser
9999:
""
827 *de.Translation ModelName/Foobar LaserDrucken
9999:
""
829 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html"
830 <em>*% Localize printer-state-reason for French and German
</em>
831 *fr_CA.cupsIPPReason com.vendor-error/Une erreur s
èrieuse s'est produite:
"/help/com.vendor/error.html"
832 *de.cupsIPPReason com.vendor-error/Eine ernste St
örung trat:
"/help/com.vendor/error.html"
836 *OpenUI *InputSlot/Paper Source: PickOne
837 *OrderDependency:
10 AnySetup *InputSlot
838 *DefaultInputSlot: Auto
839 <em>*% Localize InputSlot for French and German
</em>
840 *fr_CA.Translation InputSlot/Papier source:
""
841 *de.Translation InputSlot/Papiereinzug:
""
842 *InputSlot Auto/Default:
"<</ManualFeed false>>setpagedevice"
843 <em>*% Localize InputSlot=Auto for French and German
</em>
844 *fr_CA.InputSlot Auto/Par Defaut:
""
845 *de.InputSlot Auto/Standard:
""
846 *InputSlot Manual/Manual Feed:
"<</ManualFeed true>>setpagedevice"
847 <em>*% Localize InputSlot=Manual for French and German
</em>
848 *fr_CA.InputSlot Manual/Manuel mecanisme de alimentation:
""
849 *de.InputSlot Manual/Manueller Einzug:
""
854 <h2 class='title'
><a name='OPTIONS'
><span class=
"info">CUPS
1.3/Mac OS X
10.6</span>Custom Options
</a></h2>
856 <p>CUPS supports custom options using an extension of the
<tt>CustomPageSize
</tt> and
<tt>ParamCustomPageSize
</tt> syntax:
</p>
858 <pre class='command'
>
859 *CustomFoo True:
"command"
860 *ParamCustomFoo Name1/Text
1: order type minimum maximum
861 *ParamCustomFoo Name2/Text
2: order type minimum maximum
863 *ParamCustomFoo NameN/Text N: order type minimum maximum
866 <p>When the base option is part of the
<tt>JCLSetup
</tt> section, the
"command" string contains JCL commands with
"\order" placeholders for each numbered parameter. The CUPS API handles any necessary value quoting for HP-PJL commands. For example, if the JCL command string is
"@PJL SET PASSCODE=\1" and the first
867 option value is
"1234" then CUPS will output the string
"@PJL SET PASSCODE=1234".
</p>
869 <p>For non-
<tt>JCLSetup
</tt> options, the
"order" value is a number from
1 to N and specifies the order of values as they are placed on the stack before the command. For example, if the PostScript command string is
"<</cupsReal1 2 1 roll>>setpagedevice" and the option value is
"2.0" then CUPS will output the string
"2.0 <</cupsReal1 2 1 roll>>setpagedevice".
</p>
871 <p>The
"type" is one of the following keywords:
</p>
875 <li><tt>curve
</tt> - a real value from
"minimum" to
"maximum" representing a gamma correction curve using the function: f(x) = x
<sup>value
</sup></li>
877 <li><tt>int
</tt> - an integer value from
"minimum" to
"maximum"</li>
879 <li><tt>invcurve
</tt> - a real value from
"minimum" to
"maximum" representing a gamma correction curve using the function: f(x) = x
<sup>1 / value
</sup></li>
881 <li><tt>passcode
</tt> - a string of numbers value with a minimum of
"minimum" numbers and a maximum of
"maximum" numbers (
"minimum" and
"maximum" are numbers and passcode strings are not displayed in the user interface)
</li>
883 <li><tt>password
</tt> - a string value with a minimum of
"minimum" characters and a maximum of
"maximum" characters (
"minimum" and
"maximum" are numbers and password strings are not displayed in the user interface)
</li>
885 <li><tt>points
</tt> - a measurement value in points from
"minimum" to
"maximum"</li>
887 <li><tt>real
</tt> - a real value from
"minimum" to
"maximum"</li>
889 <li><tt>string
</tt> - a string value with a minimum of
"minimum" characters and a maximum of
"maximum" characters (
"minimum" and
"maximum" are numbers)
</li>
895 <pre class='command'
>
896 <em>*% Base JCL key code option
</em>
897 *JCLOpenUI JCLPasscode/Key Code: PickOne
898 *OrderDependency:
10 JCLSetup *JCLPasscode
899 *DefaultJCLPasscode: None
900 *JCLPasscode None/No Code:
""
901 *JCLPasscode
1111:
"@PJL SET PASSCODE = 1111<0A>"
902 *JCLPasscode
2222:
"@PJL SET PASSCODE = 2222<0A>"
903 *JCLPasscode
3333:
"@PJL SET PASSCODE = 3333<0A>"
904 *JCLCloseUI: *JCLPasscode
906 <em>*% Custom JCL key code option
</em>
907 *CustomJCLPasscode True:
"@PJL SET PASSCODE = \1<0A>"
908 *ParamCustomJCLPasscode Code/Key Code:
1 passcode
4 4
911 <em>*% Base PostScript watermark option
</em>
912 *OpenUI WatermarkText/Watermark Text: PickOne
913 *OrderDependency:
10 AnySetup *WatermarkText
914 *DefaultWatermarkText: None
915 *WatermarkText None:
""
916 *WatermarkText Draft:
"<</cupsString1(Draft)>>setpagedevice"
917 *CloseUI: *WatermarkText
919 <em>*% Custom PostScript watermark option
</em>
920 *CustomWatermarkText True:
"<</cupsString1 3 -1 roll>>setpagedevice"
921 *ParamCustomWatermarkText Text:
1 string
0 32
924 <em>*% Base PostScript gamma/density option
</em>
925 *OpenUI GammaDensity/Gamma and Density: PickOne
926 *OrderDependency:
10 AnySetup *GammaDensity
927 *DefaultGammaDensity: Normal
928 *GammaDensity Normal/Normal:
"<</cupsReal1 1.0/cupsReal2 1.0>>setpagedevice"
929 *GammaDensity Light/Lighter:
"<</cupsReal1 0.9/cupsReal2 0.67>>setpagedevice"
930 *GammaDensity Dark/Darker:
"<</cupsReal1 1.1/cupsReal2 1.5>>setpagedevice"
931 *CloseUI: *GammaDensity
933 <em>*% Custom PostScript gamma/density option
</em>
934 *CustomGammaDensity True:
"<</cupsReal1 3 -1 roll/cupsReal2 5 -1>>setpagedevice"
935 *ParamCustomGammaDensity Gamma:
1 curve
0.1 10
936 *ParamCustomGammaDensity Density:
2 real
0 2
940 <h2 class='title'
><a name='RASTERPS'
>Writing PostScript Option Commands for Raster Drivers
</a></h2>
942 <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 keywords such as page size, resolution, and so forth. For example, the following code sets the page size to A4 size:
</p>
944 <pre class='command'
>
945 *PageSize A4:
"<</PageSize[595 842]>>setpagedevice"
948 <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>
950 <pre class='command'
>
951 *CustomWatermarkText True:
"<</cupsString1 3 -1 roll>>setpagedevice"
954 <p>For a custom string value of
"My Watermark", CUPS will produce the following PostScript code for the option:
</p>
956 <pre class='command'
>
958 <</cupsString1
3 -
1 roll
>>setpagedevice
961 <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>
963 <pre class='command'
>
964 <</cupsString1(My Watermark)
>>setpagedevice
967 <p>The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.
</p>
969 <h3>Custom Page Size Code
</a></h3>
971 <p>There are many possible implementations of the
<tt>CustomPageSize
</tt> code. For CUPS raster drivers, the following code is recommended:
</p>
973 <pre class='command'
>
974 *ParamCustomPageSize Width:
1 points
<i>min-width max-width
</i>
975 *ParamCustomPageSize Height:
2 points
<i>min-height max-height
</i>
976 *ParamCustomPageSize WidthOffset:
3 points
0 0
977 *ParamCustomPageSize HeightOffset:
4 points
0 0
978 *ParamCustomPageSize Orientation:
5 int
0 0
979 *CustomPageSize True:
"pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
982 <h3>Supported PostScript Operators
</a></h3>
984 <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>
988 <li><tt><<</tt> - Start a dictionary.
</li>
990 <li><tt>>></tt> - End a dictionary.
</li>
992 <li><tt>[
</tt> - Start an array.
</li>
994 <li><tt>]
</tt> - End an array.
</li>
996 <li><tt>copy
</tt> - Copy the top N objects on the stack.
</li>
998 <li><tt>dup
</tt> - Copy the top object on the stack.
</li>
1000 <li><tt>index
</tt> - Copy the Nth from the top object on the stack.
</li>
1002 <li><tt>pop
</tt> - Pop the top object on the stack.
</li>
1004 <li><tt>roll
</tt> - Shift the top N objects on the stack.
</li>
1006 <li><tt>setpagedevice
</tt> - Set the page header values according to the key/value dictionary on the stack.
</li>
1010 <blockquote><b>Note:
</b>
1012 <p><em>Never
</em> use the unsupported
<tt>dict
</tt> or
<tt>put
</tt>
1013 operators in your option code. These operators are typically used in
1014 option code dating back to Level
1 PostScript printers, which did not
1015 support the simpler
<tt><<</tt> or
<tt>>></tt> operators.
1016 If you have old option code using
<tt>dict
</tt> or
<tt>put
</tt>, you can
1017 rewrite it very easily to use the newer
<tt><<</tt> and
1018 <tt>>></tt> operators instead. For example, the following code
1019 to set the page size:
</p>
1021 <style type='text/css'
><!--
1023 background: #000000;
1029 <pre class='command'
>
1030 <b>1 dict dup
</b> /PageSize [
612 792]
<b>put
</b> setpagedevice
1033 <p>can be rewritten as:
</p>
1035 <pre class='command'
>
1036 <b><<</b> /PageSize [
612 792]
<b>>></b> setpagedevice
1041 <h3>Supported Page Device Attributes
</a></h3>
1043 <p>Table
2 shows the supported page device attributes along with PostScript code examples.
</p>
1046 <table summary='Supported Page Device Attributes'
>
1047 <caption>Table
2:
<a name='TABLE_2'
>Supported Page Device Attributes
</a></caption>
1052 <th>Description
</th>
1058 <td><tt>AdvanceDistance
</tt></td>
1060 <td>Specifies the number of points to advance roll media after printing.
</td>
1061 <td><tt><</AdvanceDistance
18>>setpagedevice
</tt></td>
1064 <td><tt>AdvanceMedia
</tt></td>
1066 <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>
1067 <td><tt><</AdvanceMedia
4>>setpagedevice
</tt></td>
1070 <td><tt>Collate
</tt></td>
1072 <td>Specifies whether collated copies are required.
</td>
1073 <td><tt><</Collate true
>>setpagedevice
</tt></td>
1076 <td><tt>CutMedia
</tt></td>
1078 <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>
1079 <td><tt><</CutMedia
1>>setpagedevice
</tt></td>
1082 <td><tt>Duplex
</tt></td>
1084 <td>Specifies whether
2-sided printing is required.
</td>
1085 <td><tt><</Duplex true
>>setpagedevice
</tt></td>
1088 <td><tt>HWResolution
</tt></td>
1089 <td>Integer Array
</td>
1090 <td>Specifies the resolution of the page image in pixels per inch.
</td>
1091 <td><tt><</HWResolution[
1200 1200]
>>setpagedevice
</tt></td>
1094 <td><tt>InsertSheet
</tt></td>
1096 <td>Specifies whether to insert a blank sheet before the job.
</td>
1097 <td><tt><</InsertSheet true
>>setpagedevice
</tt></td>
1100 <td><tt>Jog
</tt></td>
1102 <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>
1103 <td><tt><</Jog
2>>setpagedevice
</tt></td>
1106 <td><tt>LeadingEdge
</tt></td>
1108 <td>Specifies the leading edge of the media:
0 = top,
1 = right,
2 = bottom,
3 = left.
</td>
1109 <td><tt><</LeadingEdge
0>>setpagedevice
</tt></td>
1112 <td><tt>ManualFeed
</tt></td>
1114 <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>
1115 <td><tt><</ManualFeed true
>>setpagedevice
</tt></td>
1118 <td><tt>MediaClass
</tt></td>
1120 <td>Specifies a named media.
</td>
1121 <td><tt><</MediaClass (Invoices)
>>setpagedevice
</tt></td>
1124 <td><tt>MediaColor
</tt></td>
1126 <td>Specifies the color of the media.
</td>
1127 <td><tt><</MediaColor
>>setpagedevice
</tt></td>
1130 <td><tt>MediaPosition
</tt></td>
1132 <td>Specifies the tray or source of the media.
</td>
1133 <td><tt><</MediaPosition
12>>setpagedevice
</tt></td>
1136 <td><tt>MediaType
</tt></td>
1138 <td>Specifies the general media type.
</td>
1139 <td><tt><</MediaType (Glossy)
>>setpagedevice
</tt></td>
1142 <td><tt>MediaWeight
</tt></td>
1144 <td>Specifies the media weight in grams per meter
<sup>2</sup>.
</td>
1145 <td><tt><</MediaWeight
100>>setpagedevice
</tt></td>
1148 <td><tt>MirrorPrint
</tt></td>
1150 <td>Specifies whether to flip the output image horizontally.
</td>
1151 <td><tt><</MirrorPrint true
>>setpagedevice
</tt></td>
1154 <td><tt>NegativePrint
</tt></td>
1156 <td>Specifies whether to invert the output image.
</td>
1157 <td><tt><</NegativePrint true
>>setpagedevice
</tt></td>
1160 <td><tt>NumCopies
</tt></td>
1162 <td>Specifies the number of copies to produce of each page.
</td>
1163 <td><tt><</NumCopies
100>>setpagedevice
</tt></td>
1166 <td><tt>Orientation
</tt></td>
1168 <td>Specifies the orientation of the output:
0 = portrait,
1 = landscape rotated counter-clockwise,
2 = upside-down,
3 = landscape rotated clockwise.
</td>
1169 <td><tt><</Orientation
3>>setpagedevice
</tt></td>
1172 <td><tt>OutputFaceUp
</tt></td>
1174 <td>Specifies whether to place the media face-up in the output bin/tray.
</td>
1175 <td><tt><</OutputFaceUp true
>>setpagedevice
</tt></td>
1178 <td><tt>OutputType
</tt></td>
1180 <td>Specifies the output type name.
</td>
1181 <td><tt><</OutputType (Photo)
>>setpagedevice
</tt></td>
1184 <td><tt>PageSize
</tt></td>
1185 <td>Integer/Real Array
</td>
1186 <td>Specifies the width and length/height of the page in points.
</td>
1187 <td><tt><</PageSize[
595 842]
>>setpagedevice
</tt></td>
1190 <td><tt>Separations
</tt></td>
1192 <td>Specifies whether to produce color separations.
</td>
1193 <td><tt><</Separations true
>>setpagedevice
</tt></td>
1196 <td><tt>TraySwitch
</tt></td>
1198 <td>Specifies whether to switch trays automatically.
</td>
1199 <td><tt><</TraySwitch true
>>setpagedevice
</tt></td>
1202 <td><tt>Tumble
</tt></td>
1204 <td>Specifies whether the back sides of pages are rotated
180 degrees.
</td>
1205 <td><tt><</Tumble true
>>setpagedevice
</tt></td>
1208 <td><tt>cupsBorderlessScalingFactor
</tt></td>
1210 <td>Specifies the amount to scale the page image dimensions.
</td>
1211 <td><tt><</cupsBorderlessScalingFactor
1.01>>setpagedevice
</tt></td>
1214 <td><tt>cupsColorOrder
</tt></td>
1216 <td>Specifies the order of colors:
0 = chunked,
1 = banded,
2 = planar.
</td>
1217 <td><tt><</cupsColorOrder
0>>setpagedevice
</tt></td>
1220 <td><tt>cupsColorSpace
</tt></td>
1222 <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>
1223 <td><tt><</cupsColorSpace
1 >>setpagedevice
</tt></td>
1226 <td><tt>cupsCompression
</tt></td>
1228 <td>Specifies a driver compression type/mode.
</td>
1229 <td><tt><</cupsCompression
2>>setpagedevice
</tt></td>
1232 <td><tt>cupsInteger0
<br>
1234 cupsInteger15
</tt></td>
1236 <td>Specifies driver integer values.
</td>
1237 <td><tt><</cupsInteger11
1234>>setpagedevice
</tt></td>
1240 <td><tt>cupsMarkerType
</tt></td>
1242 <td>Specifies the type of ink/toner to use.
</td>
1243 <td><tt><</cupsMarkerType (Black+Color)
>>setpagedevice
</tt></td>
1246 <td><tt>cupsMediaType
</tt></td>
1248 <td>Specifies a numeric media type.
</td>
1249 <td><tt><</cupsMediaType
999>>setpagedevice
</tt></td>
1252 <td><tt>cupsPageSizeName
</tt></td>
1254 <td>Specifies the name of the page size.
</td>
1255 <td><tt><</cupsPageSizeName (A4.Full)
>>setpagedevice
</tt></td>
1258 <td><tt>cupsPreferredBitsPerColor
</tt></td>
1260 <td>Specifies the preferred number of bits per color, typically
8 or
16.
</td>
1261 <td><tt><</cupsPreferredBitsPerColor
16>>setpagedevice
</tt></td>
1264 <td><tt>cupsReal0
<br>
1266 cupsReal15
</tt></td>
1268 <td>Specifies driver real number values.
</td>
1269 <td><tt><</cupsReal15
1.234>>setpagedevice
</tt></td>
1272 <td><tt>cupsRenderingIntent
</tt></td>
1274 <td>Specifies the color rendering intent.
</td>
1275 <td><tt><</cupsRenderingIntent (AbsoluteColorimetric)
>>setpagedevice
</tt></td>
1278 <td><tt>cupsRowCount
</tt></td>
1280 <td>Specifies the number of rows of raster data to print on each line for some drivers.
</td>
1281 <td><tt><</cupsRowCount
24>>setpagedevice
</tt></td>
1284 <td><tt>cupsRowFeed
</tt></td>
1286 <td>Specifies the number of rows to feed between passes for some drivers.
</td>
1287 <td><tt><</cupsRowFeed
17>>setpagedevice
</tt></td>
1290 <td><tt>cupsRowStep
</tt></td>
1292 <td>Specifies the number of lines between columns/rows on the print head for some drivers.
</td>
1293 <td><tt><</cupsRowStep
2>>setpagedevice
</tt></td>
1296 <td><tt>cupsString0
<br>
1298 cupsString15
</tt></td>
1300 <td>Specifies driver string values.
</td>
1301 <td><tt><</cupsString0(String Value)
>>setpagedevice
</tt></td>
1307 <h2 class='title'
><a name='MEDIA'
>Media Keywords
</a></h2>
1309 <p>The CUPS media keywords allow drivers to specify alternate custom page
1310 size limits based on up to two options.
</p>
1312 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMediaQualifier2'
>cupsMediaQualifier2
</a></h3>
1314 <p class='summary'
>*cupsMediaQualifier2: MainKeyword
</p>
1316 <p>This keyword specifies the second option to use for overriding the
1317 custom page size limits.
</p>
1321 <pre class='command'
>
1322 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1323 *cupsMediaQualifier2: InputSlot
1324 *cupsMediaQualifier3: Quality
1325 *cupsMaxSize .Manual.:
"1000 1000"
1326 *cupsMinSize .Manual.:
"100 100"
1327 *cupsMinSize .Manual.Photo:
"200 200"
1328 *cupsMinSize ..Photo:
"300 300"
1331 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMediaQualifier3'
>cupsMediaQualifier3
</a></h3>
1333 <p class='summary'
>*cupsMediaQualifier3: MainKeyword
</p>
1335 <p>This keyword specifies the third option to use for overriding the
1336 custom page size limits.
</p>
1340 <pre class='command'
>
1341 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1342 *cupsMediaQualifier2: InputSlot
1343 *cupsMediaQualifier3: Quality
1344 *cupsMaxSize .Manual.:
"1000 1000"
1345 *cupsMinSize .Manual.:
"100 100"
1346 *cupsMinSize .Manual.Photo:
"200 200"
1347 *cupsMinSize ..Photo:
"300 300"
1350 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMinSize'
>cupsMinSize
</a></h3>
1352 <p class='summary'
>*cupsMinSize .Qualifier2.Qualifier3:
"width length"<br>
1353 *cupsMinSize .Qualifier2.:
"width length"<br>
1354 *cupsMinSize ..Qualifier3:
"width length"</p>
1356 <p>This keyword specifies alternate minimum custom page sizes in points.
1357 The
<a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a> and
1358 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a> keywords
1359 are used to identify options to use for matching.
</p>
1363 <pre class='command'
>
1364 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1365 *cupsMediaQualifier2: InputSlot
1366 *cupsMediaQualifier3: Quality
1367 *cupsMaxSize .Manual.:
"1000 1000"
1368 *cupsMinSize .Manual.:
"100 100"
1369 *cupsMinSize .Manual.Photo:
"200 200"
1370 *cupsMinSize ..Photo:
"300 300"
1373 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMaxSize'
>cupsMaxSize
</a></h3>
1375 <p class='summary'
>*cupsMaxSize .Qualifier2.Qualifier3:
"width length"<br>
1376 *cupsMaxSize .Qualifier2.:
"width length"<br>
1377 *cupsMaxSize ..Qualifier3:
"width length"</p>
1379 <p>This keyword specifies alternate maximum custom page sizes in points.
1380 The
<a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a> and
1381 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a> keywords
1382 are used to identify options to use for matching.
</p>
1386 <pre class='command'
>
1387 <em>*% Specify alternate custom page size limits based on InputSlot and Quality
</em>
1388 *cupsMediaQualifier2: InputSlot
1389 *cupsMediaQualifier3: Quality
1390 *cupsMaxSize .Manual.:
"1000 1000"
1391 *cupsMinSize .Manual.:
"100 100"
1392 *cupsMinSize .Manual.Photo:
"200 200"
1393 *cupsMinSize ..Photo:
"300 300"
1397 <h2 class='title'
><a name='ATTRIBUTES'
>General Attributes
</a></h2>
1399 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsBackSide'
>cupsBackSide
</a></h3>
1401 <p class='summary'
>*cupsBackSide: keyword
</p>
1403 <p>This keyword requests special handling of the back side of pages
1404 when doing duplexed (
2-sided) output.
<a href='#TABLE_1'
>Table
1</a>
1405 shows the supported keyword values for this keyword and their effect
1406 on the raster data sent to your driver. For example, when
<tt>cupsBackSide
</tt>
1407 is
<code>Rotated
</code> and
<tt>Tumble
</tt> is
<tt>false
</tt>, your driver
1408 will receive print data starting at the bottom right corner of the page, with
1409 each line going right-to-left instead of left-to-right. The default value is
1410 <code>Normal
</code>.
</p>
1412 <blockquote><b>Note:
</b>
1414 <p><tt>cupsBackSide
</tt> replaces the older
<tt>cupsFlipDuplex
</tt>
1415 keyword - if
<tt>cupsBackSide
</tt> is specified,
<tt>cupsFlipDuplex
</tt>
1416 will be ignored.
</p>
1421 <table width='
80%' summary='Back Side Raster Coordinate System'
>
1422 <caption>Table
1:
<a name='TABLE_1'
>Back Side Raster Coordinate System
</a></caption>
1425 <th>cupsBackSide
</th>
1426 <th>Tumble Value
</th>
1427 <th>Image Presentation
</th>
1432 <td><code>Normal
</code></td>
1433 <td><code>false
</code></td>
1434 <td>Left-to-right, top-to-bottom
</td>
1437 <td><code>Normal
</code></td>
1438 <td><code>true
</code></td>
1439 <td>Left-to-right, top-to-bottom
</td>
1442 <td><code>ManualTumble
</code></td>
1443 <td><code>false
</code></td>
1444 <td>Left-to-right, top-to-bottom
</td>
1447 <td><code>ManualTumble
</code></td>
1448 <td><code>true
</code></td>
1449 <td>Right-to-left, bottom-to-top
</td>
1452 <td><code>Rotated
</code></td>
1453 <td><code>false
</code></td>
1454 <td>Right-to-left, bottom-to-top
</td>
1457 <td><code>Rotated
</code></td>
1458 <td><code>true
</code></td>
1459 <td>Right-to-left, top-to-bottom
</td>
1462 <td><code>Flipped
</code> *
</td>
1463 <td><code>false
</code></td>
1464 <td>Left-to-right, bottom-to-top
</td>
1467 <td><code>Flipped
</code> *
</td>
1468 <td><code>true
</code></td>
1469 <td>Right-to-left, top-to-bottom
</td>
1475 <p><em>* - Not supported in Mac OS X
10.5.x and earlier
</em></p>
1477 <div class='figure'
><table summary='Back side images'
>
1478 <caption>Figure
1: Back side images
</caption>
1479 <tr><td><img src='../images/raster.png' width='
624' height='
448' alt='Back side images'
></td></tr>
1484 <pre class='command'
>
1485 <em>*% Flip the page image for the back side of duplexed output
</em>
1486 *cupsBackSide: Flipped
1488 <em>*% Rotate the page image for the back side of duplexed output
</em>
1489 *cupsBackSide: Rotated
1492 <p>Also see the related
<a href='#APDuplexRequiresFlippedMargin'
><tt>APDuplexRequiresFlippedMargin
</tt></a>
1495 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsCommands'
>cupsCommands
</a></h3>
1497 <p class='summary'
>*cupsCommands:
"name name2 ... nameN"</p>
1499 <p>This string keyword specifies the commands that are supported by the
1500 CUPS command file filter for this device. The command names are separated
1505 <pre class='command'
>
1506 <em>*% Specify the list of commands we support
</em>
1507 *cupsCommands:
"AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo"
1511 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsEvenDuplex'
>cupsEvenDuplex
</a></h3>
1513 <p class='summary'
>*cupsEvenDuplex: boolean
</p>
1515 <p>This boolean keyword notifies the RIP filters that the
1516 destination printer requires an even number of pages when
2-sided
1517 printing is selected. The default value is
<code>false
</code>.
</p>
1521 <pre class='command'
>
1522 <em>*% Always send an even number of pages when duplexing
</em>
1523 *cupsEvenDuplex: true
1526 <h3><a name='cupsFax'
>cupsFax
</a></h3>
1528 <p class='summary'
>*cupsFax: boolean
</p>
1530 <p>This boolean keyword specifies whether the PPD defines a facsimile device. The default is
<tt>false
</tt>.
</p>
1534 <pre class='command'
>
1538 <h3><a name='cupsFilter'
>cupsFilter
</a></h3>
1540 <p class='summary'
>*cupsFilter:
"source/type cost program"</p>
1542 <p>This string keyword provides a conversion rule from the
1543 given source type to the printer's native format using the
1544 filter
"program". If a printer supports the source type directly,
1545 the special filter program
"-" may be specified.
</p>
1549 <pre class='command'
>
1550 <em>*% Standard raster printer driver filter
</em>
1551 *cupsFilter:
"application/vnd.cups-raster 100 rastertofoo"
1553 <em>*% Plain text filter
</em>
1554 *cupsFilter:
"text/plain 10 texttofoo"
1556 <em>*% Pass-through filter for PostScript printers
</em>
1557 *cupsFilter:
"application/vnd.cups-postscript 0 -"
1560 <h3><span class='info'
>CUPS
1.5</span><a name='cupsFilter2'
>cupsFilter2
</a></h3>
1562 <p class='summary'
>*cupsFilter2:
"source/type destination/type cost program"</p>
1564 <p>This string keyword provides a conversion rule from the given source type to the printer's native format using the filter
"program". If a printer supports the source type directly, the special filter program
"-" may be specified. The destination type is automatically created as needed and is passed to the filters and backend as the FINAL_CONTENT_TYPE value.
</p>
1566 <blockquote><b>Note:
</b>
1568 <p>The presence of a single
<code>cupsFilter2
</code> keyword in the PPD file will hide any
<code>cupsFilter
</code> keywords from the CUPS scheduler. When using
<code>cupsFilter2
</code> to provide filters specific for CUPS
1.5 and later, provide a
<code>cupsFilter2
</code> line for every filter and a
<code>cupsFilter
</code> line for each filter that is compatible with older versions of CUPS.
</p>
1574 <pre class='command'
>
1575 <em>*% Standard raster printer driver filter
</em>
1576 *cupsFilter2:
"application/vnd.cups-raster application/vnd.foo 100 rastertofoo"
1578 <em>*% Plain text filter
</em>
1579 *cupsFilter2:
"text/plain application/vnd.foo 10 texttofoo"
1581 <em>*% Pass-through filter for PostScript printers
</em>
1582 *cupsFilter2:
"application/vnd.cups-postscript application/postscript 0 -"
1585 <h3><span class='info'
>Deprecated
</span><a name='cupsFlipDuplex'
>cupsFlipDuplex
</a></h3>
1587 <p class='summary'
>*cupsFlipDuplex: boolean
</p>
1589 <p>Due to implementation differences between Mac OS X and Ghostscript,
1590 the
<tt>cupsFlipDuplex
</tt> keyword is deprecated. Instead, use
1591 the
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a> keyword to specify
1592 the coordinate system (pixel layout) of the page data on the back side of
1595 <p>The value
<code>true
</code> maps to a
<tt>cupsBackSide
</tt> value
1596 of
<code>Rotated
</code> on Mac OS X and
<code>Flipped
</code> with
1599 <p>The default value is
<code>false
</code>.
</p>
1601 <blockquote><b>Note:
</b>
1603 <p>Mac OS X drivers that previously used
1604 <tt>cupsFlipDuplex
</tt> may wish to provide both the old and
1605 new keywords for maximum compatibility, for example:
</p>
1607 <pre class='command'
>
1608 *cupsBackSide: Rotated
1609 *cupsFlipDuplex: true
1612 <p>Similarly, drivers written for other operating systems using
1613 Ghostscript can use:
</p>
1615 <pre class='command'
>
1616 *cupsBackSide: Flipped
1617 *cupsFlipDuplex: true
1620 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsIPPFinishings'
>cupsIPPFinishings
</a></h3>
1622 <p class='summary'
>*cupsIPPFinishings number/text:
"*Option Choice ..."</p>
1624 <p>This keyword defines a mapping from IPP
<code>finishings
</code>
1625 values to PPD options and choices.
</p>
1629 <pre class='command'
>
1630 *cupsIPPFinishings
4/staple:
"*StapleLocation SinglePortrait"
1631 *cupsIPPFinishings
5/punch:
"*PunchMedia Yes *PunchLocation LeftSide"
1632 *cupsIPPFinishings
20/staple-top-left:
"*StapleLocation SinglePortrait"
1633 *cupsIPPFinishings
21/staple-bottom-left:
"*StapleLocation SingleLandscape"
1636 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsIPPReason'
>cupsIPPReason
</a></h3>
1638 <p class='summary'
>*cupsIPPReason reason/Reason Text:
"optional URIs"</p>
1640 <p>This optional keyword maps custom
1641 <code>printer-state-reasons
</code> keywords that are generated by
1642 the driver to human readable text. The optional URIs string
1643 contains zero or more URIs separated by a newline. Each URI can
1644 be a CUPS server absolute path to a help file under the
1645 scheduler's
<code>DocumentRoot
</code> directory, a full HTTP URL
1646 (
"http://www.domain.com/path/to/help/page.html"), or any other
1647 valid URI which directs the user at additional information
1648 concerning the condition that is being reported.
</p>
1650 <p>Since the reason text is limited to
80 characters by the PPD specification,
1651 longer text strings can be included by URI-encoding the text with the
"text"
1652 scheme, for example
"text:some%20text". Multiple
<code>text
</code> URIs are
1653 combined (with spaces between each URI) by the
<tt>ppdLocalizeIPPReason
</tt>
1654 into a single string that can be displayed to the user.
</p>
1658 <pre class='command'
>
1659 <em>*% Map com.vendor-error to text but no page
</em>
1660 *cupsIPPReason com.vendor-error/A serious error occurred:
""
1662 <em>*% Map com.vendor-error to more than
80 characters of text but no page
</em>
1663 *cupsIPPReason com.vendor-error/A serious error occurred:
"text:Now%20is%20the%20time
1664 text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country."
1666 <em>*% Map com.vendor-error to text and a local page
</em>
1667 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html"
1669 <em>*% Map com.vendor-error to text and a remote page
</em>
1670 *cupsIPPReason com.vendor-error/A serious error occurred:
"http://www.vendor.com/help"
1672 <em>*% Map com.vendor-error to text and a local, Apple help book, and remote page
</em>
1673 *APHelpBook:
"file:///Library/Printers/vendor/Help.bundle"
1674 *cupsIPPReason com.vendor-error/A serious error occurred:
"/help/com.vendor/error.html
1675 help:anchor='com.vendor-error'%20bookID=Vendor%20Help
1676 http://www.vendor.com/help"
1680 <h3><span class='info'
>CUPS
1.5</span><a name='cupsIPPSupplies'
>cupsIPPSupplies
</a></h3>
1682 <p class='summary'
>*cupsIPPSupplies: boolean
</p>
1684 <p>This keyword tells the IPP backend whether it should report the current marker-xxx supply attribute values. The default value is
<code>True
</code>.
1688 <pre class='command'
>
1689 <em>*% Do not use IPP marker-xxx attributes to report supply levels
</em>
1690 *cupsIPPSupplies: False
1693 <h3><span class='info'
>CUPS
1.2/Mac OS X
10.5</span><a name='cupsLanguages'
>cupsLanguages
</a></h3>
1695 <p class='summary'
>*cupsLanguages:
"locale list"</p>
1697 <p>This keyword describes which language localizations are
1698 included in the PPD. The
"locale list" string is a space-delimited
1699 list of locale names (
"en",
"en_US",
"fr_CA", etc.)
</p>
1703 <pre class='command'
>
1704 <em>*% Specify Canadian, UK, and US English, and Candian and French French
</em>
1705 *cupsLanguages:
"en_CA en_UK en_US fr_CA fr_FR"
1708 <h3><a name='cupsManualCopies'
>cupsManualCopies
</a></h3>
1710 <p class='summary'
>*cupsManualCopies: boolean
</p>
1712 <p>This boolean keyword notifies the RIP filters that the
1713 destination printer does not support copy generation in
1714 hardware. The default value is
<code>false
</code>.
</p>
1718 <pre class='command'
>
1719 <em>*% Tell the RIP filters to generate the copies for us
</em>
1720 *cupsManualCopies: true
1723 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMarkerName'
>cupsMarkerName
</a></h3>
1725 <p class='summary'
>*cupsMarkerName/Name Text:
""</p>
1727 <p>This optional keyword maps
<code>marker-names
</code> strings that are
1728 generated by the driver to human readable text.
</p>
1732 <pre class='command'
>
1733 <em>*% Map cyanToner to
"Cyan Toner"</em>
1734 *cupsMarkerName cyanToner/Cyan Toner:
""
1737 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsMarkerNotice'
>cupsMarkerNotice
</a></h3>
1739 <p class='summary'
>*cupsMarkerNotice:
"disclaimer text"</p>
1741 <p>This optional keyword provides disclaimer text for the supply level
1742 information provided by the driver, typically something like
"supply levels
1743 are approximate".
</p>
1747 <pre class='command'
>
1748 *cupsMarkerNotice:
"Supply levels are approximate."
1751 <h3><a name='cupsModelNumber'
>cupsModelNumber
</a></h3>
1753 <p class='summary'
>*cupsModelNumber: number
</p>
1755 <p>This integer keyword specifies a printer-specific model
1756 number. This number can be used by a filter program to adjust
1757 the output for a specific model of printer.
</p>
1761 <pre class='command'
>
1762 <em>*% Specify an integer for a driver-specific model number
</em>
1763 *cupsModelNumber:
1234
1766 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsPJLCharset'
>cupsPJLCharset
</a></h3>
1768 <p class='summary'
>*cupsPJLCharset:
"ISO character set name"</p>
1770 <p>This string keyword specifies the character set that is used
1771 for strings in PJL commands. If not specified, US-ASCII is
1776 <pre class='command'
>
1777 <em>*% Specify UTF-
8 is used in PJL strings
</em>
1778 *cupsPJLCharset:
"UTF-8"
1781 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsPJLDisplay'
>cupsPJLDisplay
</a></h3>
1783 <p class='summary'
>*cupsPJLDisplay:
"what"</p>
1785 <p>This optional keyword specifies which command is used to display the
1786 job ID, name, and user on the printer's control panel.
"What" is either
"none"
1787 to disable this functionality,
"job" to use
"@PJL JOB DISPLAY", or
"rdymsg"
1788 to use
"@PJL RDYMSG DISPLAY". The default is
"job".
</p>
1792 <pre class='command'
>
1793 <em>*% Display job information using @PJL SET RDYMSG
DISPLAY=
"foo"</em>
1794 *cupsPJLDisplay:
"rdymsg"
1796 <em>*% Display job information display
</em>
1797 *cupsPJLDisplay:
"none"
1800 <h3><span class='info'
>CUPS
1.2/Mac OS X
10.5</span><a name='cupsPortMonitor'
>cupsPortMonitor
</a></h3>
1802 <p class='summary'
>*cupsPortMonitor urischeme/Descriptive Text:
"port monitor"</p>
1804 <p>This string keyword specifies printer-specific
"port
1805 monitor" filters that may be used with the printer. The CUPS
1806 scheduler also looks for the
<tt>Protocols
</tt> keyword to see
1807 if the
<tt>BCP
</tt> or
<tt>TBCP
</tt> protocols are supported. If
1808 so, the corresponding port monitor (
"bcp" and
"tbcp",
1809 respectively) is listed in the printer's
1810 <tt>port-monitor-supported
</tt> keyword.
</p>
1812 <p>The
"urischeme" portion of the keyword specifies the URI scheme
1813 that this port monitor should be used for. Typically this is used to
1814 pre-select a particular port monitor for each type of connection that
1815 is supported by the printer. The
"port monitor" string can be
"none"
1816 to disable the port monitor for the given URI scheme.
</p>
1820 <pre class='command'
>
1821 <em>*% Specify a PostScript printer that supports the TBCP protocol
</em>
1822 *Protocols: TBCP PJL
1824 <em>*% Specify that TBCP should be used for socket connections but not USB
</em>
1825 *cupsPortMonitor socket/AppSocket Printing:
"tbcp"
1826 *cupsPortMonitor usb/USB Printing:
"none"
1828 <em>*% Specify a printer-specific port monitor for an Epson USB printer
</em>
1829 *cupsPortMonitor usb/USB Status Monitor:
"epson-usb"
1832 <h3><span class='info'
>CUPS
1.3/Mac OS X
10.5</span><a name='cupsPreFilter'
>cupsPreFilter
</a></h3>
1834 <p class='summary'
>*cupsPreFilter:
"source/type cost program"</p>
1836 <p>This string keyword provides a pre-filter rule. The pre-filter
1837 program will be inserted in the conversion chain immediately
1838 before the filter that accepts the given MIME type.
</p>
1842 <pre class='command'
>
1843 <em>*% PDF pre-filter
</em>
1844 *cupsPreFilter:
"application/pdf 100 mypdfprefilter"
1846 <em>*% PNG pre-filter
</em>
1847 *cupsPreFilter:
"image/png 0 mypngprefilter"
1851 <h3><span class='info'
>CUPS
1.5</span><a name='cupsPrintQuality'
>cupsPrintQuality
</a></h3>
1853 <p class='summary'
>*cupsPrintQuality keyword/text:
"code"</p>
1855 <p>This UI keyword defines standard print qualities that directly map from the IPP
"print-quality" job template keyword. 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>
1857 <blockquote><b>Note:
</b>
1859 <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>
1865 <pre class='command'
>
1866 *OpenUI *cupsPrintQuality/Print Quality: PickOne
1867 *OrderDependency:
10 AnySetup *cupsPrintQuality
1868 *DefaultcupsPrintQuality: Normal
1869 *cupsPrintQuality Draft/Draft:
"code"
1870 *cupsPrintQuality Normal/Normal:
"code"
1871 *cupsPrintQuality High/Photo:
"code"
1872 *CloseUI: *cupsPrintQuality
1875 <h3><span class='info'
>CUPS
1.5</span><a name='cupsSingleFile'
>cupsSingleFile
</a></h3>
1877 <p class='summary'
>*cupsSingleFile: Boolean
</p>
1879 <p>This boolean keyword tells the scheduler whether to print multiple files in a job together or singly. The default is
"False" which uses a single instance of the backend for all files in the print job. Setting this keyword to
"True" will result in separate instances of the backend for each file in the print job.
</p>
1883 <pre class='command'
>
1884 <em>*% Send all print data to a single backend
</em>
1885 *cupsSingleFile: False
1887 <em>*% Send each file using a separate backend
</em>
1888 *cupsSingleFile: True
1891 <h3><span class='info'
>CUPS
1.4/Mac OS X
10.6</span><a name='cupsSNMPSupplies'
>cupsSNMPSupplies
</a></h3>
1893 <p class='summary'
>*cupsSNMPSupplies: boolean
</p>
1895 <p>This keyword tells the standard network backends whether they should query
1896 the standard SNMP Printer MIB OIDs for supply levels. The default value is
1901 <pre class='command'
>
1902 <em>*% Do not use SNMP queries to report supply levels
</em>
1903 *cupsSNMPSupplies: False
1906 <h3><a name='cupsVersion'
>cupsVersion
</a></h3>
1908 <p class='summary'
>*cupsVersion: major.minor
</p>
1910 <p>This required keyword describes which version of the CUPS
1911 PPD file extensions was used. Currently it must be the string
1912 "1.0",
"1.1",
"1.2", or
"1.3".
</p>
1916 <pre class='command'
>
1917 <em>*% Specify a CUPS
1.2 driver
</em>
1922 <h2 class='title'
><a name='MACOSX'
>Mac OS X Attributes
</a></h2>
1924 <h3><span class='info'
>Mac OS X
10.3</span><a name='APDialogExtension'
>APDialogExtension
</a></h3>
1926 <p class='summary'
>*APDialogExtension:
"/Library/Printers/vendor/filename.plugin"</p>
1928 <p>This keyword defines additional option panes that are displayed in the
1929 print dialog. Each keyword adds one or more option panes. See the
"OutputBinsPDE"
1930 example and
<a href='http://developer.apple.com/qa/qa2004/qa1352.html'
>Apple
1931 Technical Q
&A QA1352
</a> for information on writing your own print dialog
1934 <blockquote><b>Note:
</b>
1936 <p>Starting with Mac OS X
10.5, each plug-in must be compiled
"4-way fat"
1937 (
32-bit and
64-bit for both PowerPC and Intel) with garbage collection enabled
1938 in order to be usable with all applications.
</p>
1944 <pre class='command'
>
1945 *% Add two panes for finishing and driver options
1946 *APDialogExtension:
"/Library/Printers/vendor/finishing.plugin"
1947 *APDialogExtension:
"/Library/Printers/vendor/options.plugin"
1950 <h3><span class='info'
>Mac OS X
10.4</span><a name='APDuplexRequiresFlippedMargin'
>APDuplexRequiresFlippedMargin
</a></h3>
1952 <p class='summary'
>*APDuplexRequiresFlippedMargin: boolean
</p>
1954 <p>This boolean keyword notifies the RIP filters that the
1955 destination printer requires the top and bottom margins of the
1956 <tt>ImageableArea
</tt> to be swapped for the back page. The
1957 default is
<tt>true
</tt> when
<tt>cupsBackSide
</tt> is
<tt>Flipped
</tt>
1958 and
<tt>false
</tt> otherwise.
<a href='#TABLE_2'
>Table
2</a> shows how
1959 <tt>APDuplexRequiresFlippedMargin
</tt> interacts with
<tt>cupsBackSide
</tt>
1960 and the
<tt>Tumble
</tt> page attribute.
</p>
1963 <table width='
80%' summary='Margin Flipping Modes'
>
1964 <caption>Table
2:
<a name='TABLE_2'
>Margin Flipping Modes
</a></caption>
1967 <th>APDuplexRequiresFlippedMargin
</th>
1968 <th>cupsBackSide
</th>
1969 <th>Tumble Value
</th>
1988 <td>ManualDuplex
</td>
1994 <td>ManualDuplex
</td>
2011 <td>true or unspecified
</td>
2021 <pre class='command'
>
2022 <em>*% Rotate the back side images
</em>
2023 *cupsBackSide: Rotated
2025 <em>*% Don't swap the top and bottom margins for the back side
</em>
2026 *APDuplexRequiresFlippedMargin: false
2029 <p>Also see the related
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a>
2032 <h3><a name='APHelpBook'
>APHelpBook
</a></h3>
2034 <p class='summary'
>*APHelpBook:
"bundle URL"</p>
2036 <p>This string keyword specifies the Apple help book bundle to use when
2037 looking up IPP reason codes for this printer driver. The
2038 <a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> keyword maps
2039 "help" URIs to this file.
</p>
2043 <pre class='command'
>
2044 *APHelpBook:
"file:///Library/Printers/vendor/Help.bundle"
2047 <h3><span class='info'
>Mac OS X
10.6</span><a name='APICADriver'
>APICADriver
</a></h3>
2049 <p class='summary'
>*APICADriver: boolean
</p>
2051 <p>This keyword specifies whether the device has a matching Image Capture
2052 Architecture (ICA) driver for scanning. The default is
<tt>False
</tt>.
</p>
2056 <pre class='command'
>
2058 *APScanAppBundleID:
"com.apple.ImageCaptureApp"
2061 <h3><span class='info'
>Mac OS X
10.3</span><a name='APPrinterIconPath'
>APPrinterIconPath
</a></h3>
2063 <p class='summary'
>*APPrinterIconPath:
"/Library/Printers/vendor/filename.icns"</p>
2065 <p>This keyword defines the location of a printer icon file to use when
2066 displaying the printer. The file must be in the Apple icon format.
</p>
2070 <pre class='command'
>
2072 *APPrinterIconPath:
"/Library/Printers/vendor/Icons/filename.icns"
2075 <h3><span class='info'
>Mac OS X
10.4</span><a name='APPrinterLowInkTool'
>APPrinterLowInkTool
</a></h3>
2077 <p class='summary'
>*APPrinterLowInkTool:
"/Library/Printers/vendor/program"</p>
2079 <p>This keyword defines an program that checks the ink/toner/marker levels
2080 on a printer, returning an XML document with those levels. See the
"InkTool"
2082 <a href='http://developer.apple.com/technotes/tn2005/tn2144.html'
>Apple
2083 Technical Note TN2144
</a> for more information.
</p>
2087 <pre class='command'
>
2088 *% Use a vendor monitoring program
2089 *APPrinterLowInkTool:
"/Library/Printers/vendor/Tools/lowinktool"
2092 <h3><span class='info'
>Mac OS X
10.5</span><a name='APPrinterPreset'
>APPrinterPreset
</a></h3>
2094 <p class='summary'
>*APPrinterPreset name/text:
"*Option Choice ..."</p>
2096 <p>This keyword defines presets for multiple options that show up
2097 in the print dialog of applications (such as iPhoto) that set the job
2098 style hint to
<tt>NSPrintPhotoJobStyleHint
</tt>. Each preset maps to one or
2099 more pairs of PPD options and choices as well as providing key/value data for
2100 the application. The following standard preset names are currently defined:
</p>
2104 <li><code>General_with_Paper_Auto-Detect
</code>; Normal quality general printing with auto-detected media.
</li>
2106 <li><code>General_with_Paper_Auto-Detect_-_Draft
</code>; Draft quality general printing with auto-detected media.
</li>
2108 <li><code>General_on_Plain_Paper
</code>; Normal quality general printing on plain paper.
</li>
2110 <li><code>General_on_Plain_Paper_-_Draft
</code>; Draft quality general printing on plain paper.
</li>
2112 <li><code>Photo_with_Paper_Auto-Detect
</code>; Normal quality photo printing with auto-detected media.
</li>
2114 <li><code>Photo_with_Paper_Auto-Detect_-_Fine
</code>; High quality photo printing with auto-detected media.
</li>
2116 <li><code>Photo_on_Plain_Paper
</code>; Normal quality photo printing on plain paper.
</li>
2118 <li><code>Photo_on_Plain_Paper_-_Fine
</code>; High quality photo printing on plain paper.
</li>
2120 <li><code>Photo_on_Photo_Paper
</code>; Normal quality photo printing on glossy photo paper.
</li>
2122 <li><code>Photo_on_Photo_Paper_-_Fine
</code>; High quality photo printing on glossy photo paper.
</li>
2124 <li><code>Photo_on_Matte_Paper
</code>; Normal quality photo printing on matte paper.
</li>
2126 <li><code>Photo_on_Matte_Paper_-_Fine
</code>; High quality photo printing on matte paper.
</li>
2130 <p>The value string consists of pairs of keywords, either an option name and
2131 choice (*MainKeyword OptionKeyword) or a preset identifier and value
2132 (com.apple.print.preset.foo value). The following preset identifiers are currently used:
</p>
2136 <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>
2138 <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>
2140 <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>
2142 <li><code>com.apple.print.preset.quality
</code>; specifies the overall print quality selected by this preset -
"low" (draft),
"mid" (normal), or
"high".
</li>
2146 <p>Presets, like options, can also be localized in multiple languages.
</p>
2150 <pre class='command'
>
2151 *APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper:
"
2155 com.apple.print.preset.graphicsType Photo
2156 com.apple.print.preset.quality mid
2157 com.apple.print.preset.media-front-coating glossy"
2159 *fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique:
""
2162 <h3><span class='info'
>Mac OS X
10.3</span><a name='APPrinterUtilityPath'
>APPrinterUtilityPath
</a></h3>
2164 <p class='summary'
>*APPrinterPrinterUtilityPath:
"/Library/Printers/vendor/filename.app"</p>
2166 <p>This keyword defines a GUI application that can be used to do printer
2167 maintenance functions such as cleaning the print head(s). See ... for more
2172 <pre class='command'
>
2173 *% Define the printer utility application
2174 *APPrinterPrinterUtilityPath:
"/Library/Printers/vendor/Tools/utility.app"
2177 <h3><span class='info'
>Mac OS X
10.6</span><a name='APScannerOnly'
>APScannerOnly
</a></h3>
2179 <p class='summary'
>*APScannerOnly: boolean
</p>
2181 <p>This keyword specifies whether the device has scanning but no printing
2182 capabilities. The default is
<tt>False
</tt>.
</p>
2186 <pre class='command'
>
2188 *APScannerOnly: True
2191 <h3><span class='info'
>Mac OS X
10.3</span><a name='APScanAppBundleID'
>APScanAppBundleID
</a></h3>
2193 <p class='summary'
>*APScanAppBundleID:
"bundle ID"</p>
2195 <p>This keyword defines the application to use when scanning pages from
2200 <pre class='command'
>
2202 *APScanAppBundleID:
"com.apple.ImageCaptureApp"
2206 <h2 class='title'
><a name='HISTORY'
>Change History
</a></h2>
2208 <h3>Changes in CUPS
1.5</h3>
2212 <li>Changes all instances of PPD attributes to PPD keywords, to be consistent with the parent specification from Adobe.
</li>
2217 <h3>Changes in CUPS
1.4.5</h3>
2221 <li>Added
<a href='#cupsPrintQuality'
><tt>cupsPrintQuality
</tt></a> UI keyword.
</li>
2223 <li>Added new properties and values for the
<a href='#APPrinterPreset'
><tt>APPrinterPreset
</tt></a> keyword.
</li>
2228 <h3>Changes in CUPS
1.4</h3>
2232 <li>Added
<a href='#APICADriver'
><tt>APICADriver
</tt></a>
2235 <li>Added
<a href='#cupsCommands'
><tt>cupsCommands
</tt></a>
2238 <li>Added
<a href='#cupsMarkerName'
><tt>cupsMarkerName
</tt></a>
2241 <li>Added
<a href='#cupsMarkerNotice'
><tt>cupsMarkerNotice
</tt></a>
2244 <li>Added
<a href='#cupsPJLDisplay'
><tt>cupsPJLDisplay
</tt></a>
2247 <li>Added
<a href='#cupsSNMPSupplies'
><tt>cupsSNMPSupplies
</tt></a>
2250 <li>Added
<a href='#cupsUIResolver'
><tt>cupsUIResolver
</tt></a> and
2251 <a href='#cupsUIConstraints'
><tt>cupsUIConstraints
</tt></a>
2255 <a href='#cupsMediaQualifier2'
><tt>cupsMediaQualifier2
</tt></a>,
2256 <a href='#cupsMediaQualifier3'
><tt>cupsMediaQualifier3
</tt></a>,
2257 <a href='#cupsMinSize'
><tt>cupsMinSize
</tt></a>, and
2258 <a href='#cupsMaxSize'
><tt>cupsMaxSize
</tt></a> keywords.
</li>
2263 <h3>Changes in CUPS
1.3.1</h3>
2267 <li>Added missing Mac OS X
<tt>AP
</tt> keywords.
</li>
2269 <li>Added section on auto-configuration including the
2270 <tt>OID
<i>MainKeyword
</i></tt> and
<tt>?
<i>MainKeyword
</i></tt>
2273 <li>Minor reorganization.
</li>
2278 <h3>Changes in CUPS
1.3</h3>
2282 <li>Added
<a href='#cupsBackSide'
><tt>cupsBackSide
</tt></a> and
2283 deprecated
<a href='#cupsFlipDuplex'
><tt>cupsFlipDuplex
</tt></a>.
</li>
2285 <li>Added text URI information to
2286 <a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> documentation.
</li>
2288 <li>Added
<a href='#APPrinterPreset'
><tt>APPrinterPreset
</tt></a>,
2289 <a href='#cupsIPPFinishings'
><tt>cupsIPPFinishings
</tt></a>, and
2290 <a href='#cupsPreFilter'
><tt>cupsPreFilter
</tt></a> keywords.
</li>
2292 <li>Added discussion of custom option code, sample
2293 <tt>CustomPageSize
</tt> code, and
"do not use dict and put" note.
</li>
2297 <h3>Changes in CUPS
1.2.8</h3>
2301 <li>Added section on supported PostScript commands for raster
2306 <h3>Changes in CUPS
1.2</h3>
2310 <li>Added globalization support keywords
</li>
2312 <li>Added custom option values support
</li>
2314 <li>Added
<a href='#APHelpBook'
><tt>APHelpBook
</tt></a> keyword
</li>
2316 <li>Added
<a href='#APDuplexRequiresFlippedMargin'
><tt>APDuplexRequiresFlippedMargin
</tt></a>
2319 <li>Added
<a href='#cupsICCProfile'
><tt>cupsICCProfile
</tt></a> keyword
</li>
2321 <li>Added
<a href='#cupsIPPReason'
><tt>cupsIPPReason
</tt></a> keyword
</li>
2323 <li>Added
<a href='#cupsLanguages'
><tt>cupsLanguages
</tt></a> keyword
</li>
2325 <li>Added
<a href='#cupsPortMonitor'
><tt>cupsPortMonitor
</tt></a> keyword
</li>
2327 <li>Removed
<tt>cupsProtocol
</tt> keyword
</li>
2331 <h3>Changes in CUPS
1.1</h3>
2335 <li>Added
<a href='#cupsFlipDuplex'
><tt>cupsFlipDuplex
</tt></a> keyword
</li>
2337 <li>Added
<tt>cupsProtocol
</tt> keyword
</li>