]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/spec-ppd.html
Add support for finishings-col (Issue #5180)
[thirdparty/cups.git] / doc / help / spec-ppd.html
CommitLineData
abacc52b 1<!doctype html>
ef416fc2 2<html>
4744bd90 3<!-- SECTION: Specifications -->
abacc52b
MS
4 <head>
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.11">
9 <meta name="author" content="Unknown">
10 <meta name="copyright" content="Unknown">
53af7f21 11 <meta name="version" content="0.0">
abacc52b 12 <style type="text/css"><!--
10d09e33
MS
13BODY {
14 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
15}
16
17H1, H2, H3, H4, H5, H6, P, TD, TH {
18 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
19}
20
21KBD {
22 font-family: monaco, courier, monospace;
23 font-weight: bold;
24}
25
26PRE {
27 font-family: monaco, courier, monospace;
28}
29
30PRE.command {
31 border: dotted thin #7f7f7f;
32 margin-left: 36pt;
33 padding: 10px;
34}
35
36P.compact {
37 margin: 0;
38}
39
40P.example {
41 font-style: italic;
42 margin-left: 36pt;
43}
ca6b43fc 44
240214ef
MS
45DL.man DD {
46 margin-left: 5em;
47}
48
49DL.man DT {
50 margin-left: 0;
51}
52
53PRE.man {
54 margin: 0;
55}
56
10d09e33
MS
57PRE.example {
58 background: #eeeeee;
59 border: dotted thin #999999;
60 margin-left: 36pt;
61 padding: 10pt;
62}
63
64PRE.command EM, PRE.example EM {
65 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
66}
67
68P.command {
69 font-family: monaco, courier, monospace;
70 margin-left: 36pt;
71}
72
73P.formula {
74 font-style: italic;
75 margin-left: 36pt;
76}
77
78BLOCKQUOTE {
79 background: #eeeeee;
80 border: solid thin #999999;
81 padding: 10pt;
82}
83
84A IMG {
85 border: none;
86}
87
88A:link:hover IMG {
89 background: #f0f0f0;
90 border-radius: 10px;
91 -moz-border-radius: 10px;
92}
93
94A:link, A:visited {
ca6b43fc 95 font-weight: inherit;
10d09e33
MS
96 text-decoration: none;
97}
98
99A:link:hover, A:visited:hover, A:active {
100 text-decoration: underline;
101}
102
103SUB, SUP {
104 font-size: 50%;
105}
106
107TR.data, TD.data, TR.data TD {
108 margin-top: 10pt;
109 padding: 5pt;
110 border-bottom: solid 1pt #999999;
111}
112
113TR.data TH {
114 border-bottom: solid 1pt #999999;
115 padding-top: 10pt;
116 padding-left: 5pt;
117 text-align: left;
118}
119
120DIV.table TABLE {
121 border: solid thin #999999;
122 border-collapse: collapse;
123 border-spacing: 0;
124 margin-left: auto;
125 margin-right: auto;
126}
127
128DIV.table CAPTION {
129 caption-side: top;
130 font-size: 120%;
131 font-style: italic;
132 font-weight: bold;
133 margin-left: auto;
134 margin-right: auto;
135}
136
137DIV.table TABLE TD {
138 border: solid thin #cccccc;
139 padding-top: 5pt;
140}
141
142DIV.table TABLE TH {
143 background: #cccccc;
144 border: none;
145 border-bottom: solid thin #999999;
146}
147
148DIV.figure TABLE {
149 margin-left: auto;
150 margin-right: auto;
151}
152
153DIV.figure CAPTION {
154 caption-side: bottom;
155 font-size: 120%;
156 font-style: italic;
157 font-weight: bold;
158 margin-left: auto;
159 margin-right: auto;
160}
161
162TH.label {
163 text-align: right;
164 vertical-align: top;
165}
166
167TH.sublabel {
168 text-align: right;
169 font-weight: normal;
170}
171
172HR {
173 border: solid thin;
174}
175
176SPAN.info {
177 background: black;
178 border: thin solid black;
179 color: white;
180 font-size: 80%;
181 font-style: italic;
182 font-weight: bold;
183 white-space: nowrap;
184}
185
186H2 SPAN.info, H3 SPAN.info, H4 SPAN.info {
187 float: right;
188 font-size: 100%;
189}
190
191H1.title {
192}
193
194H2.title, H3.title {
195 border-bottom: solid 2pt #000000;
196}
197
198DIV.indent, TABLE.indent {
199 margin-top: 2em;
200 margin-left: auto;
201 margin-right: auto;
202 width: 90%;
203}
204
205TABLE.indent {
206 border-collapse: collapse;
207}
208
209TABLE.indent TD, TABLE.indent TH {
210 padding: 0;
211}
212
213TABLE.list {
214 border-collapse: collapse;
215 margin-left: auto;
216 margin-right: auto;
217 width: 90%;
218}
219
220TABLE.list TH {
221 background: white;
222 border-bottom: solid thin #cccccc;
223 color: #444444;
224 padding-top: 10pt;
225 padding-left: 5pt;
226 text-align: left;
227 vertical-align: bottom;
228 white-space: nowrap;
229}
230
231TABLE.list TH A {
232 color: #4444cc;
233}
234
235TABLE.list TD {
236 border-bottom: solid thin #eeeeee;
237 padding-top: 5pt;
238 padding-left: 5pt;
239}
240
241TABLE.list TR:nth-child(even) {
242 background: #f8f8f8;
243}
244
245TABLE.list TR:nth-child(odd) {
246 background: #f4f4f4;
247}
248
249DT {
250 margin-left: 36pt;
251 margin-top: 12pt;
252}
253
254DD {
255 margin-left: 54pt;
256}
257
258DL.category DT {
259 font-weight: bold;
260}
261
262P.summary {
263 margin-left: 36pt;
264 font-family: monaco, courier, monospace;
265}
266
267DIV.summary TABLE {
268 border: solid thin #999999;
269 border-collapse: collapse;
270 border-spacing: 0;
271 margin: 10px;
272}
273
274DIV.summary TABLE TD, DIV.summary TABLE TH {
275 border: solid thin #999999;
276 padding: 5px;
277 text-align: left;
278 vertical-align: top;
279}
280
281DIV.summary TABLE THEAD TH {
282 background: #eeeeee;
283}
284
285/* API documentation styles... */
286div.body h1 {
287 margin: 0;
288}
289div.body h2 {
290 margin-top: 1.5em;
291}
292div.body h3, div.body h4, div.body h5 {
293 margin-bottom: 0.5em;
294 margin-top: 1.5em;
295}
296.class, .enumeration, .function, .struct, .typedef, .union {
297 border-bottom: solid thin #999999;
298 margin-bottom: 0;
299 margin-top: 2em;
300}
301.description {
302 margin-top: 0.5em;
303}
304code, p.code, pre, ul.code li {
305 font-family: monaco, courier, monospace;
306 font-size: 90%;
307}
308ul.code, ul.contents, ul.subcontents {
309 list-style-type: none;
310 margin: 0;
311 padding-left: 0;
312}
313ul.code li {
314 margin: 0;
315}
316ul.contents > li {
317 margin-top: 1em;
318}
319ul.contents li ul.code, ul.contents li ul.subcontents {
320 padding-left: 2em;
321}
322div.body dl {
323 margin-left: 0;
324 margin-top: 0;
325}
326div.body dt {
327 font-style: italic;
328 margin-left: 0;
329 margin-top: 0;
330}
331div.body dd {
332 margin-bottom: 0.5em;
333}
334
335/* This is just for the HTML files generated with the framedhelp target */
336div.contents {
337 background: #e8e8e8;
338 border: solid thin black;
339 padding: 10px;
340}
341div.contents h1 {
342 font-size: 110%;
343}
344div.contents h2 {
345 font-size: 100%;
346}
347div.contents ul.contents {
348 font-size: 80%;
349}
350div.contents ul.subcontents li {
351 margin-left: 1em;
352 text-indent: -1em;
353}
354--></style>
abacc52b
MS
355 </head>
356 <body>
ef416fc2 357<!--
10d09e33 358 PPD extension documentation for CUPS.
ef416fc2 359
22c9029b 360 Copyright 2007-2011 by Apple Inc.
f7deaa1a 361 Copyright 1997-2007 by Easy Software Products.
ef416fc2 362
363 These coded instructions, statements, and computer programs are the
db1f069b
MS
364 property of Apple Inc. and are protected by Federal copyright
365 law. Distribution and use rights are outlined in the file "LICENSE.txt"
366 which should have been included with this file. If this file is
367 file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 368-->
369
178cb736
MS
370<H1 CLASS="title">CUPS PPD Extensions</H1>
371
10d09e33 372<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>
ef416fc2 373
10d09e33
MS
374<div class='summary'><table summary='General Information'>
375<tbody>
376<tr>
377 <th>See Also</th>
378 <td>Programming: <a href='postscript-driver.html'>Developing PostScript Printer Drivers</a><br>
379 Programming: <a href='raster-driver.html'>Developing Raster Printer Drivers</a><br>
380 Programming: <a href='api-filter.html'>Filter and Backend Programming</a><br>
381 Programming: <a href='ppd-compiler.html'>Introduction to the PPD Compiler</a><br>
382 Programming: <a href='api-raster.html'>Raster API</a><br>
383 References: <a href='ref-ppdcfile.html'>PPD Compiler Driver Information File Reference</a></td>
384</tr>
385</tbody>
386</table></div>
abacc52b
MS
387 <div class="contents">
388 <h2 class="title">Contents</h2>
389 <ul class="contents">
390 <li><a href="#SYNTAX">PPD File Syntax</a></li>
391 <li><a href="#AUTOCONFIG">Auto-Configuration</a><ul class="subcontents">
392 <li><a href="#APAutoSetupTool">APAutoSetupTool</a></li>
393 <li><a href="#QUERYKEYWORD">?MainKeyword</a></li>
394 <li><a href="#OID">OIDMainKeyword</a></li>
395 </ul></li>
396 <li><a href="#PROFILES">Color Profiles</a><ul class="subcontents">
397 <li><a href="#cupsColorProfile">cupsColorProfile</a></li>
398 <li><a href="#cupsICCProfile">cupsICCProfile</a></li>
399 <li><a href="#APCustom">Custom Color Matching Support</a></li>
400 </ul></li>
401 <li><a href="#CONSTRAINTS">Constraints</a><ul class="subcontents">
402 <li><a href="#cupsUIConstraints">cupsUIConstraints</a></li>
403 <li><a href="#cupsUIResolver">cupsUIResolver</a></li>
404 </ul></li>
405 <li><a href="#I18N">Globalized PPD Support</a></li>
406 <li><a href="#OPTIONS">&lt;span class=&quot;info&quot;&gt;CUPS 1.3/macOS 10.6&lt;/span&gt;Custom Options</a></li>
407 <li><a href="#RASTERPS">Writing PostScript Option Commands for Raster Drivers</a></li>
408 <li><a href="#MEDIA">Media Keywords</a><ul class="subcontents">
409 <li><a href="#cupsMediaQualifier2">cupsMediaQualifier2</a></li>
410 <li><a href="#cupsMediaQualifier3">cupsMediaQualifier3</a></li>
411 <li><a href="#cupsMinSize">cupsMinSize</a></li>
412 <li><a href="#cupsMaxSize">cupsMaxSize</a></li>
413 <li><a href="#cupsPageSizeCategory">cupsPageSizeCategory</a></li>
414 </ul></li>
415 <li><a href="#ATTRIBUTES">General Attributes</a><ul class="subcontents">
416 <li><a href="#cupsBackSide">cupsBackSide</a></li>
417 <li><a href="#cupsCommands">cupsCommands</a></li>
418 <li><a href="#cupsEvenDuplex">cupsEvenDuplex</a></li>
419 <li><a href="#cupsFax">cupsFax</a></li>
420 <li><a href="#cupsFilter">cupsFilter</a></li>
421 <li><a href="#cupsFilter2">cupsFilter2</a></li>
4f63d6cd 422 <li><a href="#cupsFinishingTemplate">cupsFinishingTemplate</a></li>
abacc52b
MS
423 <li><a href="#cupsFlipDuplex">cupsFlipDuplex</a></li>
424 <li><a href="#cupsIPPFinishings">cupsIPPFinishings</a></li>
425 <li><a href="#cupsIPPReason">cupsIPPReason</a></li>
426 <li><a href="#cupsIPPSupplies">cupsIPPSupplies</a></li>
427 <li><a href="#cupsJobAccountId">cupsJobAccountId</a></li>
428 <li><a href="#cupsJobAccountingUserId">cupsJobAccountingUserId</a></li>
429 <li><a href="#cupsJobPassword">cupsJobPassword</a></li>
430 <li><a href="#cupsLanguages">cupsLanguages</a></li>
431 <li><a href="#cupsMandatory">cupsMandatory</a></li>
432 <li><a href="#cupsManualCopies">cupsManualCopies</a></li>
433 <li><a href="#cupsMarkerName">cupsMarkerName</a></li>
434 <li><a href="#cupsMarkerNotice">cupsMarkerNotice</a></li>
435 <li><a href="#cupsMaxCopies">cupsMaxCopies</a></li>
436 <li><a href="#cupsModelNumber">cupsModelNumber</a></li>
437 <li><a href="#cupsPJLCharset">cupsPJLCharset</a></li>
438 <li><a href="#cupsPJLDisplay">cupsPJLDisplay</a></li>
439 <li><a href="#cupsPortMonitor">cupsPortMonitor</a></li>
440 <li><a href="#cupsPreFilter">cupsPreFilter</a></li>
441 <li><a href="#cupsPrintQuality">cupsPrintQuality</a></li>
442 <li><a href="#cupsSingleFile">cupsSingleFile</a></li>
443 <li><a href="#cupsSNMPSupplies">cupsSNMPSupplies</a></li>
444 <li><a href="#cupsVersion">cupsVersion</a></li>
445 <li><a href="#JCLToPDFInterpreter">JCLToPDFInterpreter</a></li>
446 </ul></li>
447 <li><a href="#MACOSX">macOS Attributes</a><ul class="subcontents">
448 <li><a href="#APDialogExtension">APDialogExtension</a></li>
449 <li><a href="#APDuplexRequiresFlippedMargin">APDuplexRequiresFlippedMargin</a></li>
450 <li><a href="#APHelpBook">APHelpBook</a></li>
451 <li><a href="#APICADriver">APICADriver</a></li>
452 <li><a href="#APPrinterIconPath">APPrinterIconPath</a></li>
453 <li><a href="#APPrinterLowInkTool">APPrinterLowInkTool</a></li>
454 <li><a href="#APPrinterPreset">APPrinterPreset</a></li>
455 <li><a href="#APPrinterUtilityPath">APPrinterUtilityPath</a></li>
456 <li><a href="#APScannerOnly">APScannerOnly</a></li>
457 <li><a href="#APScanAppBundleID">APScanAppBundleID</a></li>
458 </ul></li>
459 <li><a href="#HISTORY">Change History</a></li>
460 </ul>
461 </div>
462 <div class="body">
ef416fc2 463<h2 class='title'><a name='SYNTAX'>PPD File Syntax</a></h2>
464
10d09e33 465<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>
ef416fc2 466
467<pre class='command'>
468PPD-FILE = HEADER +(DATA / COMMENT / LINE-END)
469
dd1abb6b
MS
470HEADER = "*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END
471
472VERSION = "4.0" / "4.1" / "4.2" / "4.3"
ef416fc2 473
474COMMENT = "*%" *TCHAR LINE-END
475
476DATA = "*" 1*KCHAR [ WSP 1*KCHAR [ "/" 1*TCHAR ] ] ":"
477 1*(*WSP VALUE) LINE-END
478
479VALUE = 1*TCHAR / DQUOTE 1*SCHAR DQUOTE
480
481KCHAR = ALPHA / DIGIT / "_" / "." / "-"
482
b19ccc9e 483SCHAR = LINE-END / WSP / %x21.23-7E.A0-FF
ef416fc2 484
b19ccc9e 485TCHAR = %x20-7E.A0-FF
ef416fc2 486
487LINE-END = CR / LF / CR LF
488</pre>
489
490
db1f069b 491<h2 class='title'><a name='AUTOCONFIG'>Auto-Configuration</a></h2>
ef416fc2 492
10d09e33 493<p>CUPS supports several methods of auto-configuration via PPD keywords.</p>
4744bd90 494
4f63d6cd 495
8072030b 496<h3><span class='info'>macOS 10.5</span><a name='APAutoSetupTool'>APAutoSetupTool</a></h3>
4744bd90 497
db1f069b 498<p class='summary'>*APAutoSetupTool: "/LibraryPrinters/vendor/filename"</p>
4744bd90 499
8072030b 500<p>This macOS 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>
db1f069b 501
10d09e33
MS
502<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>
503
db1f069b 504<p>Examples:</p>
4744bd90 505
506<pre class='command'>
db1f069b
MS
507*% Use our setup tool when adding a printer
508*APAutoSetupTool: "/Library/Printers/vendor/Tools/autosetuptool"
4744bd90 509</pre>
510
4f63d6cd 511
8072030b 512<h3><span class='info'>macOS 10.2/CUPS 1.4</span><a name='QUERYKEYWORD'>?MainKeyword</a></h3>
a4d04587 513
db1f069b
MS
514<p class='summary'>*?<i>MainKeyword</i>: "<br>
515 PostScript query code that writes a message using the = operator...<br>
516"<br>
517*End</p>
a4d04587 518
10d09e33 519<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>
db1f069b 520
10d09e33 521<p>The PostScript code typically sends its response back using the <tt>=</tt> operator.</p>
ef416fc2 522
a4d04587 523<p>Example:</p>
ef416fc2 524
525<pre class='command'>
db1f069b
MS
526*OpenUI OptionDuplex/Duplexer Installed: Boolean
527*DuplexOptionDuplex: False
528*OptionDuplex False/Not Installed: ""
529*OptionDuplex True/Installed: ""
530
531<em>*% Query the printer for the presence of the duplexer option...</em>
532*?OptionDuplex: "
533 currentpagedevice /Duplex known
534 {(True)} {(False)} ifelse
535 = flush
536"
537*End
538*CloseUI: OptionDuplex
ef416fc2 539</pre>
540
4f63d6cd 541
8072030b 542<h3><span class='info'>macOS 10.4/CUPS 1.5</span><a name='OID'>OIDMainKeyword</a></h3>
a4d04587 543
db1f069b
MS
544<p class='summary'>*?OID<i>MainKeyword</i>: ".n.n.n..."<br>
545*OID<i>MainKeyword</i> <i>OptionKeyword1</i>: "value"<br>
546...<br>
547*OID<i>MainKeyword</i> <i>OptionKeywordN</i>: "value"</p>
09a101d6 548
10d09e33 549<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>
09a101d6 550
551<p>Examples:</p>
552
553<pre class='command'>
db1f069b
MS
554*% Get the installed memory on the printer...
555*?OIDInstalledMemory: ".1.3.6.1.2.1.25.2.2.0"
556*OIDInstalledMemory 16MB: "16384 KBytes"
557*OIDInstalledMemory 32MB: "32768 KBytes"
558*OIDInstalledMemory 48MB: "49152 KBytes"
559*OIDInstalledMemory 72MB: "73728 KBytes"
09a101d6 560</pre>
561
3d8365b8 562
db1f069b 563<h2 class='title'><a name='PROFILES'>Color Profiles</a></h2>
3d8365b8 564
d4874933 565<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. The final type is based on well-known colorspaces such as sRGB and Adobe RGB.</p>
3d8365b8 566
db1f069b 567<blockquote><b>Note:</b>
3d8365b8 568
10d09e33 569<p>At this time, none of the CUPS raster filters support ICC profiles. This will be addressed as time and resources permit.</p>
bc44d920 570
db1f069b 571</blockquote>
bc44d920 572
4f63d6cd 573
01ce6322 574<h3><span class='info'>Deprecated</span><a name='cupsColorProfile'>cupsColorProfile</a></h3>
bc44d920 575
10d09e33 576<p class='summary'>*cupsColorProfile Resolution/MediaType: "density gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"</p>
bc44d920 577
8072030b 578<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 macOS.</em></p>
bc44d920 579
10d09e33 580<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>
bc44d920 581
db1f069b
MS
582<p>The <i>density</i> and <i>gamma</i> values define gamma and
583density adjustment function such that:</p>
bc44d920 584
585<pre class='command'>
db1f069b 586f(x) = density * x <sup style='font-size: 100%'>gamma</sup>
bc44d920 587</pre>
588
10d09e33 589<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>
bc44d920 590
db1f069b
MS
591<pre class='command'>
592| m00 m01 m02 |
593| m10 m11 m12 |
594| m20 m21 m22 |
595</pre>
2abf387c 596
db1f069b 597<p>Examples:</p>
2abf387c 598
db1f069b 599<pre class='command'>
c8fef167 600<em>*% Specify a profile for printing at 360dpi on all media types</em>
db1f069b 601*cupsColorProfile 360dpi/-: "1.0 1.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
2abf387c 602
c8fef167 603<em>*% Specify a profile for printing at 720dpi on Glossy media</em>
db1f069b 604*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"
2abf387c 605
c8fef167 606<em>*% Specify a default profile for printing at all other resolutions and media types</em>
db1f069b 607*cupsColorProfile -/-: "0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
2abf387c 608</pre>
609
01ce6322 610
8072030b 611<h3><span class='info'>macOS 10.3/CUPS 1.2</span><a name='cupsICCProfile'>cupsICCProfile</a></h3>
3d8365b8 612
10d09e33 613<p class='summary'>*cupsICCProfile ColorModel.MediaType.Resolution/Description: "filename"</p>
3d8365b8 614
10d09e33 615<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>
db1f069b 616
10d09e33 617<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>
3d8365b8 618
619<p>Examples:</p>
620
621<pre class='command'>
c8fef167 622<em>*% Specify a profile for CMYK printing at 360dpi on all media types</em>
db1f069b 623*cupsICCProfile CMYK..360dpi/360dpi CMYK: "/Library/Printers/vendor/Profiles/foo-360-cmyk.icc"
3d8365b8 624
c8fef167 625<em>*% Specify a profile for RGB printing at 720dpi on Glossy media</em>
db1f069b 626*cupsColorProfile RGB.Glossy.720dpi/720dpi Glossy: "/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc"
a4d04587 627
c8fef167 628<em>*% Specify a default profile for printing at all other resolutions and media types</em>
db1f069b
MS
629*cupsICCProfile ../Default: "/Library/Printers/vendor/Profiles/foo-default.icc"
630</pre>
a4d04587 631
db1f069b 632<h4>Customizing the Profile Selection Keywords</h4>
ef416fc2 633
d4d03398 634<p>The <tt>ColorModel</tt>, <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>cupsICCQualifier1</tt>, <tt>cupsICCQualifier2</tt>, and <tt>cupsICCQualifier3</tt> keywords define the mapping from selector to main keyword:</p>
ef416fc2 635
636<pre class='command'>
d4d03398 637*cupsICCQualifier1: MainKeyword1
db1f069b
MS
638*cupsICCQualifier2: MainKeyword2
639*cupsICCQualifier3: MainKeyword3
640</pre>
ef416fc2 641
db1f069b 642<p>The default mapping is as follows:</p>
ef416fc2 643
db1f069b 644<pre class='command'>
d4d03398 645*cupsICCQualifier1: ColorModel
db1f069b
MS
646*cupsICCQualifier2: MediaType
647*cupsICCQualifier3: Resolution
ef416fc2 648</pre>
649
4f63d6cd 650
8072030b 651<h3><span class='info'>macOS 10.4</span><a name='APCustom'>Custom Color Matching Support</a></h3>
ef416fc2 652
db1f069b
MS
653<p class='summary'>*<a href='#APSupportsCustomColorMatching'>APSupportsCustomColorMatching</a>: true<br>
654*<a href='#APCustomColorMatchingName'>APCustomColorMatchingName</a> name/text: ""<br>
655*<a href='#APCustomColorMatchingProfile'>APCustomColorMatchingProfile</a>: profile<br>
656*<a href='#APDefaultCustomColorMatchingProfile'>APDefaultCustomColorMatchingProfile</a>: profile</p>
a4d04587 657
8072030b 658<p>These keywords tell the macOS 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>
09a101d6 659
5a662dc0
MS
660<blockquote><b>Note:</b>
661
8072030b 662<p>Prior to macOS 10.6, the default RGB color space was Apple's "GenericRGB". The new default in macOS 10.6 and later is "sRGB". For more information, see <a href="http://support.apple.com/kb/HT3712">"macOS v10.6: About gamma 2.2"</a> on Apple's support site.</p>
5a662dc0
MS
663
664</blockquote>
665
8072030b 666<h4><span class='info'>macOS 10.5</span><a name='APCustomColorMatchingName'>APCustomColorMatchingName</a></h4>
09a101d6 667
db1f069b 668<p class='summary'>*APCustomColorMatchingName name/text: ""</p>
ef416fc2 669
10d09e33 670<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>
db1f069b
MS
671
672<p>Examples:</p>
ef416fc2 673
674<pre class='command'>
db1f069b
MS
675*% Define the names for our color matching...
676*APCustomColorMatchingName name/AcmeColor(tm): ""
677*fr.APCustomColorMatchingName name/La AcmeColor(tm): ""
ef416fc2 678</pre>
679
8072030b 680<h4><span class='info'>macOS 10.5</span><a name='APCustomColorMatchingProfile'>APCustomColorMatchingProfile</a></h4>
bc44d920 681
db1f069b 682<p class='summary'>*APCustomColorMatchingProfile: name</p>
a4d04587 683
10d09e33 684<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>
09a101d6 685
db1f069b 686<blockquote><b>Note:</b>
09a101d6 687
10d09e33 688<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>
db1f069b
MS
689
690</blockquote>
09a101d6 691
692<p>Examples:</p>
693
694<pre class='command'>
db1f069b
MS
695*% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB
696*APSupportsCustomColorMatching: true
697*APDefaultCustomColorMatchingProfile: sRGB
698*APCustomColorMatchingProfile: sRGB
699*APCustomColorMatchingProfile: AdobeRGB
09a101d6 700</pre>
701
8072030b 702<h4><span class='info'>macOS 10.5</span><a name='APDefaultCustomColorMatchingProfile'>APDefaultCustomColorMatchingProfile</a></h4>
4744bd90 703
db1f069b 704<p class='summary'>*APDefaultCustomColorMatchingProfile: name</p>
4744bd90 705
10d09e33 706<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>
bc44d920 707
4744bd90 708<p>Examples:</p>
709
710<pre class='command'>
db1f069b
MS
711*% Use sRGB for RGB color by default
712*APSupportsCustomColorMatching: true
713*APDefaultCustomColorMatchingProfile: sRGB
4744bd90 714</pre>
715
8072030b 716<h4><span class='info'>macOS 10.4</span><a name='APSupportsCustomColorMatching'>APSupportsCustomColorMatching</a></h4>
a4d04587 717
db1f069b 718<p class='summary'>*APSupportsCustomColorMatching: boolean</p>
a4d04587 719
10d09e33 720<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>
a4d04587 721
db1f069b
MS
722<p>The default for <tt>APSupportsCustomColorMatching</tt> is <tt>false</tt>.</p>
723
724<p>Examples:</p>
a4d04587 725
726<pre class='command'>
db1f069b
MS
727*APSupportsCustomColorMatching: true
728*APDefaultCustomColorMatchingProfile: sRGB
a4d04587 729</pre>
730
ef416fc2 731
66ab9486
MS
732<h2 class='title'><a name='CONSTRAINTS'>Constraints</a></h2>
733
10d09e33 734<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>
66ab9486
MS
735
736<pre class='command'>
737*% Do not allow 2-sided printing on transparency media
738*UIConstraints: "*Duplex *MediaType Transparency"
739*UIConstraints: "*MediaType Transparency *Duplex"
740</pre>
741
10d09e33 742<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>
66ab9486 743
10d09e33 744<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>
1340db2d
MS
745
746<blockquote><b>Note:</b>
747
10d09e33 748<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>
1340db2d
MS
749
750</blockquote>
66ab9486 751
4f63d6cd 752
8072030b 753<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsUIConstraints'>cupsUIConstraints</a></h3>
66ab9486
MS
754
755<p class='summary'>*cupsUIConstraints resolver: "*Keyword1 *Keyword2 ..."<br>
756*cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 ..."<br>
757*cupsUIConstraints resolver: "*Keyword1 *Keyword2 OptionKeyword2 ..."<br>
758*cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."<br>
759*cupsUIConstraints: "*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
760
10d09e33 761<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>
66ab9486
MS
762
763<p>Examples:</p>
764
765<pre class='command'>
c8fef167 766<em>*% Specify that 2-sided printing cannot happen on transparencies</em>
66ab9486
MS
767*cupsUIConstraints transparency: "*Duplex *MediaType Transparency"
768
c8fef167 769<em>*% Specify that envelope printing cannot happen from the paper trays</em>
1340db2d
MS
770*cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
771*cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
772*cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
773*cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
774
775<em>*% Specify an installable option constraint for the envelope feeder</em>
776*cupsUIConstraints: "*InputSlot EnvFeeder *InstalledEnvFeeder"
777
c8fef167 778<em>*% Specify that photo printing cannot happen on plain paper or transparencies at 1200dpi</em>
66ab9486
MS
779*cupsUIConstraints photo: "*OutputMode Photo *MediaType Plain *Resolution 1200dpi"
780*cupsUIConstraints photo: "*OutputMode Photo *MediaType Transparency *Resolution 1200dpi"
781</pre>
782
4f63d6cd 783
8072030b 784<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsUIResolver'>cupsUIResolver</a></h3>
66ab9486 785
c779abb0 786<p class='summary'>*cupsUIResolver resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p>
66ab9486 787
10d09e33 788<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>
66ab9486
MS
789
790<p>Examples:</p>
791
792<pre class='command'>
c8fef167 793<em>*% Specify the options to change for the 2-sided transparency constraint</em>
1340db2d
MS
794*cupsUIResolver transparency: "*Duplex None *MediaType Plain"
795
796<em>*% Specify the options to change for the envelope printing constraints. Notice
797*% that we try to change the InputSlot to either the envelope feeder or the
798*% manual feed first, then we change the page size...</em>
799*cupsUIResolver envelope: "*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter"
66ab9486 800
c8fef167 801<em>*% Specify the options to change for the photo printing constraints</em>
66ab9486
MS
802*cupsUIResolver photo: "*OutputMode Best *Resolution 600dpi"
803</pre>
804
805
db1f069b 806<h2 class='title'><a name='I18N'>Globalized PPD Support</a></h2>
a4d04587 807
10d09e33 808<p>CUPS 1.2 and higher adds support for PPD files containing multiple languages by following the following additional rules:</p>
ef416fc2 809
db1f069b 810<ol>
ef416fc2 811
db1f069b 812 <li>The <tt>LanguageVersion</tt> MUST be <tt>English</tt></li>
a4d04587 813
db1f069b 814 <li>The <tt>LanguageEncoding</tt> MUST be <tt>ISOLatin1</tt></li>
ef416fc2 815
10d09e33 816 <li>The <tt>cupsLanguages</tt> keyword MUST be provided and list each of the supported locales in the PPD file</li>
ef416fc2 817
10d09e33 818 <li>Main and option keywords MUST NOT exceed 34 (instead of 40) characters to allow room for the locale prefixes in translation keywords</li>
ef416fc2 819
db1f069b 820 <li>The main keyword "Translation" MUST NOT be used</li>
f7deaa1a 821
10d09e33 822 <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>
f7deaa1a 823
10d09e33 824 <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>
db1f069b
MS
825 <li>A generic language translation ("ll") SHOULD be provided with country-specific differences ("ll_CC") provided only as needed</li>
826 <li>For historical reasons, the "zh" and "zh_CN" locales map to Simplified Chinese while the "zh_TW" locale maps to Traditional Chinese</li>
827 </ul></li>
f7deaa1a 828
10d09e33 829 <li>Locale-specific translation strings MUST be encoded using UTF-8.</li>
f7deaa1a 830
10d09e33
MS
831 <li>Main keywords MUST be localized using one of the following forms:
832 <p><tt>*ll.Translation MainKeyword/translation text: ""</tt><br />
833 <tt>*ll_CC.Translation MainKeyword/translation text: ""</tt></p></li>
f7deaa1a 834
10d09e33
MS
835 <li>Option keywords MUST be localized using one of the following forms:
836 <p><tt>*ll.MainKeyword OptionKeyword/translation text: ""</tt><br>
837 <tt>*ll_CC.MainKeyword OptionKeyword/translation text: ""</tt></p></li>
f7deaa1a 838
10d09e33 839 <li>Localization keywords MAY appear anywhere after the first line of the PPD file</li>
f7deaa1a 840
db1f069b 841</ol>
ef416fc2 842
db1f069b 843<blockquote><b>Note:</b>
a4d04587 844
10d09e33 845<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>
ef416fc2 846
db1f069b 847</blockquote>
a4d04587 848
ef416fc2 849<p>Examples:</p>
850
851<pre class='command'>
db1f069b
MS
852*LanguageVersion: English
853*LanguageEncoding: ISOLatin1
854*cupsLanguages: "de fr_CA"
855*ModelName: "Foobar Laser 9999"
f7deaa1a 856
db1f069b
MS
857<em>*% Localize ModelName for French and German</em>
858*fr_CA.Translation ModelName/La Foobar Laser 9999: ""
859*de.Translation ModelName/Foobar LaserDrucken 9999: ""
f7deaa1a 860
db1f069b
MS
861*cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
862<em>*% Localize printer-state-reason for French and German</em>
863*fr_CA.cupsIPPReason com.vendor-error/Une erreur s&egrave;rieuse s'est produite: "/help/com.vendor/error.html"
864*de.cupsIPPReason com.vendor-error/Eine ernste St&ouml;rung trat: "/help/com.vendor/error.html"
f7deaa1a 865
db1f069b 866...
f7deaa1a 867
db1f069b
MS
868*OpenUI *InputSlot/Paper Source: PickOne
869*OrderDependency: 10 AnySetup *InputSlot
870*DefaultInputSlot: Auto
871<em>*% Localize InputSlot for French and German</em>
872*fr_CA.Translation InputSlot/Papier source: ""
873*de.Translation InputSlot/Papiereinzug: ""
874*InputSlot Auto/Default: "&lt;&lt;/ManualFeed false&gt;&gt;setpagedevice"
875<em>*% Localize InputSlot=Auto for French and German</em>
876*fr_CA.InputSlot Auto/Par Defaut: ""
877*de.InputSlot Auto/Standard: ""
878*InputSlot Manual/Manual Feed: "&lt;&lt;/ManualFeed true&gt;&gt;setpagedevice"
879<em>*% Localize InputSlot=Manual for French and German</em>
880*fr_CA.InputSlot Manual/Manuel mecanisme de alimentation: ""
881*de.InputSlot Manual/Manueller Einzug: ""
882*CloseUI: *InputSlot
f7deaa1a 883</pre>
884
ef416fc2 885
8072030b 886<h2 class='title'><a name='OPTIONS'><span class="info">CUPS 1.3/macOS 10.6</span>Custom Options</a></h2>
ef416fc2 887
10d09e33 888<p>CUPS supports custom options using an extension of the <tt>CustomPageSize</tt> and <tt>ParamCustomPageSize</tt> syntax:</p>
ef416fc2 889
890<pre class='command'>
891*CustomFoo True: "command"
892*ParamCustomFoo Name1/Text 1: order type minimum maximum
893*ParamCustomFoo Name2/Text 2: order type minimum maximum
894...
895*ParamCustomFoo NameN/Text N: order type minimum maximum
896</pre>
897
10d09e33
MS
898<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
899option value is "1234" then CUPS will output the string "@PJL SET PASSCODE=1234".</p>
900
901<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 "&lt;&lt;/cupsReal1 2 1 roll&gt;&gt;setpagedevice" and the option value is "2.0" then CUPS will output the string "2.0 &lt;&lt;/cupsReal1 2 1 roll&gt;&gt;setpagedevice".</p>
ef416fc2 902
903<p>The "type" is one of the following keywords:</p>
904
905<ul>
906
10d09e33 907 <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>
ef416fc2 908
10d09e33 909 <li><tt>int</tt> - an integer value from "minimum" to "maximum"</li>
ef416fc2 910
10d09e33 911 <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>
ef416fc2 912
10d09e33 913 <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>
ef416fc2 914
10d09e33 915 <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>
ef416fc2 916
10d09e33 917 <li><tt>points</tt> - a measurement value in points from "minimum" to "maximum"</li>
ef416fc2 918
10d09e33 919 <li><tt>real</tt> - a real value from "minimum" to "maximum"</li>
ef416fc2 920
10d09e33 921 <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>
ef416fc2 922
923</ul>
924
925<p>Examples:</p>
926
927<pre class='command'>
c8fef167 928<em>*% Base JCL key code option</em>
a41f09e2 929*JCLOpenUI JCLPasscode/Key Code: PickOne
ef416fc2 930*OrderDependency: 10 JCLSetup *JCLPasscode
931*DefaultJCLPasscode: None
932*JCLPasscode None/No Code: ""
933*JCLPasscode 1111: "@PJL SET PASSCODE = 1111&lt;0A&gt;"
934*JCLPasscode 2222: "@PJL SET PASSCODE = 2222&lt;0A&gt;"
935*JCLPasscode 3333: "@PJL SET PASSCODE = 3333&lt;0A&gt;"
936*JCLCloseUI: *JCLPasscode
937
c8fef167 938<em>*% Custom JCL key code option</em>
ef416fc2 939*CustomJCLPasscode True: "@PJL SET PASSCODE = \1&lt;0A&gt;"
940*ParamCustomJCLPasscode Code/Key Code: 1 passcode 4 4
941
942
a4d04587 943<em>*% Base PostScript watermark option</em>
944*OpenUI WatermarkText/Watermark Text: PickOne
945*OrderDependency: 10 AnySetup *WatermarkText
946*DefaultWatermarkText: None
947*WatermarkText None: ""
948*WatermarkText Draft: "&lt;&lt;/cupsString1(Draft)&gt;&gt;setpagedevice"
949*CloseUI: *WatermarkText
950
951<em>*% Custom PostScript watermark option</em>
b86bc4cf 952*CustomWatermarkText True: "&lt;&lt;/cupsString1 3 -1 roll&gt;&gt;setpagedevice"
a4d04587 953*ParamCustomWatermarkText Text: 1 string 0 32
954
955
c8fef167 956<em>*% Base PostScript gamma/density option</em>
ef416fc2 957*OpenUI GammaDensity/Gamma and Density: PickOne
958*OrderDependency: 10 AnySetup *GammaDensity
959*DefaultGammaDensity: Normal
960*GammaDensity Normal/Normal: "&lt;&lt;/cupsReal1 1.0/cupsReal2 1.0&gt;&gt;setpagedevice"
961*GammaDensity Light/Lighter: "&lt;&lt;/cupsReal1 0.9/cupsReal2 0.67&gt;&gt;setpagedevice"
962*GammaDensity Dark/Darker: "&lt;&lt;/cupsReal1 1.1/cupsReal2 1.5&gt;&gt;setpagedevice"
a4d04587 963*CloseUI: *GammaDensity
ef416fc2 964
c8fef167 965<em>*% Custom PostScript gamma/density option</em>
b86bc4cf 966*CustomGammaDensity True: "&lt;&lt;/cupsReal1 3 -1 roll/cupsReal2 5 -1&gt;&gt;setpagedevice"
ef416fc2 967*ParamCustomGammaDensity Gamma: 1 curve 0.1 10
968*ParamCustomGammaDensity Density: 2 real 0 2
969</pre>
970
971
db1f069b 972<h2 class='title'><a name='RASTERPS'>Writing PostScript Option Commands for Raster Drivers</a></h2>
a4d04587 973
10d09e33 974<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>
ef416fc2 975
db1f069b
MS
976<pre class='command'>
977*PageSize A4: "&lt;&lt;/PageSize[595 842]&gt;&gt;setpagedevice"
978</pre>
ef416fc2 979
db1f069b 980<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>
ef416fc2 981
db1f069b
MS
982<pre class='command'>
983*CustomWatermarkText True: "&lt;&lt;/cupsString1 3 -1 roll&gt;&gt;setpagedevice"
984</pre>
ef416fc2 985
db1f069b 986<p>For a custom string value of "My Watermark", CUPS will produce the following PostScript code for the option:</p>
ef416fc2 987
988<pre class='command'>
db1f069b
MS
989(My Watermark)
990&lt;&lt;/cupsString1 3 -1 roll&gt;&gt;setpagedevice
ef416fc2 991</pre>
992
db1f069b 993<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>
ef416fc2 994
995<pre class='command'>
db1f069b 996&lt;&lt;/cupsString1(My Watermark)&gt;&gt;setpagedevice
ef416fc2 997</pre>
998
db1f069b 999<p>The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.</p>
ef416fc2 1000
4f63d6cd 1001
7374e9e5 1002<h3>Custom Page Size Code</h3>
ef416fc2 1003
db1f069b 1004<p>There are many possible implementations of the <tt>CustomPageSize</tt> code. For CUPS raster drivers, the following code is recommended:</p>
ef416fc2 1005
db1f069b
MS
1006<pre class='command'>
1007*ParamCustomPageSize Width: 1 points <i>min-width max-width</i>
1008*ParamCustomPageSize Height: 2 points <i>min-height max-height</i>
1009*ParamCustomPageSize WidthOffset: 3 points 0 0
1010*ParamCustomPageSize HeightOffset: 4 points 0 0
1011*ParamCustomPageSize Orientation: 5 int 0 0
1012*CustomPageSize True: "pop pop pop &lt;&lt;/PageSize[5 -2 roll]/ImagingBBox null&gt;&gt;setpagedevice"
ef416fc2 1013</pre>
1014
4f63d6cd 1015
7374e9e5 1016<h3>Supported PostScript Operators</h3>
ef416fc2 1017
db1f069b 1018<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>
ef416fc2 1019
db1f069b 1020<ul>
ef416fc2 1021
db1f069b 1022 <li><tt>&lt;&lt;</tt> - Start a dictionary.</li>
ef416fc2 1023
db1f069b 1024 <li><tt>&gt;&gt;</tt> - End a dictionary.</li>
ef416fc2 1025
db1f069b 1026 <li><tt>[</tt> - Start an array.</li>
ef416fc2 1027
db1f069b 1028 <li><tt>]</tt> - End an array.</li>
ef416fc2 1029
db1f069b 1030 <li><tt>copy</tt> - Copy the top N objects on the stack.</li>
ef416fc2 1031
db1f069b 1032 <li><tt>dup</tt> - Copy the top object on the stack.</li>
ef416fc2 1033
db1f069b 1034 <li><tt>index</tt> - Copy the Nth from the top object on the stack.</li>
ef416fc2 1035
db1f069b 1036 <li><tt>pop</tt> - Pop the top object on the stack.</li>
ef416fc2 1037
db1f069b 1038 <li><tt>roll</tt> - Shift the top N objects on the stack.</li>
ef416fc2 1039
db1f069b 1040 <li><tt>setpagedevice</tt> - Set the page header values according to the key/value dictionary on the stack.</li>
ef416fc2 1041
db1f069b 1042</ul>
ef416fc2 1043
db1f069b 1044<blockquote><b>Note:</b>
ef416fc2 1045
db1f069b
MS
1046<p><em>Never</em> use the unsupported <tt>dict</tt> or <tt>put</tt>
1047operators in your option code. These operators are typically used in
1048option code dating back to Level 1 PostScript printers, which did not
1049support the simpler <tt>&lt;&lt;</tt> or <tt>&gt;&gt;</tt> operators.
1050If you have old option code using <tt>dict</tt> or <tt>put</tt>, you can
1051rewrite it very easily to use the newer <tt>&lt;&lt;</tt> and
1052<tt>&gt;&gt;</tt> operators instead. For example, the following code
1053to set the page size:</p>
09a101d6 1054
1055<style type='text/css'><!--
1056PRE B {
1057 background: #000000;
1058 color: #ffffff;
1059 padding: 2px 5px;
1060}
1061--></style>
1062
1063<pre class='command'>
1064<b>1 dict dup</b> /PageSize [612 792] <b>put</b> setpagedevice
1065</pre>
1066
1067<p>can be rewritten as:</p>
1068
1069<pre class='command'>
1070<b>&lt;&lt;</b> /PageSize [612 792] <b>&gt;&gt;</b> setpagedevice
1071</pre>
1072
1073</blockquote>
1074
4f63d6cd 1075
7374e9e5 1076<h3>Supported Page Device Attributes</h3>
b86bc4cf 1077
09a101d6 1078<p>Table 2 shows the supported page device attributes along with PostScript code examples.</p>
b86bc4cf 1079
1080<div class='table'>
1081<table summary='Supported Page Device Attributes'>
09a101d6 1082<caption>Table 2: <a name='TABLE_2'>Supported Page Device Attributes</a></caption>
b86bc4cf 1083<thead>
1084<tr>
1085 <th>Name(s)</th>
1086 <th>Type</th>
1087 <th>Description</th>
1088 <th>Example(s)</th>
1089</tr>
1090</thead>
1091<tbody>
1092<tr valign='top'>
1093 <td><tt>AdvanceDistance</tt></td>
1094 <td>Integer</td>
1095 <td>Specifies the number of points to advance roll media after printing.</td>
1096 <td><tt>&lt;&lt;/AdvanceDistance 18&gt;&gt;setpagedevice</tt></td>
1097</tr>
1098<tr valign='top'>
1099 <td><tt>AdvanceMedia</tt></td>
1100 <td>Integer</td>
1101 <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>
1102 <td><tt>&lt;&lt;/AdvanceMedia 4&gt;&gt;setpagedevice</tt></td>
1103</tr>
1104<tr valign='top'>
1105 <td><tt>Collate</tt></td>
1106 <td>Boolean</td>
1107 <td>Specifies whether collated copies are required.</td>
1108 <td><tt>&lt;&lt;/Collate true&gt;&gt;setpagedevice</tt></td>
1109</tr>
1110<tr valign='top'>
1111 <td><tt>CutMedia</tt></td>
1112 <td>Integer</td>
1113 <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>
1114 <td><tt>&lt;&lt;/CutMedia 1&gt;&gt;setpagedevice</tt></td>
1115</tr>
1116<tr valign='top'>
1117 <td><tt>Duplex</tt></td>
1118 <td>Boolean</td>
1119 <td>Specifies whether 2-sided printing is required.</td>
1120 <td><tt>&lt;&lt;/Duplex true&gt;&gt;setpagedevice</tt></td>
1121</tr>
1122<tr valign='top'>
1123 <td><tt>HWResolution</tt></td>
1124 <td>Integer Array</td>
1125 <td>Specifies the resolution of the page image in pixels per inch.</td>
1126 <td><tt>&lt;&lt;/HWResolution[1200 1200]&gt;&gt;setpagedevice</tt></td>
1127</tr>
1128<tr valign='top'>
1129 <td><tt>InsertSheet</tt></td>
1130 <td>Boolean</td>
1131 <td>Specifies whether to insert a blank sheet before the job.</td>
1132 <td><tt>&lt;&lt;/InsertSheet true&gt;&gt;setpagedevice</tt></td>
1133</tr>
1134<tr valign='top'>
1135 <td><tt>Jog</tt></td>
1136 <td>Integer</td>
1137 <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>
1138 <td><tt>&lt;&lt;/Jog 2&gt;&gt;setpagedevice</tt></td>
1139</tr>
1140<tr valign='top'>
1141 <td><tt>LeadingEdge</tt></td>
1142 <td>Integer</td>
1143 <td>Specifies the leading edge of the media: 0 = top, 1 = right, 2 = bottom, 3 = left.</td>
1144 <td><tt>&lt;&lt;/LeadingEdge 0&gt;&gt;setpagedevice</tt></td>
1145</tr>
1146<tr valign='top'>
1147 <td><tt>ManualFeed</tt></td>
1148 <td>Boolean</td>
1149 <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>
1150 <td><tt>&lt;&lt;/ManualFeed true&gt;&gt;setpagedevice</tt></td>
1151</tr>
1152<tr valign='top'>
1153 <td><tt>MediaClass</tt></td>
1154 <td>String</td>
1155 <td>Specifies a named media.</td>
1156 <td><tt>&lt;&lt;/MediaClass (Invoices)&gt;&gt;setpagedevice</tt></td>
1157</tr>
1158<tr valign='top'>
1159 <td><tt>MediaColor</tt></td>
1160 <td>String</td>
1161 <td>Specifies the color of the media.</td>
1162 <td><tt>&lt;&lt;/MediaColor &gt;&gt;setpagedevice</tt></td>
1163</tr>
1164<tr valign='top'>
1165 <td><tt>MediaPosition</tt></td>
1166 <td>Integer</td>
1167 <td>Specifies the tray or source of the media.</td>
1168 <td><tt>&lt;&lt;/MediaPosition 12&gt;&gt;setpagedevice</tt></td>
1169</tr>
1170<tr valign='top'>
1171 <td><tt>MediaType</tt></td>
1172 <td>String</td>
1173 <td>Specifies the general media type.</td>
1174 <td><tt>&lt;&lt;/MediaType (Glossy)&gt;&gt;setpagedevice</tt></td>
1175</tr>
1176<tr valign='top'>
1177 <td><tt>MediaWeight</tt></td>
1178 <td>Integer</td>
1179 <td>Specifies the media weight in grams per meter<sup>2</sup>.</td>
1180 <td><tt>&lt;&lt;/MediaWeight 100&gt;&gt;setpagedevice</tt></td>
1181</tr>
1182<tr valign='top'>
1183 <td><tt>MirrorPrint</tt></td>
1184 <td>Boolean</td>
1185 <td>Specifies whether to flip the output image horizontally.</td>
1186 <td><tt>&lt;&lt;/MirrorPrint true&gt;&gt;setpagedevice</tt></td>
1187</tr>
1188<tr valign='top'>
1189 <td><tt>NegativePrint</tt></td>
1190 <td>Boolean</td>
1191 <td>Specifies whether to invert the output image.</td>
1192 <td><tt>&lt;&lt;/NegativePrint true&gt;&gt;setpagedevice</tt></td>
1193</tr>
1194<tr valign='top'>
1195 <td><tt>NumCopies</tt></td>
1196 <td>Integer</td>
1197 <td>Specifies the number of copies to produce of each page.</td>
1198 <td><tt>&lt;&lt;/NumCopies 100&gt;&gt;setpagedevice</tt></td>
1199</tr>
1200<tr valign='top'>
1201 <td><tt>Orientation</tt></td>
1202 <td>Integer</td>
1203 <td>Specifies the orientation of the output: 0 = portrait, 1 = landscape rotated counter-clockwise, 2 = upside-down, 3 = landscape rotated clockwise.</td>
1204 <td><tt>&lt;&lt;/Orientation 3&gt;&gt;setpagedevice</tt></td>
1205</tr>
1206<tr valign='top'>
1207 <td><tt>OutputFaceUp</tt></td>
1208 <td>Boolean</td>
1209 <td>Specifies whether to place the media face-up in the output bin/tray.</td>
1210 <td><tt>&lt;&lt;/OutputFaceUp true&gt;&gt;setpagedevice</tt></td>
1211</tr>
1212<tr valign='top'>
1213 <td><tt>OutputType</tt></td>
1214 <td>String</td>
1215 <td>Specifies the output type name.</td>
1216 <td><tt>&lt;&lt;/OutputType (Photo)&gt;&gt;setpagedevice</tt></td>
1217</tr>
1218<tr valign='top'>
1219 <td><tt>PageSize</tt></td>
1220 <td>Integer/Real Array</td>
1221 <td>Specifies the width and length/height of the page in points.</td>
1222 <td><tt>&lt;&lt;/PageSize[595 842]&gt;&gt;setpagedevice</tt></td>
1223</tr>
1224<tr valign='top'>
1225 <td><tt>Separations</tt></td>
1226 <td>Boolean</td>
1227 <td>Specifies whether to produce color separations.</td>
1228 <td><tt>&lt;&lt;/Separations true&gt;&gt;setpagedevice</tt></td>
1229</tr>
1230<tr valign='top'>
1231 <td><tt>TraySwitch</tt></td>
1232 <td>Boolean</td>
1233 <td>Specifies whether to switch trays automatically.</td>
1234 <td><tt>&lt;&lt;/TraySwitch true&gt;&gt;setpagedevice</tt></td>
1235</tr>
1236<tr valign='top'>
1237 <td><tt>Tumble</tt></td>
1238 <td>Boolean</td>
1239 <td>Specifies whether the back sides of pages are rotated 180 degrees.</td>
1240 <td><tt>&lt;&lt;/Tumble true&gt;&gt;setpagedevice</tt></td>
1241</tr>
1242<tr valign='top'>
1243 <td><tt>cupsBorderlessScalingFactor</tt></td>
1244 <td>Real</td>
1245 <td>Specifies the amount to scale the page image dimensions.</td>
1246 <td><tt>&lt;&lt;/cupsBorderlessScalingFactor 1.01&gt;&gt;setpagedevice</tt></td>
1247</tr>
1248<tr valign='top'>
1249 <td><tt>cupsColorOrder</tt></td>
1250 <td>Integer</td>
1251 <td>Specifies the order of colors: 0 = chunked, 1 = banded, 2 = planar.</td>
1252 <td><tt>&lt;&lt;/cupsColorOrder 0&gt;&gt;setpagedevice</tt></td>
1253</tr>
1254<tr valign='top'>
1255 <td><tt>cupsColorSpace</tt></td>
1256 <td>Integer</td>
1257 <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>
7dfedb92 1258 <td><tt>&lt;&lt;/cupsColorSpace 1 &gt;&gt;setpagedevice</tt></td>
b86bc4cf 1259</tr>
1260<tr valign='top'>
1261 <td><tt>cupsCompression</tt></td>
1262 <td>Integer</td>
1263 <td>Specifies a driver compression type/mode.</td>
1264 <td><tt>&lt;&lt;/cupsCompression 2&gt;&gt;setpagedevice</tt></td>
1265</tr>
1266<tr valign='top'>
1267 <td><tt>cupsInteger0<br>
1268 ...<br>
1269 cupsInteger15</tt></td>
1270 <td>Integer</td>
1271 <td>Specifies driver integer values.</td>
1272 <td><tt>&lt;&lt;/cupsInteger11 1234&gt;&gt;setpagedevice</tt></td>
1273</tr>
1274<tr valign='top'>
1275 <td><tt>cupsMarkerType</tt></td>
1276 <td>String</td>
1277 <td>Specifies the type of ink/toner to use.</td>
1278 <td><tt>&lt;&lt;/cupsMarkerType (Black+Color)&gt;&gt;setpagedevice</tt></td>
1279</tr>
1280<tr valign='top'>
1281 <td><tt>cupsMediaType</tt></td>
1282 <td>Integer</td>
1283 <td>Specifies a numeric media type.</td>
1284 <td><tt>&lt;&lt;/cupsMediaType 999&gt;&gt;setpagedevice</tt></td>
1285</tr>
1286<tr valign='top'>
1287 <td><tt>cupsPageSizeName</tt></td>
1288 <td>String</td>
1289 <td>Specifies the name of the page size.</td>
1290 <td><tt>&lt;&lt;/cupsPageSizeName (A4.Full)&gt;&gt;setpagedevice</tt></td>
1291</tr>
1292<tr valign='top'>
1293 <td><tt>cupsPreferredBitsPerColor</tt></td>
1294 <td>Integer</td>
1295 <td>Specifies the preferred number of bits per color, typically 8 or 16.</td>
1296 <td><tt>&lt;&lt;/cupsPreferredBitsPerColor 16&gt;&gt;setpagedevice</tt></td>
1297</tr>
1298<tr valign='top'>
1299 <td><tt>cupsReal0<br>
1300 ...<br>
1301 cupsReal15</tt></td>
1302 <td>Real</td>
1303 <td>Specifies driver real number values.</td>
1304 <td><tt>&lt;&lt;/cupsReal15 1.234&gt;&gt;setpagedevice</tt></td>
1305</tr>
1306<tr valign='top'>
1307 <td><tt>cupsRenderingIntent</tt></td>
1308 <td>String</td>
1309 <td>Specifies the color rendering intent.</td>
1310 <td><tt>&lt;&lt;/cupsRenderingIntent (AbsoluteColorimetric)&gt;&gt;setpagedevice</tt></td>
1311</tr>
1312<tr valign='top'>
1313 <td><tt>cupsRowCount</tt></td>
1314 <td>Integer</td>
1315 <td>Specifies the number of rows of raster data to print on each line for some drivers.</td>
1316 <td><tt>&lt;&lt;/cupsRowCount 24&gt;&gt;setpagedevice</tt></td>
1317</tr>
1318<tr valign='top'>
1319 <td><tt>cupsRowFeed</tt></td>
1320 <td>Integer</td>
1321 <td>Specifies the number of rows to feed between passes for some drivers.</td>
1322 <td><tt>&lt;&lt;/cupsRowFeed 17&gt;&gt;setpagedevice</tt></td>
1323</tr>
1324<tr valign='top'>
1325 <td><tt>cupsRowStep</tt></td>
1326 <td>Integer</td>
1327 <td>Specifies the number of lines between columns/rows on the print head for some drivers.</td>
1328 <td><tt>&lt;&lt;/cupsRowStep 2&gt;&gt;setpagedevice</tt></td>
1329</tr>
1330<tr valign='top'>
1331 <td><tt>cupsString0<br>
1332 ...<br>
1333 cupsString15</tt></td>
1334 <td>String</td>
1335 <td>Specifies driver string values.</td>
1336 <td><tt>&lt;&lt;/cupsString0(String Value)&gt;&gt;setpagedevice</tt></td>
1337</tr>
1338</tbody>
1339</table></div>
1340
1341
10d09e33 1342<h2 class='title'><a name='MEDIA'>Media Keywords</a></h2>
749b1e90 1343
10d09e33 1344<p>The CUPS media keywords allow drivers to specify alternate custom page
749b1e90
MS
1345size limits based on up to two options.</p>
1346
4f63d6cd 1347
8072030b 1348<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMediaQualifier2'>cupsMediaQualifier2</a></h3>
749b1e90
MS
1349
1350<p class='summary'>*cupsMediaQualifier2: MainKeyword</p>
1351
10d09e33 1352<p>This keyword specifies the second option to use for overriding the
749b1e90
MS
1353custom page size limits.</p>
1354
1355<p>Example:</p>
1356
1357<pre class='command'>
1358<em>*% Specify alternate custom page size limits based on InputSlot and Quality</em>
1359*cupsMediaQualifier2: InputSlot
1360*cupsMediaQualifier3: Quality
1361*cupsMaxSize .Manual.: "1000 1000"
1362*cupsMinSize .Manual.: "100 100"
1363*cupsMinSize .Manual.Photo: "200 200"
1364*cupsMinSize ..Photo: "300 300"
1365</pre>
1366
4f63d6cd 1367
8072030b 1368<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMediaQualifier3'>cupsMediaQualifier3</a></h3>
749b1e90
MS
1369
1370<p class='summary'>*cupsMediaQualifier3: MainKeyword</p>
1371
10d09e33 1372<p>This keyword specifies the third option to use for overriding the
749b1e90
MS
1373custom page size limits.</p>
1374
1375<p>Example:</p>
1376
1377<pre class='command'>
1378<em>*% Specify alternate custom page size limits based on InputSlot and Quality</em>
1379*cupsMediaQualifier2: InputSlot
1380*cupsMediaQualifier3: Quality
1381*cupsMaxSize .Manual.: "1000 1000"
1382*cupsMinSize .Manual.: "100 100"
1383*cupsMinSize .Manual.Photo: "200 200"
1384*cupsMinSize ..Photo: "300 300"
1385</pre>
1386
4f63d6cd 1387
8072030b 1388<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMinSize'>cupsMinSize</a></h3>
749b1e90
MS
1389
1390<p class='summary'>*cupsMinSize .Qualifier2.Qualifier3: "width length"<br>
1391*cupsMinSize .Qualifier2.: "width length"<br>
1392*cupsMinSize ..Qualifier3: "width length"</p>
1393
10d09e33 1394<p>This keyword specifies alternate minimum custom page sizes in points.
749b1e90 1395The <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a> and
10d09e33 1396<a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a> keywords
749b1e90
MS
1397are used to identify options to use for matching.</p>
1398
1399<p>Example:</p>
1400
1401<pre class='command'>
1402<em>*% Specify alternate custom page size limits based on InputSlot and Quality</em>
1403*cupsMediaQualifier2: InputSlot
1404*cupsMediaQualifier3: Quality
1405*cupsMaxSize .Manual.: "1000 1000"
1406*cupsMinSize .Manual.: "100 100"
1407*cupsMinSize .Manual.Photo: "200 200"
1408*cupsMinSize ..Photo: "300 300"
1409</pre>
1410
4f63d6cd 1411
8072030b 1412<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMaxSize'>cupsMaxSize</a></h3>
749b1e90
MS
1413
1414<p class='summary'>*cupsMaxSize .Qualifier2.Qualifier3: "width length"<br>
1415*cupsMaxSize .Qualifier2.: "width length"<br>
1416*cupsMaxSize ..Qualifier3: "width length"</p>
1417
10d09e33 1418<p>This keyword specifies alternate maximum custom page sizes in points.
749b1e90 1419The <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a> and
10d09e33 1420<a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a> keywords
749b1e90
MS
1421are used to identify options to use for matching.</p>
1422
1423<p>Example:</p>
1424
1425<pre class='command'>
1426<em>*% Specify alternate custom page size limits based on InputSlot and Quality</em>
1427*cupsMediaQualifier2: InputSlot
1428*cupsMediaQualifier3: Quality
1429*cupsMaxSize .Manual.: "1000 1000"
1430*cupsMinSize .Manual.: "100 100"
1431*cupsMinSize .Manual.Photo: "200 200"
1432*cupsMinSize ..Photo: "300 300"
1433</pre>
1434
1435
8072030b 1436<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsPageSizeCategory'>cupsPageSizeCategory</a></h3>
a29fd7dd
MS
1437
1438<p class="summary">*cupsPageSizeCategory name/text: "name name2 ... nameN"</p>
1439
8072030b 1440<p>This keyword lists related paper size names that should be grouped together in the Print or Page Setup dialogs. The "name" portion of the keyword specifies the root/default size for the grouping. On macOS the grouped paper sizes are shown in a submenu of the main paper size. When omitted, sizes with the same dimensions are automatically grouped together, for example "Letter" and "Letter.Borderless".</p>
a29fd7dd
MS
1441
1442<p>Example:</p>
1443
1444<pre class="command">
1445<em>*% Specify grouping of borderless/non-borderless sizes</em>
1446*cupsPageSizeCategory Letter/US Letter: "Letter Letter.Borderless"
1447*cupsPageSizeCategory A4/A4: "A4 A4.Borderless"
1448</pre>
1449
1450
db1f069b
MS
1451<h2 class='title'><a name='ATTRIBUTES'>General Attributes</a></h2>
1452
8072030b 1453<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsBackSide'>cupsBackSide</a></h3>
db1f069b
MS
1454
1455<p class='summary'>*cupsBackSide: keyword</p>
1456
10d09e33 1457<p>This keyword requests special handling of the back side of pages
db1f069b 1458when doing duplexed (2-sided) output. <a href='#TABLE_1'>Table 1</a>
10d09e33 1459shows the supported keyword values for this keyword and their effect
db1f069b
MS
1460on the raster data sent to your driver. For example, when <tt>cupsBackSide</tt>
1461is <code>Rotated</code> and <tt>Tumble</tt> is <tt>false</tt>, your driver
1462will receive print data starting at the bottom right corner of the page, with
1463each line going right-to-left instead of left-to-right. The default value is
1464<code>Normal</code>.</p>
1465
1466<blockquote><b>Note:</b>
1467
1468<p><tt>cupsBackSide</tt> replaces the older <tt>cupsFlipDuplex</tt>
10d09e33 1469keyword - if <tt>cupsBackSide</tt> is specified, <tt>cupsFlipDuplex</tt>
db1f069b
MS
1470will be ignored.</p>
1471
1472</blockquote>
1473
1474<div class='table'>
1475<table width='80%' summary='Back Side Raster Coordinate System'>
1476<caption>Table 1: <a name='TABLE_1'>Back Side Raster Coordinate System</a></caption>
1477<thead>
1478<tr>
1479 <th>cupsBackSide</th>
1480 <th>Tumble Value</th>
1481 <th>Image Presentation</th>
1482</tr>
1483</thead>
1484<tbody>
1485<tr>
1486 <td><code>Normal</code></td>
1487 <td><code>false</code></td>
1488 <td>Left-to-right, top-to-bottom</td>
1489</tr>
1490<tr>
1491 <td><code>Normal</code></td>
1492 <td><code>true</code></td>
1493 <td>Left-to-right, top-to-bottom</td>
1494</tr>
1495<tr>
1496 <td><code>ManualTumble</code></td>
1497 <td><code>false</code></td>
1498 <td>Left-to-right, top-to-bottom</td>
1499</tr>
1500<tr>
1501 <td><code>ManualTumble</code></td>
1502 <td><code>true</code></td>
1503 <td>Right-to-left, bottom-to-top</td>
1504</tr>
1505<tr>
1506 <td><code>Rotated</code></td>
1507 <td><code>false</code></td>
1508 <td>Right-to-left, bottom-to-top</td>
1509</tr>
1510<tr>
1511 <td><code>Rotated</code></td>
1512 <td><code>true</code></td>
1513 <td>Right-to-left, top-to-bottom</td>
1514</tr>
1515<tr>
1516 <td><code>Flipped</code> *</td>
1517 <td><code>false</code></td>
1518 <td>Left-to-right, bottom-to-top</td>
1519</tr>
1520<tr>
1521 <td><code>Flipped</code> *</td>
1522 <td><code>true</code></td>
1523 <td>Right-to-left, top-to-bottom</td>
1524</tr>
1525</tbody>
1526</table>
1527</div>
1528
8072030b 1529<p><em>* - Not supported in macOS 10.5.x and earlier</em></p>
db1f069b
MS
1530
1531<div class='figure'><table summary='Back side images'>
1532<caption>Figure 1: Back side images</caption>
1533<tr><td><img src='../images/raster.png' width='624' height='448' alt='Back side images'></td></tr>
1534</table></div>
1535
1536<p>Examples:</p>
1537
1538<pre class='command'>
c8fef167 1539<em>*% Flip the page image for the back side of duplexed output</em>
db1f069b
MS
1540*cupsBackSide: Flipped
1541
c8fef167 1542<em>*% Rotate the page image for the back side of duplexed output</em>
db1f069b
MS
1543*cupsBackSide: Rotated
1544</pre>
1545
1546<p>Also see the related <a href='#APDuplexRequiresFlippedMargin'><tt>APDuplexRequiresFlippedMargin</tt></a>
10d09e33 1547keyword.</p>
db1f069b 1548
4f63d6cd 1549
8072030b 1550<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsCommands'>cupsCommands</a></h3>
01ce6322
MS
1551
1552<p class='summary'>*cupsCommands: "name name2 ... nameN"</p>
1553
10d09e33 1554<p>This string keyword specifies the commands that are supported by the
01ce6322
MS
1555CUPS command file filter for this device. The command names are separated
1556by whitespace.</p>
1557
1558<p>Example:</p>
1559
1560<pre class='command'>
c8fef167 1561<em>*% Specify the list of commands we support</em>
01ce6322
MS
1562*cupsCommands: "AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo"
1563</pre>
1564
1565
8072030b 1566<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsEvenDuplex'>cupsEvenDuplex</a></h3>
db1f069b
MS
1567
1568<p class='summary'>*cupsEvenDuplex: boolean</p>
1569
10d09e33 1570<p>This boolean keyword notifies the RIP filters that the
db1f069b
MS
1571destination printer requires an even number of pages when 2-sided
1572printing is selected. The default value is <code>false</code>.</p>
1573
1574<p>Example:</p>
1575
1576<pre class='command'>
c8fef167 1577<em>*% Always send an even number of pages when duplexing</em>
db1f069b
MS
1578*cupsEvenDuplex: true
1579</pre>
1580
4f63d6cd 1581
db1f069b
MS
1582<h3><a name='cupsFax'>cupsFax</a></h3>
1583
1584<p class='summary'>*cupsFax: boolean</p>
1585
10d09e33 1586<p>This boolean keyword specifies whether the PPD defines a facsimile device. The default is <tt>false</tt>.</p>
db1f069b
MS
1587
1588<p>Examples:</p>
1589
1590<pre class='command'>
1591*cupsFax: true
1592</pre>
1593
4f63d6cd 1594
db1f069b
MS
1595<h3><a name='cupsFilter'>cupsFilter</a></h3>
1596
1597<p class='summary'>*cupsFilter: "source/type cost program"</p>
1598
10d09e33 1599<p>This string keyword provides a conversion rule from the
db1f069b
MS
1600given source type to the printer's native format using the
1601filter "program". If a printer supports the source type directly,
1602the special filter program "-" may be specified.</p>
1603
1604<p>Examples:</p>
1605
1606<pre class='command'>
c8fef167 1607<em>*% Standard raster printer driver filter</em>
db1f069b
MS
1608*cupsFilter: "application/vnd.cups-raster 100 rastertofoo"
1609
c8fef167 1610<em>*% Plain text filter</em>
db1f069b
MS
1611*cupsFilter: "text/plain 10 texttofoo"
1612
c8fef167 1613<em>*% Pass-through filter for PostScript printers</em>
db1f069b
MS
1614*cupsFilter: "application/vnd.cups-postscript 0 -"
1615</pre>
1616
4f63d6cd 1617
82f97232 1618<h3><span class='info'>CUPS 1.5</span><a name='cupsFilter2'>cupsFilter2</a></h3>
c8fef167
MS
1619
1620<p class='summary'>*cupsFilter2: "source/type destination/type cost program"</p>
1621
1622<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>
1623
22c9029b
MS
1624<blockquote><b>Note:</b>
1625
1626<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>
1627
1628</blockquote>
1629
c8fef167
MS
1630<p>Examples:</p>
1631
1632<pre class='command'>
1633<em>*% Standard raster printer driver filter</em>
1634*cupsFilter2: "application/vnd.cups-raster application/vnd.foo 100 rastertofoo"
1635
1636<em>*% Plain text filter</em>
1637*cupsFilter2: "text/plain application/vnd.foo 10 texttofoo"
1638
1639<em>*% Pass-through filter for PostScript printers</em>
1640*cupsFilter2: "application/vnd.cups-postscript application/postscript 0 -"
1641</pre>
1642
4f63d6cd
MS
1643
1644<h3><span class='info'>CUPS 2.3</span><a name='cupsFinishingTemplate'>cupsFinishingTemplate</a></h3>
1645
1646<p class='summary'>*cupsFinishingTemplate name/text: ""</p>
1647
1648<p>This option keyword specifies a finishing template (preset) that applies zero or more finishing processes to a job. Unlike <a href="#cupsIPPFinishings"><tt>cupsIPPFinishings</tt></a>, only one template can be selected by the user. PPD files also generally apply a constraint between this option and other finishing options like <tt>Booklet</tt>, <tt>FoldType</tt>, <tt>PunchMedia</tt>, and <tt>StapleWhen</tt>.</p>
1649
1650<p>Examples:</p>
1651
1652<pre class='command'>
1653*cupsFinishingTemplate none/None: ""
1654*cupsFinishingTemplate fold/Letter Fold: ""
1655*cupsFinishingTemplate punch/2/3-Hole Punch: ""
1656*cupsFinishingTemplate staple/Corner Staple: ""
1657*cupsFinishingTemplate staple-dual/Double Staple: ""
1658*cupsFinishingTemplate staple-and-fold/Corner Staple and Letter Fold: ""
1659*cupsFinishingTemplate staple-and-punch/Corner Staple and 2/3-Hole Punch: ""
1660</pre>
1661
1662
db1f069b
MS
1663<h3><span class='info'>Deprecated</span><a name='cupsFlipDuplex'>cupsFlipDuplex</a></h3>
1664
1665<p class='summary'>*cupsFlipDuplex: boolean</p>
1666
8072030b 1667<p>Due to implementation differences between macOS and Ghostscript,
10d09e33
MS
1668the <tt>cupsFlipDuplex</tt> keyword is deprecated. Instead, use
1669the <a href='#cupsBackSide'><tt>cupsBackSide</tt></a> keyword to specify
db1f069b
MS
1670the coordinate system (pixel layout) of the page data on the back side of
1671duplex pages.</p>
1672
1673<p>The value <code>true</code> maps to a <tt>cupsBackSide</tt> value
8072030b 1674of <code>Rotated</code> on macOS and <code>Flipped</code> with
db1f069b
MS
1675Ghostscript.</p>
1676
1677<p>The default value is <code>false</code>.</p>
1678
1679<blockquote><b>Note:</b>
1680
8072030b 1681<p>macOS drivers that previously used
db1f069b 1682<tt>cupsFlipDuplex</tt> may wish to provide both the old and
10d09e33 1683new keywords for maximum compatibility, for example:</p>
db1f069b
MS
1684
1685<pre class='command'>
1686*cupsBackSide: Rotated
1687*cupsFlipDuplex: true
1688</pre>
1689
1690<p>Similarly, drivers written for other operating systems using
1691Ghostscript can use:</p>
1692
1693<pre class='command'>
1694*cupsBackSide: Flipped
1695*cupsFlipDuplex: true
1696</pre></blockquote>
1697
4f63d6cd 1698
8072030b 1699<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsIPPFinishings'>cupsIPPFinishings</a></h3>
db1f069b
MS
1700
1701<p class='summary'>*cupsIPPFinishings number/text: "*Option Choice ..."</p>
1702
10d09e33 1703<p>This keyword defines a mapping from IPP <code>finishings</code>
db1f069b
MS
1704values to PPD options and choices.</p>
1705
1706<p>Examples:</p>
1707
1708<pre class='command'>
1709*cupsIPPFinishings 4/staple: "*StapleLocation SinglePortrait"
1710*cupsIPPFinishings 5/punch: "*PunchMedia Yes *PunchLocation LeftSide"
1711*cupsIPPFinishings 20/staple-top-left: "*StapleLocation SinglePortrait"
1712*cupsIPPFinishings 21/staple-bottom-left: "*StapleLocation SingleLandscape"
1713</pre>
1714
4f63d6cd 1715
8072030b 1716<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsIPPReason'>cupsIPPReason</a></h3>
db1f069b
MS
1717
1718<p class='summary'>*cupsIPPReason reason/Reason Text: "optional URIs"</p>
1719
10d09e33 1720<p>This optional keyword maps custom
db1f069b
MS
1721<code>printer-state-reasons</code> keywords that are generated by
1722the driver to human readable text. The optional URIs string
1723contains zero or more URIs separated by a newline. Each URI can
1724be a CUPS server absolute path to a help file under the
1725scheduler's <code>DocumentRoot</code> directory, a full HTTP URL
1726("http://www.domain.com/path/to/help/page.html"), or any other
1727valid URI which directs the user at additional information
1728concerning the condition that is being reported.</p>
1729
f228370c 1730<p>Since the reason text is limited to 80 characters by the PPD specification, longer text strings can be included by URI-encoding the text with the "text" scheme, for example "text:some%20text". Multiple <code>text</code> URIs are combined by the <tt>ppdLocalizeIPPReason</tt> into a single string that can be displayed to the user.</p>
db1f069b
MS
1731
1732<p>Examples:</p>
1733
1734<pre class='command'>
1735<em>*% Map com.vendor-error to text but no page</em>
1736*cupsIPPReason com.vendor-error/A serious error occurred: ""
1737
1738<em>*% Map com.vendor-error to more than 80 characters of text but no page</em>
1739*cupsIPPReason com.vendor-error/A serious error occurred: "text:Now%20is%20the%20time
1740text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country."
1741
1742<em>*% Map com.vendor-error to text and a local page</em>
1743*cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
1744
1745<em>*% Map com.vendor-error to text and a remote page</em>
1746*cupsIPPReason com.vendor-error/A serious error occurred: "http://www.vendor.com/help"
1747
1748<em>*% Map com.vendor-error to text and a local, Apple help book, and remote page</em>
839a51c8 1749*APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
db1f069b
MS
1750*cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html
1751help:anchor='com.vendor-error'%20bookID=Vendor%20Help
1752http://www.vendor.com/help"
1753*End
1754</pre>
1755
4f63d6cd 1756
c8fef167
MS
1757<h3><span class='info'>CUPS 1.5</span><a name='cupsIPPSupplies'>cupsIPPSupplies</a></h3>
1758
1759<p class='summary'>*cupsIPPSupplies: boolean</p>
1760
1761<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>.
1762
1763<p>Example:</p>
1764
1765<pre class='command'>
1766<em>*% Do not use IPP marker-xxx attributes to report supply levels</em>
1767*cupsIPPSupplies: False
1768</pre>
1769
5a9febac 1770
8072030b 1771<h3><span class='info'>CUPS 1.7/macOS 10.9</span><a name='cupsJobAccountId'>cupsJobAccountId</a></h3>
5a9febac
MS
1772
1773<p class='summary'>*cupsJobAccountId: boolean</p>
1774
1775<p>This keyword defines whether the printer accepts the job-account-id IPP attribute.</p>
1776
1777<p>Example:</p>
1778
1779<pre class='command'>
1780<em>*% Specify the printer accepts the job-account-id IPP attribute.</em>
1781*cupsJobAccountId: True
1782</pre>
1783
1784
8072030b 1785<h3><span class='info'>CUPS 1.7/macOS 10.9</span><a name='cupsJobAccountingUserId'>cupsJobAccountingUserId</a></h3>
5a9febac
MS
1786
1787<p class='summary'>*cupsJobAccountingUserId: boolean</p>
1788
1789<p>This keyword defines whether the printer accepts the job-accounting-user-id IPP attribute.</p>
1790
1791<p>Example:</p>
1792
1793<pre class='command'>
1794<em>*% Specify the printer accepts the job-accounting-user-id IPP attribute.</em>
1795*cupsJobAccountingUserId: True
1796</pre>
1797
1798
8072030b 1799<h3><span class='info'>CUPS 1.7/macOS 10.9</span><a name='cupsJobPassword'>cupsJobPassword</a></h3>
5a9febac
MS
1800
1801<p class='summary'>*cupsJobPassword: "format"</p>
1802
1803<p>This keyword defines the format of the job-password IPP attribute, if supported by the printer. Currently the only supported format is "1111" indicating a 4-digit PIN code.</p>
1804
1805<p>Example:</p>
1806
1807<pre class='command'>
1808<em>*% Specify the printer supports 4-digit PIN codes.</em>
1809*cupsJobPassword: "1111"
1810</pre>
1811
1812
8072030b 1813<h3><span class='info'>CUPS 1.2/macOS 10.5</span><a name='cupsLanguages'>cupsLanguages</a></h3>
db1f069b
MS
1814
1815<p class='summary'>*cupsLanguages: "locale list"</p>
1816
10d09e33 1817<p>This keyword describes which language localizations are
db1f069b
MS
1818included in the PPD. The "locale list" string is a space-delimited
1819list of locale names ("en", "en_US", "fr_CA", etc.)</p>
1820
1821<p>Example:</p>
1822
1823<pre class='command'>
eac3a0a0 1824<em>*% Specify Canadian, UK, and US English, and Canadian and French French</em>
5a738aea 1825*cupsLanguages: "en_CA en_UK en_US fr_CA fr_FR"
db1f069b
MS
1826</pre>
1827
5a9febac 1828
8072030b 1829<h3><span class='info'>CUPS 1.7/macOS 10.9</span><a name='cupsMandatory'>cupsMandatory</a></h3>
5a9febac
MS
1830
1831<p class='summary'>*cupsMandatory: "attribute1 attribute2 ... attributeN"</p>
1832
1833<p>This keyword defines a list of IPP attributes that must be provided when submitting a print job creation request.</p>
1834
1835<p>Example:</p>
1836
1837<pre class='command'>
1838<em>*% Specify that the user must supply a job-password</em>
1839*cupsMandatory: "job-password job-password-encryption"
1840</pre>
1841
1842
db1f069b
MS
1843<h3><a name='cupsManualCopies'>cupsManualCopies</a></h3>
1844
1845<p class='summary'>*cupsManualCopies: boolean</p>
1846
10d09e33 1847<p>This boolean keyword notifies the RIP filters that the
db1f069b
MS
1848destination printer does not support copy generation in
1849hardware. The default value is <code>false</code>.</p>
1850
1851<p>Example:</p>
1852
1853<pre class='command'>
c8fef167 1854<em>*% Tell the RIP filters to generate the copies for us</em>
db1f069b
MS
1855*cupsManualCopies: true
1856</pre>
1857
4f63d6cd 1858
8072030b 1859<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMarkerName'>cupsMarkerName</a></h3>
634763e8
MS
1860
1861<p class='summary'>*cupsMarkerName/Name Text: ""</p>
1862
10d09e33 1863<p>This optional keyword maps <code>marker-names</code> strings that are
634763e8
MS
1864generated by the driver to human readable text.</p>
1865
1866<p>Examples:</p>
1867
1868<pre class='command'>
1869<em>*% Map cyanToner to "Cyan Toner"</em>
1870*cupsMarkerName cyanToner/Cyan Toner: ""
1871</pre>
1872
4f63d6cd 1873
8072030b 1874<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsMarkerNotice'>cupsMarkerNotice</a></h3>
75bd9771
MS
1875
1876<p class='summary'>*cupsMarkerNotice: "disclaimer text"</p>
1877
10d09e33 1878<p>This optional keyword provides disclaimer text for the supply level
75bd9771
MS
1879information provided by the driver, typically something like "supply levels
1880are approximate".</p>
1881
1882<p>Examples:</p>
1883
1884<pre class='command'>
1885*cupsMarkerNotice: "Supply levels are approximate."
1886</pre>
1887
4f63d6cd 1888
8072030b 1889<h3><span class='info'>CUPS 1.6/macOS 10.8</span><a name='cupsMaxCopies'>cupsMaxCopies</a></h3>
3e7fe0ca
MS
1890
1891<p class='summary'>*cupsMaxCopies: integer</p>
1892
1893<p>This integer keyword notifies the filters that the destination printer supports up to N copies in hardware. The default value is <code>9999</code>.</p>
1894
1895<p>Example:</p>
1896
1897<pre class='command'>
1898<em>*% Tell the RIP filters we can do up to 99 copies</em>
1899*cupsMaxCopies: 99
1900</pre>
1901
4f63d6cd 1902
db1f069b
MS
1903<h3><a name='cupsModelNumber'>cupsModelNumber</a></h3>
1904
1905<p class='summary'>*cupsModelNumber: number</p>
1906
10d09e33 1907<p>This integer keyword specifies a printer-specific model
db1f069b
MS
1908number. This number can be used by a filter program to adjust
1909the output for a specific model of printer.</p>
1910
1911<p>Example:</p>
1912
1913<pre class='command'>
c8fef167 1914<em>*% Specify an integer for a driver-specific model number</em>
db1f069b
MS
1915*cupsModelNumber: 1234
1916</pre>
1917
a29fd7dd 1918
8072030b 1919<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsPJLCharset'>cupsPJLCharset</a></h3>
db1f069b
MS
1920
1921<p class='summary'>*cupsPJLCharset: "ISO character set name"</p>
1922
10d09e33 1923<p>This string keyword specifies the character set that is used
db1f069b
MS
1924for strings in PJL commands. If not specified, US-ASCII is
1925assumed.</p>
1926
1927<p>Example:</p>
1928
1929<pre class='command'>
1930<em>*% Specify UTF-8 is used in PJL strings</em>
1931*cupsPJLCharset: "UTF-8"
1932</pre>
1933
4f63d6cd 1934
8072030b 1935<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsPJLDisplay'>cupsPJLDisplay</a></h3>
634763e8
MS
1936
1937<p class='summary'>*cupsPJLDisplay: "what"</p>
1938
10d09e33 1939<p>This optional keyword specifies which command is used to display the
634763e8
MS
1940job ID, name, and user on the printer's control panel. "What" is either "none"
1941to disable this functionality, "job" to use "@PJL JOB DISPLAY", or "rdymsg"
1942to use "@PJL RDYMSG DISPLAY". The default is "job".</p>
1943
1944<p>Examples:</p>
1945
1946<pre class='command'>
1947<em>*% Display job information using @PJL SET RDYMSG DISPLAY="foo"</em>
1948*cupsPJLDisplay: "rdymsg"
1949
1950<em>*% Display job information display</em>
1951*cupsPJLDisplay: "none"
1952</pre>
db1f069b 1953
4f63d6cd 1954
8072030b 1955<h3><span class='info'>CUPS 1.2/macOS 10.5</span><a name='cupsPortMonitor'>cupsPortMonitor</a></h3>
db1f069b
MS
1956
1957<p class='summary'>*cupsPortMonitor urischeme/Descriptive Text: "port monitor"</p>
1958
10d09e33 1959<p>This string keyword specifies printer-specific "port
db1f069b 1960monitor" filters that may be used with the printer. The CUPS
10d09e33 1961scheduler also looks for the <tt>Protocols</tt> keyword to see
db1f069b
MS
1962if the <tt>BCP</tt> or <tt>TBCP</tt> protocols are supported. If
1963so, the corresponding port monitor ("bcp" and "tbcp",
1964respectively) is listed in the printer's
10d09e33 1965<tt>port-monitor-supported</tt> keyword.</p>
db1f069b 1966
10d09e33 1967<p>The "urischeme" portion of the keyword specifies the URI scheme
db1f069b
MS
1968that this port monitor should be used for. Typically this is used to
1969pre-select a particular port monitor for each type of connection that
1970is supported by the printer. The "port monitor" string can be "none"
1971to disable the port monitor for the given URI scheme.</p>
1972
1973<p>Examples:</p>
1974
1975<pre class='command'>
1976<em>*% Specify a PostScript printer that supports the TBCP protocol</em>
1977*Protocols: TBCP PJL
1978
1979<em>*% Specify that TBCP should be used for socket connections but not USB</em>
1980*cupsPortMonitor socket/AppSocket Printing: "tbcp"
1981*cupsPortMonitor usb/USB Printing: "none"
1982
c8fef167 1983<em>*% Specify a printer-specific port monitor for an Epson USB printer</em>
db1f069b
MS
1984*cupsPortMonitor usb/USB Status Monitor: "epson-usb"
1985</pre>
1986
4f63d6cd 1987
8072030b 1988<h3><span class='info'>CUPS 1.3/macOS 10.5</span><a name='cupsPreFilter'>cupsPreFilter</a></h3>
db1f069b
MS
1989
1990<p class='summary'>*cupsPreFilter: "source/type cost program"</p>
1991
10d09e33 1992<p>This string keyword provides a pre-filter rule. The pre-filter
c8fef167 1993program will be inserted in the conversion chain immediately
db1f069b
MS
1994before the filter that accepts the given MIME type.</p>
1995
1996<p>Examples:</p>
1997
1998<pre class='command'>
1999<em>*% PDF pre-filter</em>
2000*cupsPreFilter: "application/pdf 100 mypdfprefilter"
2001
2002<em>*% PNG pre-filter</em>
2003*cupsPreFilter: "image/png 0 mypngprefilter"
2004</pre>
2005
c7017ecc
MS
2006
2007<h3><span class='info'>CUPS 1.5</span><a name='cupsPrintQuality'>cupsPrintQuality</a></h3>
2008
2009<p class='summary'>*cupsPrintQuality keyword/text: "code"</p>
2010
10d09e33 2011<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>
c7017ecc
MS
2012
2013<blockquote><b>Note:</b>
2014
2015<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>
2016
2017</blockquote>
2018
2019<p>Examples:</p>
2020
2021<pre class='command'>
2022*OpenUI *cupsPrintQuality/Print Quality: PickOne
2023*OrderDependency: 10 AnySetup *cupsPrintQuality
2024*DefaultcupsPrintQuality: Normal
2025*cupsPrintQuality Draft/Draft: "code"
2026*cupsPrintQuality Normal/Normal: "code"
2027*cupsPrintQuality High/Photo: "code"
2028*CloseUI: *cupsPrintQuality
2029</pre>
2030
4f63d6cd 2031
82f97232
MS
2032<h3><span class='info'>CUPS 1.5</span><a name='cupsSingleFile'>cupsSingleFile</a></h3>
2033
2034<p class='summary'>*cupsSingleFile: Boolean</p>
2035
2036<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>
2037
2038<p>Examples:</p>
2039
2040<pre class='command'>
2041<em>*% Send all print data to a single backend</em>
2042*cupsSingleFile: False
2043
2044<em>*% Send each file using a separate backend</em>
2045*cupsSingleFile: True
2046</pre>
2047
4f63d6cd 2048
8072030b 2049<h3><span class='info'>CUPS 1.4/macOS 10.6</span><a name='cupsSNMPSupplies'>cupsSNMPSupplies</a></h3>
58dc1933
MS
2050
2051<p class='summary'>*cupsSNMPSupplies: boolean</p>
2052
10d09e33 2053<p>This keyword tells the standard network backends whether they should query
58dc1933
MS
2054the standard SNMP Printer MIB OIDs for supply levels. The default value is
2055<code>True</code>.
2056
2057<p>Example:</p>
2058
2059<pre class='command'>
2060<em>*% Do not use SNMP queries to report supply levels</em>
2061*cupsSNMPSupplies: False
2062</pre>
2063
4f63d6cd 2064
db1f069b
MS
2065<h3><a name='cupsVersion'>cupsVersion</a></h3>
2066
2067<p class='summary'>*cupsVersion: major.minor</p>
2068
10d09e33 2069<p>This required keyword describes which version of the CUPS
db1f069b 2070PPD file extensions was used. Currently it must be the string
82cc1f9a 2071"1.0", "1.1", "1.2", "1.3", "1.4", "1.5", or "1.6".</p>
db1f069b
MS
2072
2073<p>Example:</p>
2074
2075<pre class='command'>
c8fef167 2076<em>*% Specify a CUPS 1.2 driver</em>
db1f069b
MS
2077*cupsVersion: "1.2"
2078</pre>
2079
2080
8072030b 2081<h3><span class="info">CUPS 1.6/macOS 10.8</span><a name="JCLToPDFInterpreter">JCLToPDFInterpreter</a></h3>
82cc1f9a
MS
2082
2083<p class="summary">*JCLToPDFInterpreter: "JCL"</p>
2084
dd3fdd2c 2085<p>This keyword provides the JCL command to insert a PDF job file into a printer-ready data stream. The JCL command is added after the <tt>JCLBegin</tt> value and any commands for JCL options in the PPD file.</p>
82cc1f9a
MS
2086
2087<p>Example:</p>
2088
2089<pre class='command'>
2090<em>*% PJL command to start the PDF interpreter</em>
2091*JCLToPDFInterpreter: "@PJL ENTER LANGUAGE = PDF&lt;0A&gt;"
2092</pre>
2093
2094
8072030b 2095<h2 class='title'><a name='MACOSX'>macOS Attributes</a></h2>
db1f069b 2096
8072030b 2097<h3><span class='info'>macOS 10.3</span><a name='APDialogExtension'>APDialogExtension</a></h3>
db1f069b
MS
2098
2099<p class='summary'>*APDialogExtension: "/Library/Printers/vendor/filename.plugin"</p>
2100
10d09e33
MS
2101<p>This keyword defines additional option panes that are displayed in the
2102print dialog. Each keyword adds one or more option panes. See the "OutputBinsPDE"
db1f069b
MS
2103example and <a href='http://developer.apple.com/qa/qa2004/qa1352.html'>Apple
2104Technical Q&amp;A QA1352</a> for information on writing your own print dialog
2105plug-ins.</p>
2106
2107<blockquote><b>Note:</b>
2108
8072030b 2109<p>Starting with macOS 10.5, each plug-in must be compiled "4-way fat"
db1f069b
MS
2110(32-bit and 64-bit for both PowerPC and Intel) with garbage collection enabled
2111in order to be usable with all applications.</p>
2112
2113</blockquote>
2114
2115<p>Examples:</p>
2116
2117<pre class='command'>
2118*% Add two panes for finishing and driver options
2119*APDialogExtension: "/Library/Printers/vendor/finishing.plugin"
2120*APDialogExtension: "/Library/Printers/vendor/options.plugin"
2121</pre>
2122
4f63d6cd 2123
8072030b 2124<h3><span class='info'>macOS 10.4</span><a name='APDuplexRequiresFlippedMargin'>APDuplexRequiresFlippedMargin</a></h3>
db1f069b
MS
2125
2126<p class='summary'>*APDuplexRequiresFlippedMargin: boolean</p>
2127
10d09e33 2128<p>This boolean keyword notifies the RIP filters that the
db1f069b
MS
2129destination printer requires the top and bottom margins of the
2130<tt>ImageableArea</tt> to be swapped for the back page. The
2131default is <tt>true</tt> when <tt>cupsBackSide</tt> is <tt>Flipped</tt>
2132and <tt>false</tt> otherwise. <a href='#TABLE_2'>Table 2</a> shows how
2133<tt>APDuplexRequiresFlippedMargin</tt> interacts with <tt>cupsBackSide</tt>
2134and the <tt>Tumble</tt> page attribute.</p>
2135
2136<div class='table'>
2137<table width='80%' summary='Margin Flipping Modes'>
2138<caption>Table 2: <a name='TABLE_2'>Margin Flipping Modes</a></caption>
2139<thead>
2140<tr>
2141 <th>APDuplexRequiresFlippedMargin</th>
2142 <th>cupsBackSide</th>
2143 <th>Tumble Value</th>
2144 <th>Margins</th>
2145</tr>
2146</thead>
2147<tbody>
2148<tr>
2149 <td>false</td>
2150 <td>any</td>
2151 <td>any</td>
2152 <td>Normal</td>
2153</tr>
2154<tr>
2155 <td>any</td>
2156 <td>Normal</td>
2157 <td>any</td>
2158 <td>Normal</td>
2159</tr>
2160<tr>
2161 <td>true</td>
2162 <td>ManualDuplex</td>
2163 <td>false</td>
2164 <td>Normal</td>
2165</tr>
2166<tr>
2167 <td>true</td>
2168 <td>ManualDuplex</td>
2169 <td>true</td>
2170 <td>Flipped</td>
2171</tr>
2172<tr>
2173 <td>true</td>
2174 <td>Rotated</td>
2175 <td>false</td>
2176 <td>Flipped</td>
2177</tr>
2178<tr>
2179 <td>true</td>
2180 <td>Rotated</td>
2181 <td>true</td>
2182 <td>Normal</td>
2183</tr>
2184<tr>
2185 <td>true or unspecified</td>
2186 <td>Flipped</td>
2187 <td>any</td>
2188 <td>Flipped</td>
2189</tr>
2190</tbody>
2191</table></div>
2192
2193<p>Example:</p>
2194
2195<pre class='command'>
2196<em>*% Rotate the back side images</em>
2197*cupsBackSide: Rotated
2198
c8fef167 2199<em>*% Don't swap the top and bottom margins for the back side</em>
db1f069b
MS
2200*APDuplexRequiresFlippedMargin: false
2201</pre>
2202
2203<p>Also see the related <a href='#cupsBackSide'><tt>cupsBackSide</tt></a>
10d09e33 2204keyword.</p>
db1f069b 2205
4f63d6cd 2206
64a69576
MS
2207<h3><a name='APHelpBook'>APHelpBook</a></h3>
2208
839a51c8 2209<p class='summary'>*APHelpBook: "bundle URL"</p>
64a69576 2210
10d09e33 2211<p>This string keyword specifies the Apple help book bundle to use when
64a69576 2212looking up IPP reason codes for this printer driver. The
10d09e33 2213<a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> keyword maps
64a69576
MS
2214"help" URIs to this file.</p>
2215
2216<p>Example:</p>
2217
2218<pre class='command'>
839a51c8 2219*APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
64a69576
MS
2220</pre>
2221
4f63d6cd 2222
8072030b 2223<h3><span class='info'>macOS 10.6</span><a name='APICADriver'>APICADriver</a></h3>
c5571a1d
MS
2224
2225<p class='summary'>*APICADriver: boolean</p>
2226
10d09e33 2227<p>This keyword specifies whether the device has a matching Image Capture
c5571a1d
MS
2228Architecture (ICA) driver for scanning. The default is <tt>False</tt>.</p>
2229
2230<p>Examples:</p>
2231
2232<pre class='command'>
2233*APICADriver: True
2234*APScanAppBundleID: "com.apple.ImageCaptureApp"
2235</pre>
2236
4f63d6cd 2237
8072030b 2238<h3><span class='info'>macOS 10.3</span><a name='APPrinterIconPath'>APPrinterIconPath</a></h3>
db1f069b 2239
e4572d57 2240<p class='summary'>*APPrinterIconPath: "/Library/Printers/vendor/filename.icns"</p>
db1f069b 2241
10d09e33 2242<p>This keyword defines the location of a printer icon file to use when
e4572d57 2243displaying the printer. The file must be in the Apple icon format.</p>
db1f069b
MS
2244
2245<p>Examples:</p>
2246
2247<pre class='command'>
2248*% Apple icon file
2249*APPrinterIconPath: "/Library/Printers/vendor/Icons/filename.icns"
db1f069b
MS
2250</pre>
2251
4f63d6cd 2252
8072030b 2253<h3><span class='info'>macOS 10.4</span><a name='APPrinterLowInkTool'>APPrinterLowInkTool</a></h3>
db1f069b
MS
2254
2255<p class='summary'>*APPrinterLowInkTool: "/Library/Printers/vendor/program"</p>
2256
10d09e33 2257<p>This keyword defines an program that checks the ink/toner/marker levels
db1f069b
MS
2258on a printer, returning an XML document with those levels. See the "InkTool"
2259example and
2260<a href='http://developer.apple.com/technotes/tn2005/tn2144.html'>Apple
2261Technical Note TN2144</a> for more information.</p>
2262
2263<p>Examples:</p>
2264
2265<pre class='command'>
2266*% Use a vendor monitoring program
2267*APPrinterLowInkTool: "/Library/Printers/vendor/Tools/lowinktool"
2268</pre>
2269
4f63d6cd 2270
8072030b 2271<h3><span class='info'>macOS 10.5</span><a name='APPrinterPreset'>APPrinterPreset</a></h3>
db1f069b
MS
2272
2273<p class='summary'>*APPrinterPreset name/text: "*Option Choice ..."</p>
2274
10d09e33 2275<p>This keyword defines presets for multiple options that show up
db1f069b
MS
2276in the print dialog of applications (such as iPhoto) that set the job
2277style hint to <tt>NSPrintPhotoJobStyleHint</tt>. Each preset maps to one or
2278more pairs of PPD options and choices as well as providing key/value data for
c7017ecc 2279the application. The following standard preset names are currently defined:</p>
db1f069b
MS
2280
2281<ul>
2282
c7017ecc
MS
2283 <li><code>General_with_Paper_Auto-Detect</code>; Normal quality general printing with auto-detected media.</li>
2284
2285 <li><code>General_with_Paper_Auto-Detect_-_Draft</code>; Draft quality general printing with auto-detected media.</li>
2286
2287 <li><code>General_on_Plain_Paper</code>; Normal quality general printing on plain paper.</li>
2288
2289 <li><code>General_on_Plain_Paper_-_Draft</code>; Draft quality general printing on plain paper.</li>
db1f069b 2290
c7017ecc 2291 <li><code>Photo_with_Paper_Auto-Detect</code>; Normal quality photo printing with auto-detected media.</li>
db1f069b 2292
c7017ecc 2293 <li><code>Photo_with_Paper_Auto-Detect_-_Fine</code>; High quality photo printing with auto-detected media.</li>
db1f069b 2294
c7017ecc 2295 <li><code>Photo_on_Plain_Paper</code>; Normal quality photo printing on plain paper.</li>
db1f069b 2296
c7017ecc 2297 <li><code>Photo_on_Plain_Paper_-_Fine</code>; High quality photo printing on plain paper.</li>
db1f069b 2298
c7017ecc 2299 <li><code>Photo_on_Photo_Paper</code>; Normal quality photo printing on glossy photo paper.</li>
db1f069b 2300
c7017ecc 2301 <li><code>Photo_on_Photo_Paper_-_Fine</code>; High quality photo printing on glossy photo paper.</li>
db1f069b 2302
c7017ecc
MS
2303 <li><code>Photo_on_Matte_Paper</code>; Normal quality photo printing on matte paper.</li>
2304
2305 <li><code>Photo_on_Matte_Paper_-_Fine</code>; High quality photo printing on matte paper.</li>
db1f069b
MS
2306
2307</ul>
2308
2309<p>The value string consists of pairs of keywords, either an option name and
2310choice (*MainKeyword OptionKeyword) or a preset identifier and value
c7017ecc
MS
2311(com.apple.print.preset.foo value). The following preset identifiers are currently used:</p>
2312
2313<ul>
2314
2315 <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>
2316
2317 <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>
2318
2319 <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&amp;W printers).</li>
2320
2321 <li><code>com.apple.print.preset.quality</code>; specifies the overall print quality selected by this preset - "low" (draft), "mid" (normal), or "high".</li>
2322
2323</ul>
db1f069b
MS
2324
2325<p>Presets, like options, can also be localized in multiple languages.</p>
2326
2327<p>Examples:</p>
2328
2329<pre class='command'>
2330*APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper: "
2331 *MediaType Glossy
2332 *ColorModel RGB
2333 *Resolution 300dpi
2334 com.apple.print.preset.graphicsType Photo
2335 com.apple.print.preset.quality mid
2336 com.apple.print.preset.media-front-coating glossy"
2337*End
2338*fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique: ""
2339</pre>
2340
4f63d6cd 2341
8072030b 2342<h3><span class='info'>macOS 10.3</span><a name='APPrinterUtilityPath'>APPrinterUtilityPath</a></h3>
db1f069b
MS
2343
2344<p class='summary'>*APPrinterPrinterUtilityPath: "/Library/Printers/vendor/filename.app"</p>
2345
10d09e33 2346<p>This keyword defines a GUI application that can be used to do printer
db1f069b
MS
2347maintenance functions such as cleaning the print head(s). See ... for more
2348information.</p>
2349
2350<p>Examples:</p>
2351
2352<pre class='command'>
2353*% Define the printer utility application
2354*APPrinterPrinterUtilityPath: "/Library/Printers/vendor/Tools/utility.app"
2355</pre>
2356
4f63d6cd 2357
8072030b 2358<h3><span class='info'>macOS 10.6</span><a name='APScannerOnly'>APScannerOnly</a></h3>
b9faaae1
MS
2359
2360<p class='summary'>*APScannerOnly: boolean</p>
2361
10d09e33 2362<p>This keyword specifies whether the device has scanning but no printing
b9faaae1
MS
2363capabilities. The default is <tt>False</tt>.</p>
2364
2365<p>Examples:</p>
2366
2367<pre class='command'>
2368*APICADriver: True
2369*APScannerOnly: True
2370</pre>
2371
4f63d6cd 2372
8072030b 2373<h3><span class='info'>macOS 10.3</span><a name='APScanAppBundleID'>APScanAppBundleID</a></h3>
db1f069b
MS
2374
2375<p class='summary'>*APScanAppBundleID: "bundle ID"</p>
2376
10d09e33 2377<p>This keyword defines the application to use when scanning pages from
db1f069b
MS
2378the device.</p>
2379
2380<p>Examples:</p>
2381
2382<pre class='command'>
c5571a1d 2383*APICADriver: True
db1f069b
MS
2384*APScanAppBundleID: "com.apple.ImageCaptureApp"
2385</pre>
2386
2387
2388<h2 class='title'><a name='HISTORY'>Change History</a></h2>
2389
4f63d6cd
MS
2390<h3>Changes in CUPS 2.3</h3>
2391
2392<ul>
2393
2394 <li>Added <a href="#cupsFinishingTemplate"><tt>cupsFinishingTemplate</tt></a> option.</li>
2395
2396</ul>
2397
2398
5a9febac
MS
2399<h3>Changes in CUPS 1.7</h3>
2400
2401<ul>
2402
2403 <li>Added <a href="#cupsJobAccountId"><tt>cupsJobAccountId</tt></a>,
2404 <a href="#cupsJobAccountingUserId"><tt>cupsJobAccountingUserId</tt></a>,
2405 <a href="#cupsJobPassword"><tt>cupsJobPassword</tt></a>,
2406 <a href="#cupsMandatory"><tt>cupsMandatory</tt></a> keywords.</li>
2407
2408</ul>
2409
2410
3e7fe0ca
MS
2411<h3>Changes in CUPS 1.6</h3>
2412
2413<ul>
2414
7374e9e5 2415 <li>Added <a href="#cupsPageSizeCategory"><tt>cupsPageSizeCategory</tt></a> keyword (originally defined in CUPS 1.4).</li>
a29fd7dd 2416
3e7fe0ca
MS
2417 <li>Added <a href="#cupsMaxCopies"><tt>cupsMaxCopies</tt></a> keyword.</li>
2418
82cc1f9a
MS
2419 <li>Documented <a href="#JCLToPDFInterpreter"><tt>JCLToPDFInterpreter</tt></a> keyword.</li>
2420
2421 <li>Updated <a href="#cupsVersion"><tt>cupsVersion</tt></a> keyword documentation to list all current releases of CUPS.</li>
2422
3e7fe0ca
MS
2423</ul>
2424
2425
10d09e33
MS
2426<h3>Changes in CUPS 1.5</h3>
2427
2428<ul>
2429
2430 <li>Changes all instances of PPD attributes to PPD keywords, to be consistent with the parent specification from Adobe.</li>
2431
2432</ul>
2433
2434
c7017ecc
MS
2435<h3>Changes in CUPS 1.4.5</h3>
2436
2437<ul>
2438
2439 <li>Added <a href='#cupsPrintQuality'><tt>cupsPrintQuality</tt></a> UI keyword.</li>
2440
2441 <li>Added new properties and values for the <a href='#APPrinterPreset'><tt>APPrinterPreset</tt></a> keyword.</li>
2442
2443</ul>
2444
2445
b0f6947b 2446<h3>Changes in CUPS 1.4</h3>
634763e8
MS
2447
2448<ul>
2449
c5571a1d 2450 <li>Added <a href='#APICADriver'><tt>APICADriver</tt></a>
10d09e33 2451 keyword.</li>
c5571a1d 2452
749b1e90 2453 <li>Added <a href='#cupsCommands'><tt>cupsCommands</tt></a>
10d09e33 2454 keyword.</li>
634763e8 2455
749b1e90 2456 <li>Added <a href='#cupsMarkerName'><tt>cupsMarkerName</tt></a>
10d09e33 2457 keyword.</li>
634763e8 2458
749b1e90 2459 <li>Added <a href='#cupsMarkerNotice'><tt>cupsMarkerNotice</tt></a>
10d09e33 2460 keyword.</li>
75bd9771 2461
749b1e90 2462 <li>Added <a href='#cupsPJLDisplay'><tt>cupsPJLDisplay</tt></a>
10d09e33 2463 keyword.</li>
01ce6322 2464
58dc1933 2465 <li>Added <a href='#cupsSNMPSupplies'><tt>cupsSNMPSupplies</tt></a>
10d09e33 2466 keyword.</li>
58dc1933 2467
749b1e90
MS
2468 <li>Added <a href='#cupsUIResolver'><tt>cupsUIResolver</tt></a> and
2469 <a href='#cupsUIConstraints'><tt>cupsUIConstraints</tt></a>
10d09e33 2470 keywords.</li>
66ab9486 2471
749b1e90
MS
2472 <li>Added
2473 <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a>,
2474 <a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a>,
2475 <a href='#cupsMinSize'><tt>cupsMinSize</tt></a>, and
10d09e33 2476 <a href='#cupsMaxSize'><tt>cupsMaxSize</tt></a> keywords.</li>
749b1e90 2477
634763e8
MS
2478</ul>
2479
2480
b0f6947b 2481<h3>Changes in CUPS 1.3.1</h3>
db1f069b
MS
2482
2483<ul>
2484
8072030b 2485 <li>Added missing macOS <tt>AP</tt> keywords.</li>
db1f069b
MS
2486
2487 <li>Added section on auto-configuration including the
2488 <tt>OID<i>MainKeyword</i></tt> and <tt>?<i>MainKeyword</i></tt>
10d09e33 2489 keywords.</li>
db1f069b
MS
2490
2491 <li>Minor reorganization.</li>
2492
2493</ul>
2494
ef416fc2 2495
b0f6947b 2496<h3>Changes in CUPS 1.3</h3>
f7deaa1a 2497
2498<ul>
2499
749b1e90
MS
2500 <li>Added <a href='#cupsBackSide'><tt>cupsBackSide</tt></a> and
2501 deprecated <a href='#cupsFlipDuplex'><tt>cupsFlipDuplex</tt></a>.</li>
bc44d920 2502
749b1e90
MS
2503 <li>Added text URI information to
2504 <a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> documentation.</li>
bc44d920 2505
749b1e90
MS
2506 <li>Added <a href='#APPrinterPreset'><tt>APPrinterPreset</tt></a>,
2507 <a href='#cupsIPPFinishings'><tt>cupsIPPFinishings</tt></a>, and
10d09e33 2508 <a href='#cupsPreFilter'><tt>cupsPreFilter</tt></a> keywords.</li>
09a101d6 2509
749b1e90
MS
2510 <li>Added discussion of custom option code, sample
2511 <tt>CustomPageSize</tt> code, and "do not use dict and put" note.</li>
f7deaa1a 2512
2513</ul>
2514
4f63d6cd 2515
b0f6947b 2516<h3>Changes in CUPS 1.2.8</h3>
b86bc4cf 2517
2518<ul>
2519
2520 <li>Added section on supported PostScript commands for raster
2521 drivers</li>
2522
2523</ul>
2524
4f63d6cd 2525
b0f6947b 2526<h3>Changes in CUPS 1.2</h3>
ef416fc2 2527
2528<ul>
2529
10d09e33 2530 <li>Added globalization support keywords</li>
ef416fc2 2531
2532 <li>Added custom option values support</li>
2533
10d09e33 2534 <li>Added <a href='#APHelpBook'><tt>APHelpBook</tt></a> keyword</li>
4744bd90 2535
749b1e90 2536 <li>Added <a href='#APDuplexRequiresFlippedMargin'><tt>APDuplexRequiresFlippedMargin</tt></a>
10d09e33 2537 keyword</li>
a4d04587 2538
10d09e33 2539 <li>Added <a href='#cupsICCProfile'><tt>cupsICCProfile</tt></a> keyword</li>
ef416fc2 2540
10d09e33 2541 <li>Added <a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> keyword</li>
4744bd90 2542
10d09e33 2543 <li>Added <a href='#cupsLanguages'><tt>cupsLanguages</tt></a> keyword</li>
a4d04587 2544
10d09e33 2545 <li>Added <a href='#cupsPortMonitor'><tt>cupsPortMonitor</tt></a> keyword</li>
ef416fc2 2546
10d09e33 2547 <li>Removed <tt>cupsProtocol</tt> keyword</li>
ef416fc2 2548
2549</ul>
2550
4f63d6cd 2551
b0f6947b 2552<h3>Changes in CUPS 1.1</h3>
ef416fc2 2553
2554<ul>
2555
10d09e33 2556 <li>Added <a href='#cupsFlipDuplex'><tt>cupsFlipDuplex</tt></a> keyword</li>
ef416fc2 2557
10d09e33 2558 <li>Added <tt>cupsProtocol</tt> keyword</li>
ef416fc2 2559
2560</ul>
abacc52b
MS
2561 </div>
2562 </body>
ef416fc2 2563</html>