]>
Commit | Line | Data |
---|---|---|
745129be | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
ef416fc2 | 2 | <html> |
4744bd90 | 3 | <!-- SECTION: Specifications --> |
ef416fc2 | 4 | <head> |
5 | <title>CUPS PPD Extensions</title> | |
6 | <meta name='keywords' content='Programming, PostScript Printer Description'> | |
db1f069b | 7 | <link rel='stylesheet' type='text/css' href='../cups-printable.css'> |
ef416fc2 | 8 | </head> |
9 | <body> | |
10 | <!-- | |
b19ccc9e | 11 | "$Id: spec-ppd.html 7937 2008-09-11 16:16:41Z mike $" |
ef416fc2 | 12 | |
13 | CUPS PPD extensions specification for the Common UNIX Printing System (CUPS). | |
14 | ||
b9faaae1 | 15 | Copyright 2007-2009 by Apple Inc. |
f7deaa1a | 16 | Copyright 1997-2007 by Easy Software Products. |
ef416fc2 | 17 | |
18 | These coded instructions, statements, and computer programs are the | |
db1f069b MS |
19 | property of Apple Inc. and are protected by Federal copyright |
20 | law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
21 | which should have been included with this file. If this file is | |
22 | file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 23 | --> |
24 | ||
25 | <h2 class='title'><a name='INTRODUCTION'>Introduction</a></h2> | |
26 | ||
27 | <p>This specification describes the attributes and extensions | |
28 | that CUPS adds to <a | |
4744bd90 | 29 | href="http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf"> |
ef416fc2 | 30 | Adobe TechNote #5003: PostScript Printer Description File Format |
31 | Specification Version 4.3</a>. PostScript Printer Description | |
32 | ("PPD") files describe the capabilities of each printer and are | |
33 | used by CUPS to support printer-specific features and intelligent | |
34 | filtering.</p> | |
35 | ||
36 | <h2 class='title'><a name='SYNTAX'>PPD File Syntax</a></h2> | |
37 | ||
38 | <p>The PPD format is text-based and uses lines of up to 255 | |
39 | characters terminated by a carriage return, linefeed, or | |
40 | combination of carriage return and line feed. The following ABNF | |
b19ccc9e | 41 | definition [RFC4234] defines the general format of lines in a PPD |
ef416fc2 | 42 | file:</p> |
43 | ||
44 | <pre class='command'> | |
45 | PPD-FILE = HEADER +(DATA / COMMENT / LINE-END) | |
46 | ||
dd1abb6b MS |
47 | HEADER = "*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END |
48 | ||
49 | VERSION = "4.0" / "4.1" / "4.2" / "4.3" | |
ef416fc2 | 50 | |
51 | COMMENT = "*%" *TCHAR LINE-END | |
52 | ||
53 | DATA = "*" 1*KCHAR [ WSP 1*KCHAR [ "/" 1*TCHAR ] ] ":" | |
54 | 1*(*WSP VALUE) LINE-END | |
55 | ||
56 | VALUE = 1*TCHAR / DQUOTE 1*SCHAR DQUOTE | |
57 | ||
58 | KCHAR = ALPHA / DIGIT / "_" / "." / "-" | |
59 | ||
b19ccc9e | 60 | SCHAR = LINE-END / WSP / %x21.23-7E.A0-FF |
ef416fc2 | 61 | |
b19ccc9e | 62 | TCHAR = %x20-7E.A0-FF |
ef416fc2 | 63 | |
64 | LINE-END = CR / LF / CR LF | |
65 | </pre> | |
66 | ||
67 | ||
db1f069b | 68 | <h2 class='title'><a name='AUTOCONFIG'>Auto-Configuration</a></h2> |
ef416fc2 | 69 | |
db1f069b MS |
70 | <p>CUPS supports several methods of auto-configuration via PPD attributes. |
71 | <em>Currently these methods are only implemented on Mac OS X.</em></p> | |
4744bd90 | 72 | |
db1f069b | 73 | <h3><span class='info'>Mac OS X 10.5</span><a name='APAutoSetupTool'>APAutoSetupTool</a></h3> |
4744bd90 | 74 | |
db1f069b | 75 | <p class='summary'>*APAutoSetupTool: "/LibraryPrinters/vendor/filename"</p> |
4744bd90 | 76 | |
db1f069b MS |
77 | <p>This attribute defines a program that sets the default option choices. It |
78 | is run when a printer is added from the printer browser instead of the | |
79 | normal PostScript query and SNMP OID attribute lookups.</p> | |
80 | ||
81 | <p>The program is provided with two arguments: the printer's device URI and | |
82 | the PPD file to be used for the printer. The program must write an updated | |
83 | PPD file to stdout.</p> | |
84 | ||
85 | <p>Examples:</p> | |
4744bd90 | 86 | |
87 | <pre class='command'> | |
db1f069b MS |
88 | *% Use our setup tool when adding a printer |
89 | *APAutoSetupTool: "/Library/Printers/vendor/Tools/autosetuptool" | |
4744bd90 | 90 | </pre> |
91 | ||
db1f069b | 92 | <h3><span class='info'>Mac OS X 10.2</span><a name='QUERYKEYWORD'>?MainKeyword</a></h3> |
a4d04587 | 93 | |
db1f069b MS |
94 | <p class='summary'>*?<i>MainKeyword</i>: "<br> |
95 | PostScript query code that writes a message using the = operator...<br> | |
96 | "<br> | |
97 | *End</p> | |
a4d04587 | 98 | |
7dfedb92 | 99 | <p>The <tt>?<i>MainKeyword</i></tt> attribute defines PostScript code that |
db1f069b MS |
100 | determines the currently selected/enabled option keyword (choice) for the |
101 | main keyword (option). It is typically used when communicating with USB, | |
102 | serial, Appletalk, and AppSocket (port 9100) printers.</p> | |
103 | ||
104 | <p>The PostScript code typically sends its response back using the <tt>=</tt> | |
105 | operator.</p> | |
ef416fc2 | 106 | |
a4d04587 | 107 | <p>Example:</p> |
ef416fc2 | 108 | |
109 | <pre class='command'> | |
db1f069b MS |
110 | *OpenUI OptionDuplex/Duplexer Installed: Boolean |
111 | *DuplexOptionDuplex: False | |
112 | *OptionDuplex False/Not Installed: "" | |
113 | *OptionDuplex True/Installed: "" | |
114 | ||
115 | <em>*% Query the printer for the presence of the duplexer option...</em> | |
116 | *?OptionDuplex: " | |
117 | currentpagedevice /Duplex known | |
118 | {(True)} {(False)} ifelse | |
119 | = flush | |
120 | " | |
121 | *End | |
122 | *CloseUI: OptionDuplex | |
ef416fc2 | 123 | </pre> |
124 | ||
db1f069b | 125 | <h3><span class='info'>Mac OS X 10.4</span><a name='OID'>OIDMainKeyword</a></h3> |
a4d04587 | 126 | |
db1f069b MS |
127 | <p class='summary'>*?OID<i>MainKeyword</i>: ".n.n.n..."<br> |
128 | *OID<i>MainKeyword</i> <i>OptionKeyword1</i>: "value"<br> | |
129 | ...<br> | |
130 | *OID<i>MainKeyword</i> <i>OptionKeywordN</i>: "value"</p> | |
09a101d6 | 131 | |
db1f069b MS |
132 | <p>The <tt>OID<i>MainKeyword</i></tt> attribute is used to define |
133 | SNMP OIDs that map to installable options. The first (query) line | |
134 | defines the OID to lookup on the network device. The second and | |
135 | subsequent attributes define a mapping from OID value to option | |
136 | keyword. Since SNMP is an IP-based network protocol, this method | |
137 | is typically only used to configure AppSocket, IPP, and LPD network | |
138 | printers.</p> | |
09a101d6 | 139 | |
140 | <p>Examples:</p> | |
141 | ||
142 | <pre class='command'> | |
db1f069b MS |
143 | *% Get the installed memory on the printer... |
144 | *?OIDInstalledMemory: ".1.3.6.1.2.1.25.2.2.0" | |
145 | *OIDInstalledMemory 16MB: "16384 KBytes" | |
146 | *OIDInstalledMemory 32MB: "32768 KBytes" | |
147 | *OIDInstalledMemory 48MB: "49152 KBytes" | |
148 | *OIDInstalledMemory 72MB: "73728 KBytes" | |
09a101d6 | 149 | </pre> |
150 | ||
3d8365b8 | 151 | |
db1f069b | 152 | <h2 class='title'><a name='PROFILES'>Color Profiles</a></h2> |
3d8365b8 | 153 | |
db1f069b MS |
154 | <p>CUPS supports three types of color profiles. The first type is |
155 | based on sRGB and is used by the standard CUPS raster filters and | |
7dfedb92 | 156 | GPL Ghostscript. The second type is based on ICC profiles and is |
db1f069b MS |
157 | used by the Quartz-based filters on MacOS X. The final type is |
158 | based on well-known colorspaces such as sRGB and Adobe RGB.</p> | |
3d8365b8 | 159 | |
db1f069b | 160 | <blockquote><b>Note:</b> |
3d8365b8 | 161 | |
db1f069b MS |
162 | <p>At this time, none of the CUPS raster |
163 | filters support ICC profiles. This will be addressed as time | |
164 | and resources permit.</p> | |
bc44d920 | 165 | |
db1f069b | 166 | </blockquote> |
bc44d920 | 167 | |
01ce6322 | 168 | <h3><span class='info'>Deprecated</span><a name='cupsColorProfile'>cupsColorProfile</a></h3> |
bc44d920 | 169 | |
db1f069b MS |
170 | <p class='summary'>*cupsColorProfile Resolution/MediaType: "density |
171 | gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"</p> | |
bc44d920 | 172 | |
db1f069b MS |
173 | <p>This string attribute specifies an sRGB-based color profile |
174 | consisting of gamma and density controls and a 3x3 CMY color | |
175 | transform matrix.</p> | |
bc44d920 | 176 | |
db1f069b MS |
177 | <p>The <i>Resolution</i> and <i>MediaType</i> values may be "-" |
178 | to act as a wildcard. Otherwise they must match one of the | |
179 | <tt>Resolution</tt> or <tt>MediaType</tt> attributes defined in | |
180 | the PPD file.</p> | |
bc44d920 | 181 | |
db1f069b MS |
182 | <p>The <i>density</i> and <i>gamma</i> values define gamma and |
183 | density adjustment function such that:</p> | |
bc44d920 | 184 | |
185 | <pre class='command'> | |
db1f069b | 186 | f(x) = density * x <sup style='font-size: 100%'>gamma</sup> |
bc44d920 | 187 | </pre> |
188 | ||
db1f069b MS |
189 | <p>The <i>m00</i> through <i>m22</i> values define a 3x3 |
190 | transformation matrix for the CMY color values. The density | |
191 | function is applied <i>after</i> the CMY transformation:</p> | |
bc44d920 | 192 | |
db1f069b MS |
193 | <pre class='command'> |
194 | | m00 m01 m02 | | |
195 | | m10 m11 m12 | | |
196 | | m20 m21 m22 | | |
197 | </pre> | |
2abf387c | 198 | |
db1f069b | 199 | <p>Examples:</p> |
2abf387c | 200 | |
db1f069b MS |
201 | <pre class='command'> |
202 | <em>*% Specify a profile for printing at 360dpi on all media types</em> | |
203 | *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 | 204 | |
db1f069b MS |
205 | <em>*% Specify a profile for printing at 720dpi on Glossy media</em> |
206 | *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 | 207 | |
db1f069b MS |
208 | <em>*% Specify a default profile for printing at all other resolutions and media types</em> |
209 | *cupsColorProfile -/-: "0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0" | |
2abf387c | 210 | </pre> |
211 | ||
01ce6322 | 212 | |
db1f069b | 213 | <h3><span class='info'>Mac OS X 10.3/CUPS 1.2</span><a name='cupsICCProfile'>cupsICCProfile</a></h3> |
3d8365b8 | 214 | |
db1f069b MS |
215 | <p class='summary'>*cupsICCProfile |
216 | ColorModel.MediaType.Resolution/Description: "filename"</p> | |
3d8365b8 | 217 | |
db1f069b MS |
218 | <p>This attribute specifies an ICC color profile that is |
219 | used to convert the document colors to the device | |
220 | colorspace. The <tt>ColorModel</tt>, <tt>MediaType</tt>, and | |
221 | <tt>Resolution</tt> keywords specify a selector for color | |
222 | profiles. If omitted, the color profile will match any option | |
223 | keyword for the corresponding main keyword.</p> | |
224 | ||
225 | <p>The <tt>Description</tt> specifies human-readable text that | |
226 | is associated with the color profile. The <tt>filename</tt> | |
227 | portion specifies the ICC color profile to use; if the filename | |
228 | is not absolute, it is loaded relative to the | |
229 | <var>/usr/share/cups/profiles</var> directory.</p> | |
3d8365b8 | 230 | |
231 | <p>Examples:</p> | |
232 | ||
233 | <pre class='command'> | |
db1f069b MS |
234 | <em>*% Specify a profile for CMYK printing at 360dpi on all media types</em> |
235 | *cupsICCProfile CMYK..360dpi/360dpi CMYK: "/Library/Printers/vendor/Profiles/foo-360-cmyk.icc" | |
3d8365b8 | 236 | |
db1f069b MS |
237 | <em>*% Specify a profile for RGB printing at 720dpi on Glossy media</em> |
238 | *cupsColorProfile RGB.Glossy.720dpi/720dpi Glossy: "/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc" | |
a4d04587 | 239 | |
db1f069b MS |
240 | <em>*% Specify a default profile for printing at all other resolutions and media types</em> |
241 | *cupsICCProfile ../Default: "/Library/Printers/vendor/Profiles/foo-default.icc" | |
242 | </pre> | |
a4d04587 | 243 | |
db1f069b | 244 | <h4>Customizing the Profile Selection Keywords</h4> |
ef416fc2 | 245 | |
db1f069b MS |
246 | <p>The <tt>MediaType</tt> and <tt>Resolution</tt> keywords can be |
247 | reassigned to different main keywords, allowing drivers to do | |
248 | color profile selection based on different parameters. The | |
249 | <tt>cupsICCQualifier2</tt> and <tt>cupsICCQualifier3</tt> | |
250 | attributes define the mapping from selector to main keyword:</p> | |
ef416fc2 | 251 | |
252 | <pre class='command'> | |
db1f069b MS |
253 | *cupsICCQualifier2: MainKeyword2 |
254 | *cupsICCQualifier3: MainKeyword3 | |
255 | </pre> | |
ef416fc2 | 256 | |
db1f069b | 257 | <p>The default mapping is as follows:</p> |
ef416fc2 | 258 | |
db1f069b MS |
259 | <pre class='command'> |
260 | *cupsICCQualifier2: MediaType | |
261 | *cupsICCQualifier3: Resolution | |
ef416fc2 | 262 | </pre> |
263 | ||
db1f069b | 264 | <h3><span class='info'>Mac OS X 10.4</span><a name='APCustom'>Custom Color Matching Support</a></h3> |
ef416fc2 | 265 | |
db1f069b MS |
266 | <p class='summary'>*<a href='#APSupportsCustomColorMatching'>APSupportsCustomColorMatching</a>: true<br> |
267 | *<a href='#APCustomColorMatchingName'>APCustomColorMatchingName</a> name/text: ""<br> | |
268 | *<a href='#APCustomColorMatchingProfile'>APCustomColorMatchingProfile</a>: profile<br> | |
269 | *<a href='#APDefaultCustomColorMatchingProfile'>APDefaultCustomColorMatchingProfile</a>: profile</p> | |
a4d04587 | 270 | |
db1f069b MS |
271 | <p>These attributes tell the Mac OS X raster filters that the printer |
272 | driver provides its own custom color matching and that generic color | |
273 | profiles should be used when generating 1-, 3-, and 4-component raster | |
274 | data as requested by the driver. The <tt>APCustomColorMatchingProfile</tt> | |
275 | and <tt>APDefaultColorMatchingProfile</tt> attributes specify alternate | |
276 | color profiles (sRGB or AdobeRGB) to use for 3-color (RGB) raster data.</p> | |
09a101d6 | 277 | |
db1f069b | 278 | <h4><span class='info'>Mac OS X 10.5</span><a name='APCustomColorMatchingName'>APCustomColorMatchingName</a></h4> |
09a101d6 | 279 | |
db1f069b | 280 | <p class='summary'>*APCustomColorMatchingName name/text: ""</p> |
ef416fc2 | 281 | |
db1f069b MS |
282 | <p>This attribute defines an alternate name for the color matching |
283 | provided by a driver in the <var>Color Matching</var> print panel. | |
284 | The default is to use the name "Vendor Matching" or its localized | |
285 | equivalent.</p> | |
286 | ||
287 | <p>Examples:</p> | |
ef416fc2 | 288 | |
289 | <pre class='command'> | |
db1f069b MS |
290 | *% Define the names for our color matching... |
291 | *APCustomColorMatchingName name/AcmeColor(tm): "" | |
292 | *fr.APCustomColorMatchingName name/La AcmeColor(tm): "" | |
ef416fc2 | 293 | </pre> |
294 | ||
db1f069b | 295 | <h4><span class='info'>Mac OS X 10.5</span><a name='APCustomColorMatchingProfile'>APCustomColorMatchingProfile</a></h4> |
bc44d920 | 296 | |
db1f069b | 297 | <p class='summary'>*APCustomColorMatchingProfile: name</p> |
a4d04587 | 298 | |
db1f069b MS |
299 | <p>This attribute defines a supported RGB color profile that can be used |
300 | when doing custom color matching. Currently only <tt>sRGB</tt> and | |
301 | <tt>AdobeRGB</tt> are supported. If not specified, RGB data will use the | |
302 | Generic RGB colorspace.</p> | |
09a101d6 | 303 | |
db1f069b | 304 | <blockquote><b>Note:</b> |
09a101d6 | 305 | |
db1f069b MS |
306 | <p>If you provide multiple <tt>APCustomColorMatchingProfile</tt> attributes, |
307 | you are responsible for providing the necessary user interface controls to | |
308 | select the profile in a <a href='#APDialogExtension'>print dialog pane</a>. | |
309 | Add the named profile to the print settings using the key | |
310 | <tt>kPMCustomColorMatchingProfileKey</tt>.</p> | |
311 | ||
312 | </blockquote> | |
09a101d6 | 313 | |
314 | <p>Examples:</p> | |
315 | ||
316 | <pre class='command'> | |
db1f069b MS |
317 | *% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB |
318 | *APSupportsCustomColorMatching: true | |
319 | *APDefaultCustomColorMatchingProfile: sRGB | |
320 | *APCustomColorMatchingProfile: sRGB | |
321 | *APCustomColorMatchingProfile: AdobeRGB | |
09a101d6 | 322 | </pre> |
323 | ||
db1f069b | 324 | <h4><span class='info'>Mac OS X 10.5</span><a name='APDefaultCustomColorMatchingProfile'>APDefaultCustomColorMatchingProfile</a></h4> |
4744bd90 | 325 | |
db1f069b | 326 | <p class='summary'>*APDefaultCustomColorMatchingProfile: name</p> |
4744bd90 | 327 | |
db1f069b MS |
328 | <p>This attribute defines the default RGB color profile that will be used |
329 | when doing custom color matching. Currently only <tt>sRGB</tt> and | |
330 | <tt>AdobeRGB</tt> are supported.</p> | |
bc44d920 | 331 | |
4744bd90 | 332 | <p>Examples:</p> |
333 | ||
334 | <pre class='command'> | |
db1f069b MS |
335 | *% Use sRGB for RGB color by default |
336 | *APSupportsCustomColorMatching: true | |
337 | *APDefaultCustomColorMatchingProfile: sRGB | |
4744bd90 | 338 | </pre> |
339 | ||
db1f069b | 340 | <h4><span class='info'>Mac OS X 10.4</span><a name='APSupportsCustomColorMatching'>APSupportsCustomColorMatching</a></h4> |
a4d04587 | 341 | |
db1f069b | 342 | <p class='summary'>*APSupportsCustomColorMatching: boolean</p> |
a4d04587 | 343 | |
db1f069b MS |
344 | <p>This attribute specifies that the driver provides its own custom color |
345 | matching. When <tt>true</tt>, the default hand-off colorspace will be | |
346 | Generic Gray, Generic RGB, or Generic CMYK depending on the number of | |
347 | components the driver requests. The <a | |
348 | href='#APDefaultCustomColorMatchingProfile'><tt>APDefaultCustomColorMatchingProfile</tt></a> | |
349 | attribute can be used to override the default 3-component (RGB) colorspace.</p> | |
a4d04587 | 350 | |
db1f069b MS |
351 | <p>The default for <tt>APSupportsCustomColorMatching</tt> is <tt>false</tt>.</p> |
352 | ||
353 | <p>Examples:</p> | |
a4d04587 | 354 | |
355 | <pre class='command'> | |
db1f069b MS |
356 | *APSupportsCustomColorMatching: true |
357 | *APDefaultCustomColorMatchingProfile: sRGB | |
a4d04587 | 358 | </pre> |
359 | ||
ef416fc2 | 360 | |
66ab9486 MS |
361 | <h2 class='title'><a name='CONSTRAINTS'>Constraints</a></h2> |
362 | ||
363 | <p>Constraints are option choices that are not allowed by the driver or | |
364 | device, for example printing 2-sided transparencies. All versions of CUPS | |
365 | support constraints defined by the legacy Adobe <tt>UIConstraints</tt> and | |
366 | <tt>NonUIConstraints</tt> attributes which support conflicts between any two | |
367 | option choices, for example:</p> | |
368 | ||
369 | <pre class='command'> | |
370 | *% Do not allow 2-sided printing on transparency media | |
371 | *UIConstraints: "*Duplex *MediaType Transparency" | |
372 | *UIConstraints: "*MediaType Transparency *Duplex" | |
373 | </pre> | |
374 | ||
375 | <p>While nearly all constraints can be expressed using these attributes, there | |
376 | are valid scenarios requiring constraints between more than two option choices. | |
377 | In addition, resolution of constraints is problematic since users and software | |
378 | have to guess how a particular constraint is best resolved.</p> | |
379 | ||
380 | <p>CUPS 1.4 and higher define two new attributes for constraints, | |
381 | <tt>cupsUIConstraints</tt> and <tt>cupsUIResolver</tt>. Each | |
382 | <tt>cupsUIConstraints</tt> attribute points to a <tt>cupsUIResolver</tt> | |
1340db2d MS |
383 | attribute which specifies alternate options that resolve the conflict condition. |
384 | The same <tt>cupsUIResolver</tt> can be used by multiple | |
385 | <tt>cupsUIConstraints</tt>.</p> | |
386 | ||
387 | <blockquote><b>Note:</b> | |
388 | ||
389 | <p>When developing PPD files that contain constraints, it is very important | |
390 | to use the <a href="man-cupstestppd.html">cupstestppd(1)</a> program to | |
391 | verify that your constraints are accurate and cannot result in unresolvable | |
392 | option selections.</p> | |
393 | ||
394 | </blockquote> | |
66ab9486 MS |
395 | |
396 | <h3><span class='info'>CUPS 1.4</span><a name='cupsUIConstraints'>cupsUIConstraints</a></h3> | |
397 | ||
398 | <p class='summary'>*cupsUIConstraints resolver: "*Keyword1 *Keyword2 ..."<br> | |
399 | *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 ..."<br> | |
400 | *cupsUIConstraints resolver: "*Keyword1 *Keyword2 OptionKeyword2 ..."<br> | |
401 | *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."<br> | |
402 | *cupsUIConstraints: "*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p> | |
403 | ||
404 | <p>Lists two or more options which conflict. The "resolver" string is a | |
405 | (possibly unique) keyword which specifies which options to change when the | |
1340db2d MS |
406 | constraint exists. When no resolver is provided, CUPS first tries the default |
407 | choice followed by testing each option choice to resolve the conflict.</p> | |
66ab9486 MS |
408 | |
409 | <p>Examples:</p> | |
410 | ||
411 | <pre class='command'> | |
412 | <em>*% Specify that 2-sided printing cannot happen on transparencies</em> | |
413 | *cupsUIConstraints transparency: "*Duplex *MediaType Transparency" | |
414 | ||
1340db2d MS |
415 | <em>*% Specify that envelope printing cannot happen from the paper trays</em> |
416 | *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1" | |
417 | *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1" | |
418 | *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2" | |
419 | *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2" | |
420 | ||
421 | <em>*% Specify an installable option constraint for the envelope feeder</em> | |
422 | *cupsUIConstraints: "*InputSlot EnvFeeder *InstalledEnvFeeder" | |
423 | ||
66ab9486 MS |
424 | <em>*% Specify that photo printing cannot happen on plain paper or transparencies at 1200dpi</em> |
425 | *cupsUIConstraints photo: "*OutputMode Photo *MediaType Plain *Resolution 1200dpi" | |
426 | *cupsUIConstraints photo: "*OutputMode Photo *MediaType Transparency *Resolution 1200dpi" | |
427 | </pre> | |
428 | ||
429 | <h3><span class='info'>CUPS 1.4</span><a name='cupsUIResolver'>cupsUIResolver</a></h3> | |
430 | ||
1340db2d | 431 | <p class='summary'>*cupsUIResolution resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."</p> |
66ab9486 | 432 | |
1340db2d | 433 | <p>Specifies two or more options to mark/select to resolve a constraint. The |
66ab9486 MS |
434 | "resolver" string identifies a particular action to take for one or more |
435 | <a href='#cupsUIConstraints'><tt>cupsUIConstraints</tt></a>. The same action | |
1340db2d MS |
436 | can be used for multiple constraints. The option keyword pairs are treated as |
437 | an ordered list of option selections to try - only the first N selections will | |
438 | be used, where N is the minimum number of selections required. Because | |
439 | <a href="api-ppd.html#cupsResolveConflicts"><code>cupsResolveConflicts()</code></a> | |
440 | will not change the most recent option selection passed to it, at least two | |
441 | options from the constraints must be listed to avoid situations where conflicts | |
442 | cannot be resolved.</p> | |
66ab9486 MS |
443 | |
444 | <p>Examples:</p> | |
445 | ||
446 | <pre class='command'> | |
1340db2d MS |
447 | <em>*% Specify the options to change for the 2-sided transparency constraint</em> |
448 | *cupsUIResolver transparency: "*Duplex None *MediaType Plain" | |
449 | ||
450 | <em>*% Specify the options to change for the envelope printing constraints. Notice | |
451 | *% that we try to change the InputSlot to either the envelope feeder or the | |
452 | *% manual feed first, then we change the page size...</em> | |
453 | *cupsUIResolver envelope: "*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter" | |
66ab9486 MS |
454 | |
455 | <em>*% Specify the options to change for the photo printing constraints</em> | |
456 | *cupsUIResolver photo: "*OutputMode Best *Resolution 600dpi" | |
457 | </pre> | |
458 | ||
459 | ||
db1f069b | 460 | <h2 class='title'><a name='I18N'>Globalized PPD Support</a></h2> |
a4d04587 | 461 | |
db1f069b MS |
462 | <p>CUPS 1.2 and higher adds support for PPD files containing multiple |
463 | languages by following the following additional rules:</p> | |
ef416fc2 | 464 | |
db1f069b | 465 | <ol> |
ef416fc2 | 466 | |
db1f069b | 467 | <li>The <tt>LanguageVersion</tt> MUST be <tt>English</tt></li> |
a4d04587 | 468 | |
db1f069b | 469 | <li>The <tt>LanguageEncoding</tt> MUST be <tt>ISOLatin1</tt></li> |
ef416fc2 | 470 | |
db1f069b MS |
471 | <li>The <tt>cupsLanguages</tt> attribute MUST be provided and |
472 | list each of the supported locales in the PPD file</li> | |
ef416fc2 | 473 | |
db1f069b MS |
474 | <li>Main and option keywords MUST NOT exceed 34 (instead of 40) |
475 | characters to allow room for the locale prefixes in translation | |
476 | attributes</li> | |
ef416fc2 | 477 | |
db1f069b | 478 | <li>The main keyword "Translation" MUST NOT be used</li> |
f7deaa1a | 479 | |
db1f069b MS |
480 | <li>Translation strings included with the main and option |
481 | keywords MUST NOT contain characters outside the ASCII | |
482 | subset of ISOLatin1 and UTF-8; developers wishing to use | |
483 | characters outside ASCII MUST provide a separate set of | |
484 | English localization attributes for the affected keywords.</li> | |
f7deaa1a | 485 | |
db1f069b MS |
486 | <li>Localizations are specified using a locale prefix of |
487 | the form "ll" or "ll_CC." where "ll" is the 2-letter ISO | |
488 | language code and "CC" is the 2-letter ISO country | |
489 | code<ul> | |
490 | <li>A generic language translation ("ll") SHOULD be provided with country-specific differences ("ll_CC") provided only as needed</li> | |
491 | <li>For historical reasons, the "zh" and "zh_CN" locales map to Simplified Chinese while the "zh_TW" locale maps to Traditional Chinese</li> | |
492 | </ul></li> | |
f7deaa1a | 493 | |
db1f069b MS |
494 | <li>Locale-specific translation strings MUST be encoded |
495 | using UTF-8.</li> | |
f7deaa1a | 496 | |
db1f069b MS |
497 | <li>Main keywords MUST be localized using one of the |
498 | following forms: | |
499 | <p><tt>*ll.Translation MainKeyword/translation | |
500 | text: ""</tt><br /> | |
501 | <tt>*ll_CC.Translation MainKeyword/translation | |
502 | text: ""</tt></p></li> | |
f7deaa1a | 503 | |
db1f069b MS |
504 | <li>Option keywords MUST be localized using one of the |
505 | following forms: | |
506 | <p><tt>*ll.MainKeyword OptionKeyword/translation | |
507 | text: ""</tt><br /> | |
508 | <tt>*ll_CC.MainKeyword OptionKeyword/translation | |
509 | text: ""</tt></p></li> | |
f7deaa1a | 510 | |
db1f069b MS |
511 | <li>Localization attributes MAY appear anywhere after the |
512 | first line of the PPD file</li> | |
f7deaa1a | 513 | |
db1f069b | 514 | </ol> |
ef416fc2 | 515 | |
db1f069b | 516 | <blockquote><b>Note:</b> |
a4d04587 | 517 | |
db1f069b MS |
518 | <p>We use a <tt>LanguageEncoding</tt> value of <tt>ISOLatin1</tt> |
519 | and limit the allowed base translation strings to ASCII to avoid | |
520 | character coding issues that would otherwise occur. In addition, | |
521 | requiring the base translation strings to be in English allows | |
522 | for easier fallback translation when no localization is provided | |
523 | in the PPD file for a given locale.</p> | |
ef416fc2 | 524 | |
db1f069b | 525 | </blockquote> |
a4d04587 | 526 | |
ef416fc2 | 527 | <p>Examples:</p> |
528 | ||
529 | <pre class='command'> | |
db1f069b MS |
530 | *LanguageVersion: English |
531 | *LanguageEncoding: ISOLatin1 | |
532 | *cupsLanguages: "de fr_CA" | |
533 | *ModelName: "Foobar Laser 9999" | |
f7deaa1a | 534 | |
db1f069b MS |
535 | <em>*% Localize ModelName for French and German</em> |
536 | *fr_CA.Translation ModelName/La Foobar Laser 9999: "" | |
537 | *de.Translation ModelName/Foobar LaserDrucken 9999: "" | |
f7deaa1a | 538 | |
db1f069b MS |
539 | *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html" |
540 | <em>*% Localize printer-state-reason for French and German</em> | |
541 | *fr_CA.cupsIPPReason com.vendor-error/Une erreur sèrieuse s'est produite: "/help/com.vendor/error.html" | |
542 | *de.cupsIPPReason com.vendor-error/Eine ernste Störung trat: "/help/com.vendor/error.html" | |
f7deaa1a | 543 | |
db1f069b | 544 | ... |
f7deaa1a | 545 | |
db1f069b MS |
546 | *OpenUI *InputSlot/Paper Source: PickOne |
547 | *OrderDependency: 10 AnySetup *InputSlot | |
548 | *DefaultInputSlot: Auto | |
549 | <em>*% Localize InputSlot for French and German</em> | |
550 | *fr_CA.Translation InputSlot/Papier source: "" | |
551 | *de.Translation InputSlot/Papiereinzug: "" | |
552 | *InputSlot Auto/Default: "<</ManualFeed false>>setpagedevice" | |
553 | <em>*% Localize InputSlot=Auto for French and German</em> | |
554 | *fr_CA.InputSlot Auto/Par Defaut: "" | |
555 | *de.InputSlot Auto/Standard: "" | |
556 | *InputSlot Manual/Manual Feed: "<</ManualFeed true>>setpagedevice" | |
557 | <em>*% Localize InputSlot=Manual for French and German</em> | |
558 | *fr_CA.InputSlot Manual/Manuel mecanisme de alimentation: "" | |
559 | *de.InputSlot Manual/Manueller Einzug: "" | |
560 | *CloseUI: *InputSlot | |
f7deaa1a | 561 | </pre> |
562 | ||
ef416fc2 | 563 | |
ef416fc2 | 564 | <h2 class='title'><a name='OPTIONS'>Custom Options</a></h2> |
565 | ||
566 | <p>CUPS supports custom options using an extension of the | |
567 | <tt>CustomPageSize</tt> and <tt>ParamCustomPageSize</tt> | |
568 | syntax:</p> | |
569 | ||
570 | <pre class='command'> | |
571 | *CustomFoo True: "command" | |
572 | *ParamCustomFoo Name1/Text 1: order type minimum maximum | |
573 | *ParamCustomFoo Name2/Text 2: order type minimum maximum | |
574 | ... | |
575 | *ParamCustomFoo NameN/Text N: order type minimum maximum | |
576 | </pre> | |
577 | ||
578 | <p>When the base option is part of the <tt>JCLSetup</tt> section, | |
579 | the "command" string contains JCL commands with "\order" | |
580 | placeholders for each numbered parameter. The CUPS API handles | |
a4d04587 | 581 | any necessary value quoting for HP-PJL commands. For example, if |
582 | the JCL command string is "@PJL SET PASSCODE=\1" and the first | |
583 | option value is "1234" then CUPS will output the string | |
584 | "@PJL SET PASSCODE=1234".</p> | |
ef416fc2 | 585 | |
586 | <p>For non-<tt>JCLSetup</tt> options, the "order" value is a | |
587 | number from 1 to N and specifies the order of values as they are | |
a4d04587 | 588 | placed on the stack before the command. For example, if the |
589 | PostScript command string is | |
590 | "<</cupsReal1 2 1 roll>>setpagedevice" and the | |
591 | option value is "2.0" then CUPS will output the string | |
592 | "2.0 <</cupsReal1 2 1 roll>>setpagedevice".</p> | |
ef416fc2 | 593 | |
594 | <p>The "type" is one of the following keywords:</p> | |
595 | ||
596 | <ul> | |
597 | ||
598 | <li><tt>curve</tt> - a real value from "minimum" to | |
599 | "maximum" representing a gamma correction curve using the | |
600 | function: f(x) = x <sup>value</sup></li> | |
601 | ||
602 | <li><tt>int</tt> - an integer value from "minimum" to | |
603 | "maximum"</li> | |
604 | ||
605 | <li><tt>invcurve</tt> - a real value from "minimum" to | |
606 | "maximum" representing a gamma correction curve using the | |
607 | function: f(x) = x <sup>1 / value</sup></li> | |
608 | ||
609 | <li><tt>passcode</tt> - a string of numbers value with a | |
610 | minimum of "minimum" numbers and a maximum of "maximum" | |
a4d04587 | 611 | numbers ("minimum" and "maximum" are numbers and passcode |
612 | strings are not displayed in the user interface)</li> | |
ef416fc2 | 613 | |
614 | <li><tt>password</tt> - a string value with a minimum of | |
615 | "minimum" characters and a maximum of "maximum" | |
a4d04587 | 616 | characters ("minimum" and "maximum" are numbers and password |
617 | strings are not displayed in the user interface)</li> | |
ef416fc2 | 618 | |
619 | <li><tt>points</tt> - a measurement value in points from | |
620 | "minimum" to "maximum"</li> | |
621 | ||
622 | <li><tt>real</tt> - a real value from "minimum" to | |
623 | "maximum"</li> | |
624 | ||
625 | <li><tt>string</tt> - a string value with a minimum of | |
626 | "minimum" characters and a maximum of "maximum" | |
a4d04587 | 627 | characters ("minimum" and "maximum" are numbers)</li> |
ef416fc2 | 628 | |
629 | </ul> | |
630 | ||
db1f069b MS |
631 | <blockquote><b>Note:</b> |
632 | ||
633 | <p>Custom options are not directly supported by the Mac OS X Print Dialog | |
634 | nor by the CUPS web interface at this time. Vendors that use custom | |
635 | options on Mac OS X must provide their own user interface via the | |
636 | <a href='#APDialogExtension'><tt>APDialogExtension</tt></a> attribute.</p> | |
637 | ||
638 | </blockquote> | |
639 | ||
ef416fc2 | 640 | <p>Examples:</p> |
641 | ||
642 | <pre class='command'> | |
643 | <em>*% Base JCL key code option</em> | |
a41f09e2 | 644 | *JCLOpenUI JCLPasscode/Key Code: PickOne |
ef416fc2 | 645 | *OrderDependency: 10 JCLSetup *JCLPasscode |
646 | *DefaultJCLPasscode: None | |
647 | *JCLPasscode None/No Code: "" | |
648 | *JCLPasscode 1111: "@PJL SET PASSCODE = 1111<0A>" | |
649 | *JCLPasscode 2222: "@PJL SET PASSCODE = 2222<0A>" | |
650 | *JCLPasscode 3333: "@PJL SET PASSCODE = 3333<0A>" | |
651 | *JCLCloseUI: *JCLPasscode | |
652 | ||
653 | <em>*% Custom JCL key code option</em> | |
654 | *CustomJCLPasscode True: "@PJL SET PASSCODE = \1<0A>" | |
655 | *ParamCustomJCLPasscode Code/Key Code: 1 passcode 4 4 | |
656 | ||
657 | ||
a4d04587 | 658 | <em>*% Base PostScript watermark option</em> |
659 | *OpenUI WatermarkText/Watermark Text: PickOne | |
660 | *OrderDependency: 10 AnySetup *WatermarkText | |
661 | *DefaultWatermarkText: None | |
662 | *WatermarkText None: "" | |
663 | *WatermarkText Draft: "<</cupsString1(Draft)>>setpagedevice" | |
664 | *CloseUI: *WatermarkText | |
665 | ||
666 | <em>*% Custom PostScript watermark option</em> | |
b86bc4cf | 667 | *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice" |
a4d04587 | 668 | *ParamCustomWatermarkText Text: 1 string 0 32 |
669 | ||
670 | ||
ef416fc2 | 671 | <em>*% Base PostScript gamma/density option</em> |
672 | *OpenUI GammaDensity/Gamma and Density: PickOne | |
673 | *OrderDependency: 10 AnySetup *GammaDensity | |
674 | *DefaultGammaDensity: Normal | |
675 | *GammaDensity Normal/Normal: "<</cupsReal1 1.0/cupsReal2 1.0>>setpagedevice" | |
676 | *GammaDensity Light/Lighter: "<</cupsReal1 0.9/cupsReal2 0.67>>setpagedevice" | |
677 | *GammaDensity Dark/Darker: "<</cupsReal1 1.1/cupsReal2 1.5>>setpagedevice" | |
a4d04587 | 678 | *CloseUI: *GammaDensity |
ef416fc2 | 679 | |
680 | <em>*% Custom PostScript gamma/density option</em> | |
b86bc4cf | 681 | *CustomGammaDensity True: "<</cupsReal1 3 -1 roll/cupsReal2 5 -1>>setpagedevice" |
ef416fc2 | 682 | *ParamCustomGammaDensity Gamma: 1 curve 0.1 10 |
683 | *ParamCustomGammaDensity Density: 2 real 0 2 | |
684 | </pre> | |
685 | ||
686 | ||
db1f069b | 687 | <h2 class='title'><a name='RASTERPS'>Writing PostScript Option Commands for Raster Drivers</a></h2> |
a4d04587 | 688 | |
db1f069b | 689 | <p>PPD files are used for both PostScript and non-PostScript printers. For CUPS raster drivers, you use a subset of the PostScript language to set page device attributes such as page size, resolution, and so forth. For example, the following code sets the page size to A4 size:</p> |
ef416fc2 | 690 | |
db1f069b MS |
691 | <pre class='command'> |
692 | *PageSize A4: "<</PageSize[595 842]>>setpagedevice" | |
693 | </pre> | |
ef416fc2 | 694 | |
db1f069b | 695 | <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 | 696 | |
db1f069b MS |
697 | <pre class='command'> |
698 | *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice" | |
699 | </pre> | |
ef416fc2 | 700 | |
db1f069b | 701 | <p>For a custom string value of "My Watermark", CUPS will produce the following PostScript code for the option:</p> |
ef416fc2 | 702 | |
703 | <pre class='command'> | |
db1f069b MS |
704 | (My Watermark) |
705 | <</cupsString1 3 -1 roll>>setpagedevice | |
ef416fc2 | 706 | </pre> |
707 | ||
db1f069b | 708 | <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 | 709 | |
710 | <pre class='command'> | |
db1f069b | 711 | <</cupsString1(My Watermark)>>setpagedevice |
ef416fc2 | 712 | </pre> |
713 | ||
db1f069b | 714 | <p>The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.</p> |
ef416fc2 | 715 | |
db1f069b | 716 | <h3>Custom Page Size Code</a></h3> |
ef416fc2 | 717 | |
db1f069b | 718 | <p>There are many possible implementations of the <tt>CustomPageSize</tt> code. For CUPS raster drivers, the following code is recommended:</p> |
ef416fc2 | 719 | |
db1f069b MS |
720 | <pre class='command'> |
721 | *ParamCustomPageSize Width: 1 points <i>min-width max-width</i> | |
722 | *ParamCustomPageSize Height: 2 points <i>min-height max-height</i> | |
723 | *ParamCustomPageSize WidthOffset: 3 points 0 0 | |
724 | *ParamCustomPageSize HeightOffset: 4 points 0 0 | |
725 | *ParamCustomPageSize Orientation: 5 int 0 0 | |
726 | *CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice" | |
ef416fc2 | 727 | </pre> |
728 | ||
db1f069b | 729 | <h3>Supported PostScript Operators</a></h3> |
ef416fc2 | 730 | |
db1f069b | 731 | <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 | 732 | |
db1f069b | 733 | <ul> |
ef416fc2 | 734 | |
db1f069b | 735 | <li><tt><<</tt> - Start a dictionary.</li> |
ef416fc2 | 736 | |
db1f069b | 737 | <li><tt>>></tt> - End a dictionary.</li> |
ef416fc2 | 738 | |
db1f069b | 739 | <li><tt>[</tt> - Start an array.</li> |
ef416fc2 | 740 | |
db1f069b | 741 | <li><tt>]</tt> - End an array.</li> |
ef416fc2 | 742 | |
db1f069b | 743 | <li><tt>copy</tt> - Copy the top N objects on the stack.</li> |
ef416fc2 | 744 | |
db1f069b | 745 | <li><tt>dup</tt> - Copy the top object on the stack.</li> |
ef416fc2 | 746 | |
db1f069b | 747 | <li><tt>index</tt> - Copy the Nth from the top object on the stack.</li> |
ef416fc2 | 748 | |
db1f069b | 749 | <li><tt>pop</tt> - Pop the top object on the stack.</li> |
ef416fc2 | 750 | |
db1f069b | 751 | <li><tt>roll</tt> - Shift the top N objects on the stack.</li> |
ef416fc2 | 752 | |
db1f069b | 753 | <li><tt>setpagedevice</tt> - Set the page header values according to the key/value dictionary on the stack.</li> |
ef416fc2 | 754 | |
db1f069b | 755 | </ul> |
ef416fc2 | 756 | |
db1f069b | 757 | <blockquote><b>Note:</b> |
ef416fc2 | 758 | |
db1f069b MS |
759 | <p><em>Never</em> use the unsupported <tt>dict</tt> or <tt>put</tt> |
760 | operators in your option code. These operators are typically used in | |
761 | option code dating back to Level 1 PostScript printers, which did not | |
762 | support the simpler <tt><<</tt> or <tt>>></tt> operators. | |
763 | If you have old option code using <tt>dict</tt> or <tt>put</tt>, you can | |
764 | rewrite it very easily to use the newer <tt><<</tt> and | |
765 | <tt>>></tt> operators instead. For example, the following code | |
766 | to set the page size:</p> | |
09a101d6 | 767 | |
768 | <style type='text/css'><!-- | |
769 | PRE B { | |
770 | background: #000000; | |
771 | color: #ffffff; | |
772 | padding: 2px 5px; | |
773 | } | |
774 | --></style> | |
775 | ||
776 | <pre class='command'> | |
777 | <b>1 dict dup</b> /PageSize [612 792] <b>put</b> setpagedevice | |
778 | </pre> | |
779 | ||
780 | <p>can be rewritten as:</p> | |
781 | ||
782 | <pre class='command'> | |
783 | <b><<</b> /PageSize [612 792] <b>>></b> setpagedevice | |
784 | </pre> | |
785 | ||
786 | </blockquote> | |
787 | ||
db1f069b | 788 | <h3>Supported Page Device Attributes</a></h3> |
b86bc4cf | 789 | |
09a101d6 | 790 | <p>Table 2 shows the supported page device attributes along with PostScript code examples.</p> |
b86bc4cf | 791 | |
792 | <div class='table'> | |
793 | <table summary='Supported Page Device Attributes'> | |
09a101d6 | 794 | <caption>Table 2: <a name='TABLE_2'>Supported Page Device Attributes</a></caption> |
b86bc4cf | 795 | <thead> |
796 | <tr> | |
797 | <th>Name(s)</th> | |
798 | <th>Type</th> | |
799 | <th>Description</th> | |
800 | <th>Example(s)</th> | |
801 | </tr> | |
802 | </thead> | |
803 | <tbody> | |
804 | <tr valign='top'> | |
805 | <td><tt>AdvanceDistance</tt></td> | |
806 | <td>Integer</td> | |
807 | <td>Specifies the number of points to advance roll media after printing.</td> | |
808 | <td><tt><</AdvanceDistance 18>>setpagedevice</tt></td> | |
809 | </tr> | |
810 | <tr valign='top'> | |
811 | <td><tt>AdvanceMedia</tt></td> | |
812 | <td>Integer</td> | |
813 | <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> | |
814 | <td><tt><</AdvanceMedia 4>>setpagedevice</tt></td> | |
815 | </tr> | |
816 | <tr valign='top'> | |
817 | <td><tt>Collate</tt></td> | |
818 | <td>Boolean</td> | |
819 | <td>Specifies whether collated copies are required.</td> | |
820 | <td><tt><</Collate true>>setpagedevice</tt></td> | |
821 | </tr> | |
822 | <tr valign='top'> | |
823 | <td><tt>CutMedia</tt></td> | |
824 | <td>Integer</td> | |
825 | <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> | |
826 | <td><tt><</CutMedia 1>>setpagedevice</tt></td> | |
827 | </tr> | |
828 | <tr valign='top'> | |
829 | <td><tt>Duplex</tt></td> | |
830 | <td>Boolean</td> | |
831 | <td>Specifies whether 2-sided printing is required.</td> | |
832 | <td><tt><</Duplex true>>setpagedevice</tt></td> | |
833 | </tr> | |
834 | <tr valign='top'> | |
835 | <td><tt>HWResolution</tt></td> | |
836 | <td>Integer Array</td> | |
837 | <td>Specifies the resolution of the page image in pixels per inch.</td> | |
838 | <td><tt><</HWResolution[1200 1200]>>setpagedevice</tt></td> | |
839 | </tr> | |
840 | <tr valign='top'> | |
841 | <td><tt>InsertSheet</tt></td> | |
842 | <td>Boolean</td> | |
843 | <td>Specifies whether to insert a blank sheet before the job.</td> | |
844 | <td><tt><</InsertSheet true>>setpagedevice</tt></td> | |
845 | </tr> | |
846 | <tr valign='top'> | |
847 | <td><tt>Jog</tt></td> | |
848 | <td>Integer</td> | |
849 | <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> | |
850 | <td><tt><</Jog 2>>setpagedevice</tt></td> | |
851 | </tr> | |
852 | <tr valign='top'> | |
853 | <td><tt>LeadingEdge</tt></td> | |
854 | <td>Integer</td> | |
855 | <td>Specifies the leading edge of the media: 0 = top, 1 = right, 2 = bottom, 3 = left.</td> | |
856 | <td><tt><</LeadingEdge 0>>setpagedevice</tt></td> | |
857 | </tr> | |
858 | <tr valign='top'> | |
859 | <td><tt>ManualFeed</tt></td> | |
860 | <td>Boolean</td> | |
861 | <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> | |
862 | <td><tt><</ManualFeed true>>setpagedevice</tt></td> | |
863 | </tr> | |
864 | <tr valign='top'> | |
865 | <td><tt>MediaClass</tt></td> | |
866 | <td>String</td> | |
867 | <td>Specifies a named media.</td> | |
868 | <td><tt><</MediaClass (Invoices)>>setpagedevice</tt></td> | |
869 | </tr> | |
870 | <tr valign='top'> | |
871 | <td><tt>MediaColor</tt></td> | |
872 | <td>String</td> | |
873 | <td>Specifies the color of the media.</td> | |
874 | <td><tt><</MediaColor >>setpagedevice</tt></td> | |
875 | </tr> | |
876 | <tr valign='top'> | |
877 | <td><tt>MediaPosition</tt></td> | |
878 | <td>Integer</td> | |
879 | <td>Specifies the tray or source of the media.</td> | |
880 | <td><tt><</MediaPosition 12>>setpagedevice</tt></td> | |
881 | </tr> | |
882 | <tr valign='top'> | |
883 | <td><tt>MediaType</tt></td> | |
884 | <td>String</td> | |
885 | <td>Specifies the general media type.</td> | |
886 | <td><tt><</MediaType (Glossy)>>setpagedevice</tt></td> | |
887 | </tr> | |
888 | <tr valign='top'> | |
889 | <td><tt>MediaWeight</tt></td> | |
890 | <td>Integer</td> | |
891 | <td>Specifies the media weight in grams per meter<sup>2</sup>.</td> | |
892 | <td><tt><</MediaWeight 100>>setpagedevice</tt></td> | |
893 | </tr> | |
894 | <tr valign='top'> | |
895 | <td><tt>MirrorPrint</tt></td> | |
896 | <td>Boolean</td> | |
897 | <td>Specifies whether to flip the output image horizontally.</td> | |
898 | <td><tt><</MirrorPrint true>>setpagedevice</tt></td> | |
899 | </tr> | |
900 | <tr valign='top'> | |
901 | <td><tt>NegativePrint</tt></td> | |
902 | <td>Boolean</td> | |
903 | <td>Specifies whether to invert the output image.</td> | |
904 | <td><tt><</NegativePrint true>>setpagedevice</tt></td> | |
905 | </tr> | |
906 | <tr valign='top'> | |
907 | <td><tt>NumCopies</tt></td> | |
908 | <td>Integer</td> | |
909 | <td>Specifies the number of copies to produce of each page.</td> | |
910 | <td><tt><</NumCopies 100>>setpagedevice</tt></td> | |
911 | </tr> | |
912 | <tr valign='top'> | |
913 | <td><tt>Orientation</tt></td> | |
914 | <td>Integer</td> | |
915 | <td>Specifies the orientation of the output: 0 = portrait, 1 = landscape rotated counter-clockwise, 2 = upside-down, 3 = landscape rotated clockwise.</td> | |
916 | <td><tt><</Orientation 3>>setpagedevice</tt></td> | |
917 | </tr> | |
918 | <tr valign='top'> | |
919 | <td><tt>OutputFaceUp</tt></td> | |
920 | <td>Boolean</td> | |
921 | <td>Specifies whether to place the media face-up in the output bin/tray.</td> | |
922 | <td><tt><</OutputFaceUp true>>setpagedevice</tt></td> | |
923 | </tr> | |
924 | <tr valign='top'> | |
925 | <td><tt>OutputType</tt></td> | |
926 | <td>String</td> | |
927 | <td>Specifies the output type name.</td> | |
928 | <td><tt><</OutputType (Photo)>>setpagedevice</tt></td> | |
929 | </tr> | |
930 | <tr valign='top'> | |
931 | <td><tt>PageSize</tt></td> | |
932 | <td>Integer/Real Array</td> | |
933 | <td>Specifies the width and length/height of the page in points.</td> | |
934 | <td><tt><</PageSize[595 842]>>setpagedevice</tt></td> | |
935 | </tr> | |
936 | <tr valign='top'> | |
937 | <td><tt>Separations</tt></td> | |
938 | <td>Boolean</td> | |
939 | <td>Specifies whether to produce color separations.</td> | |
940 | <td><tt><</Separations true>>setpagedevice</tt></td> | |
941 | </tr> | |
942 | <tr valign='top'> | |
943 | <td><tt>TraySwitch</tt></td> | |
944 | <td>Boolean</td> | |
945 | <td>Specifies whether to switch trays automatically.</td> | |
946 | <td><tt><</TraySwitch true>>setpagedevice</tt></td> | |
947 | </tr> | |
948 | <tr valign='top'> | |
949 | <td><tt>Tumble</tt></td> | |
950 | <td>Boolean</td> | |
951 | <td>Specifies whether the back sides of pages are rotated 180 degrees.</td> | |
952 | <td><tt><</Tumble true>>setpagedevice</tt></td> | |
953 | </tr> | |
954 | <tr valign='top'> | |
955 | <td><tt>cupsBorderlessScalingFactor</tt></td> | |
956 | <td>Real</td> | |
957 | <td>Specifies the amount to scale the page image dimensions.</td> | |
958 | <td><tt><</cupsBorderlessScalingFactor 1.01>>setpagedevice</tt></td> | |
959 | </tr> | |
960 | <tr valign='top'> | |
961 | <td><tt>cupsColorOrder</tt></td> | |
962 | <td>Integer</td> | |
963 | <td>Specifies the order of colors: 0 = chunked, 1 = banded, 2 = planar.</td> | |
964 | <td><tt><</cupsColorOrder 0>>setpagedevice</tt></td> | |
965 | </tr> | |
966 | <tr valign='top'> | |
967 | <td><tt>cupsColorSpace</tt></td> | |
968 | <td>Integer</td> | |
969 | <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 | 970 | <td><tt><</cupsColorSpace 1 >>setpagedevice</tt></td> |
b86bc4cf | 971 | </tr> |
972 | <tr valign='top'> | |
973 | <td><tt>cupsCompression</tt></td> | |
974 | <td>Integer</td> | |
975 | <td>Specifies a driver compression type/mode.</td> | |
976 | <td><tt><</cupsCompression 2>>setpagedevice</tt></td> | |
977 | </tr> | |
978 | <tr valign='top'> | |
979 | <td><tt>cupsInteger0<br> | |
980 | ...<br> | |
981 | cupsInteger15</tt></td> | |
982 | <td>Integer</td> | |
983 | <td>Specifies driver integer values.</td> | |
984 | <td><tt><</cupsInteger11 1234>>setpagedevice</tt></td> | |
985 | </tr> | |
986 | <tr valign='top'> | |
987 | <td><tt>cupsMarkerType</tt></td> | |
988 | <td>String</td> | |
989 | <td>Specifies the type of ink/toner to use.</td> | |
990 | <td><tt><</cupsMarkerType (Black+Color)>>setpagedevice</tt></td> | |
991 | </tr> | |
992 | <tr valign='top'> | |
993 | <td><tt>cupsMediaType</tt></td> | |
994 | <td>Integer</td> | |
995 | <td>Specifies a numeric media type.</td> | |
996 | <td><tt><</cupsMediaType 999>>setpagedevice</tt></td> | |
997 | </tr> | |
998 | <tr valign='top'> | |
999 | <td><tt>cupsPageSizeName</tt></td> | |
1000 | <td>String</td> | |
1001 | <td>Specifies the name of the page size.</td> | |
1002 | <td><tt><</cupsPageSizeName (A4.Full)>>setpagedevice</tt></td> | |
1003 | </tr> | |
1004 | <tr valign='top'> | |
1005 | <td><tt>cupsPreferredBitsPerColor</tt></td> | |
1006 | <td>Integer</td> | |
1007 | <td>Specifies the preferred number of bits per color, typically 8 or 16.</td> | |
1008 | <td><tt><</cupsPreferredBitsPerColor 16>>setpagedevice</tt></td> | |
1009 | </tr> | |
1010 | <tr valign='top'> | |
1011 | <td><tt>cupsReal0<br> | |
1012 | ...<br> | |
1013 | cupsReal15</tt></td> | |
1014 | <td>Real</td> | |
1015 | <td>Specifies driver real number values.</td> | |
1016 | <td><tt><</cupsReal15 1.234>>setpagedevice</tt></td> | |
1017 | </tr> | |
1018 | <tr valign='top'> | |
1019 | <td><tt>cupsRenderingIntent</tt></td> | |
1020 | <td>String</td> | |
1021 | <td>Specifies the color rendering intent.</td> | |
1022 | <td><tt><</cupsRenderingIntent (AbsoluteColorimetric)>>setpagedevice</tt></td> | |
1023 | </tr> | |
1024 | <tr valign='top'> | |
1025 | <td><tt>cupsRowCount</tt></td> | |
1026 | <td>Integer</td> | |
1027 | <td>Specifies the number of rows of raster data to print on each line for some drivers.</td> | |
1028 | <td><tt><</cupsRowCount 24>>setpagedevice</tt></td> | |
1029 | </tr> | |
1030 | <tr valign='top'> | |
1031 | <td><tt>cupsRowFeed</tt></td> | |
1032 | <td>Integer</td> | |
1033 | <td>Specifies the number of rows to feed between passes for some drivers.</td> | |
1034 | <td><tt><</cupsRowFeed 17>>setpagedevice</tt></td> | |
1035 | </tr> | |
1036 | <tr valign='top'> | |
1037 | <td><tt>cupsRowStep</tt></td> | |
1038 | <td>Integer</td> | |
1039 | <td>Specifies the number of lines between columns/rows on the print head for some drivers.</td> | |
1040 | <td><tt><</cupsRowStep 2>>setpagedevice</tt></td> | |
1041 | </tr> | |
1042 | <tr valign='top'> | |
1043 | <td><tt>cupsString0<br> | |
1044 | ...<br> | |
1045 | cupsString15</tt></td> | |
1046 | <td>String</td> | |
1047 | <td>Specifies driver string values.</td> | |
1048 | <td><tt><</cupsString0(String Value)>>setpagedevice</tt></td> | |
1049 | </tr> | |
1050 | </tbody> | |
1051 | </table></div> | |
1052 | ||
1053 | ||
749b1e90 MS |
1054 | <h2 class='title'><a name='MEDIA'>Media Attributes</a></h2> |
1055 | ||
1056 | <p>The CUPS media attributes allow drivers to specify alternate custom page | |
1057 | size limits based on up to two options.</p> | |
1058 | ||
1059 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMediaQualifier2'>cupsMediaQualifier2</a></h3> | |
1060 | ||
1061 | <p class='summary'>*cupsMediaQualifier2: MainKeyword</p> | |
1062 | ||
1063 | <p>This attribute specifies the second option to use for overriding the | |
1064 | custom page size limits.</p> | |
1065 | ||
1066 | <p>Example:</p> | |
1067 | ||
1068 | <pre class='command'> | |
1069 | <em>*% Specify alternate custom page size limits based on InputSlot and Quality</em> | |
1070 | *cupsMediaQualifier2: InputSlot | |
1071 | *cupsMediaQualifier3: Quality | |
1072 | *cupsMaxSize .Manual.: "1000 1000" | |
1073 | *cupsMinSize .Manual.: "100 100" | |
1074 | *cupsMinSize .Manual.Photo: "200 200" | |
1075 | *cupsMinSize ..Photo: "300 300" | |
1076 | </pre> | |
1077 | ||
1078 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMediaQualifier3'>cupsMediaQualifier3</a></h3> | |
1079 | ||
1080 | <p class='summary'>*cupsMediaQualifier3: MainKeyword</p> | |
1081 | ||
1082 | <p>This attribute specifies the third option to use for overriding the | |
1083 | custom page size limits.</p> | |
1084 | ||
1085 | <p>Example:</p> | |
1086 | ||
1087 | <pre class='command'> | |
1088 | <em>*% Specify alternate custom page size limits based on InputSlot and Quality</em> | |
1089 | *cupsMediaQualifier2: InputSlot | |
1090 | *cupsMediaQualifier3: Quality | |
1091 | *cupsMaxSize .Manual.: "1000 1000" | |
1092 | *cupsMinSize .Manual.: "100 100" | |
1093 | *cupsMinSize .Manual.Photo: "200 200" | |
1094 | *cupsMinSize ..Photo: "300 300" | |
1095 | </pre> | |
1096 | ||
1097 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMinSize'>cupsMinSize</a></h3> | |
1098 | ||
1099 | <p class='summary'>*cupsMinSize .Qualifier2.Qualifier3: "width length"<br> | |
1100 | *cupsMinSize .Qualifier2.: "width length"<br> | |
1101 | *cupsMinSize ..Qualifier3: "width length"</p> | |
1102 | ||
1103 | <p>This attribute specifies alternate minimum custom page sizes in points. | |
1104 | The <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a> and | |
1105 | <a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a> attributes | |
1106 | are used to identify options to use for matching.</p> | |
1107 | ||
1108 | <p>Example:</p> | |
1109 | ||
1110 | <pre class='command'> | |
1111 | <em>*% Specify alternate custom page size limits based on InputSlot and Quality</em> | |
1112 | *cupsMediaQualifier2: InputSlot | |
1113 | *cupsMediaQualifier3: Quality | |
1114 | *cupsMaxSize .Manual.: "1000 1000" | |
1115 | *cupsMinSize .Manual.: "100 100" | |
1116 | *cupsMinSize .Manual.Photo: "200 200" | |
1117 | *cupsMinSize ..Photo: "300 300" | |
1118 | </pre> | |
1119 | ||
1120 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMaxSize'>cupsMaxSize</a></h3> | |
1121 | ||
1122 | <p class='summary'>*cupsMaxSize .Qualifier2.Qualifier3: "width length"<br> | |
1123 | *cupsMaxSize .Qualifier2.: "width length"<br> | |
1124 | *cupsMaxSize ..Qualifier3: "width length"</p> | |
1125 | ||
1126 | <p>This attribute specifies alternate maximum custom page sizes in points. | |
1127 | The <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a> and | |
1128 | <a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a> attributes | |
1129 | are used to identify options to use for matching.</p> | |
1130 | ||
1131 | <p>Example:</p> | |
1132 | ||
1133 | <pre class='command'> | |
1134 | <em>*% Specify alternate custom page size limits based on InputSlot and Quality</em> | |
1135 | *cupsMediaQualifier2: InputSlot | |
1136 | *cupsMediaQualifier3: Quality | |
1137 | *cupsMaxSize .Manual.: "1000 1000" | |
1138 | *cupsMinSize .Manual.: "100 100" | |
1139 | *cupsMinSize .Manual.Photo: "200 200" | |
1140 | *cupsMinSize ..Photo: "300 300" | |
1141 | </pre> | |
1142 | ||
1143 | ||
db1f069b MS |
1144 | <h2 class='title'><a name='ATTRIBUTES'>General Attributes</a></h2> |
1145 | ||
1146 | <h3><span class='info'>CUPS 1.3</span><a name='cupsBackSide'>cupsBackSide</a></h3> | |
1147 | ||
1148 | <p class='summary'>*cupsBackSide: keyword</p> | |
1149 | ||
1150 | <p>This attribute requests special handling of the back side of pages | |
1151 | when doing duplexed (2-sided) output. <a href='#TABLE_1'>Table 1</a> | |
1152 | shows the supported keyword values for this attribute and their effect | |
1153 | on the raster data sent to your driver. For example, when <tt>cupsBackSide</tt> | |
1154 | is <code>Rotated</code> and <tt>Tumble</tt> is <tt>false</tt>, your driver | |
1155 | will receive print data starting at the bottom right corner of the page, with | |
1156 | each line going right-to-left instead of left-to-right. The default value is | |
1157 | <code>Normal</code>.</p> | |
1158 | ||
1159 | <blockquote><b>Note:</b> | |
1160 | ||
1161 | <p><tt>cupsBackSide</tt> replaces the older <tt>cupsFlipDuplex</tt> | |
1162 | attribute - if <tt>cupsBackSide</tt> is specified, <tt>cupsFlipDuplex</tt> | |
1163 | will be ignored.</p> | |
1164 | ||
1165 | </blockquote> | |
1166 | ||
1167 | <div class='table'> | |
1168 | <table width='80%' summary='Back Side Raster Coordinate System'> | |
1169 | <caption>Table 1: <a name='TABLE_1'>Back Side Raster Coordinate System</a></caption> | |
1170 | <thead> | |
1171 | <tr> | |
1172 | <th>cupsBackSide</th> | |
1173 | <th>Tumble Value</th> | |
1174 | <th>Image Presentation</th> | |
1175 | </tr> | |
1176 | </thead> | |
1177 | <tbody> | |
1178 | <tr> | |
1179 | <td><code>Normal</code></td> | |
1180 | <td><code>false</code></td> | |
1181 | <td>Left-to-right, top-to-bottom</td> | |
1182 | </tr> | |
1183 | <tr> | |
1184 | <td><code>Normal</code></td> | |
1185 | <td><code>true</code></td> | |
1186 | <td>Left-to-right, top-to-bottom</td> | |
1187 | </tr> | |
1188 | <tr> | |
1189 | <td><code>ManualTumble</code></td> | |
1190 | <td><code>false</code></td> | |
1191 | <td>Left-to-right, top-to-bottom</td> | |
1192 | </tr> | |
1193 | <tr> | |
1194 | <td><code>ManualTumble</code></td> | |
1195 | <td><code>true</code></td> | |
1196 | <td>Right-to-left, bottom-to-top</td> | |
1197 | </tr> | |
1198 | <tr> | |
1199 | <td><code>Rotated</code></td> | |
1200 | <td><code>false</code></td> | |
1201 | <td>Right-to-left, bottom-to-top</td> | |
1202 | </tr> | |
1203 | <tr> | |
1204 | <td><code>Rotated</code></td> | |
1205 | <td><code>true</code></td> | |
1206 | <td>Right-to-left, top-to-bottom</td> | |
1207 | </tr> | |
1208 | <tr> | |
1209 | <td><code>Flipped</code> *</td> | |
1210 | <td><code>false</code></td> | |
1211 | <td>Left-to-right, bottom-to-top</td> | |
1212 | </tr> | |
1213 | <tr> | |
1214 | <td><code>Flipped</code> *</td> | |
1215 | <td><code>true</code></td> | |
1216 | <td>Right-to-left, top-to-bottom</td> | |
1217 | </tr> | |
1218 | </tbody> | |
1219 | </table> | |
1220 | </div> | |
1221 | ||
1222 | <p><em>* - Not supported in Mac OS X 10.5.x and earlier</em></p> | |
1223 | ||
1224 | <div class='figure'><table summary='Back side images'> | |
1225 | <caption>Figure 1: Back side images</caption> | |
1226 | <tr><td><img src='../images/raster.png' width='624' height='448' alt='Back side images'></td></tr> | |
1227 | </table></div> | |
1228 | ||
1229 | <p>Examples:</p> | |
1230 | ||
1231 | <pre class='command'> | |
1232 | <em>*% Flip the page image for the back side of duplexed output</em> | |
1233 | *cupsBackSide: Flipped | |
1234 | ||
1235 | <em>*% Rotate the page image for the back side of duplexed output</em> | |
1236 | *cupsBackSide: Rotated | |
1237 | </pre> | |
1238 | ||
1239 | <p>Also see the related <a href='#APDuplexRequiresFlippedMargin'><tt>APDuplexRequiresFlippedMargin</tt></a> | |
1240 | attribute.</p> | |
1241 | ||
01ce6322 MS |
1242 | <h3><span class='info'>CUPS 1.4</span><a name='cupsCommands'>cupsCommands</a></h3> |
1243 | ||
1244 | <p class='summary'>*cupsCommands: "name name2 ... nameN"</p> | |
1245 | ||
1246 | <p>This string attribute specifies the commands that are supported by the | |
1247 | CUPS command file filter for this device. The command names are separated | |
1248 | by whitespace.</p> | |
1249 | ||
1250 | <p>Example:</p> | |
1251 | ||
1252 | <pre class='command'> | |
1253 | <em>*% Specify the list of commands we support</em> | |
1254 | *cupsCommands: "AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo" | |
1255 | </pre> | |
1256 | ||
1257 | ||
db1f069b MS |
1258 | <h3><span class='info'>CUPS 1.3</span><a name='cupsEvenDuplex'>cupsEvenDuplex</a></h3> |
1259 | ||
1260 | <p class='summary'>*cupsEvenDuplex: boolean</p> | |
1261 | ||
1262 | <p>This boolean attribute notifies the RIP filters that the | |
1263 | destination printer requires an even number of pages when 2-sided | |
1264 | printing is selected. The default value is <code>false</code>.</p> | |
1265 | ||
1266 | <p>Example:</p> | |
1267 | ||
1268 | <pre class='command'> | |
1269 | <em>*% Always send an even number of pages when duplexing</em> | |
1270 | *cupsEvenDuplex: true | |
1271 | </pre> | |
1272 | ||
1273 | <h3><a name='cupsFax'>cupsFax</a></h3> | |
1274 | ||
1275 | <p class='summary'>*cupsFax: boolean</p> | |
1276 | ||
1277 | <p>This boolean attribute specifies whether the PPD defines a facsimile device. The default is <tt>false</tt>.</p> | |
1278 | ||
1279 | <p>Examples:</p> | |
1280 | ||
1281 | <pre class='command'> | |
1282 | *cupsFax: true | |
1283 | </pre> | |
1284 | ||
1285 | <h3><a name='cupsFilter'>cupsFilter</a></h3> | |
1286 | ||
1287 | <p class='summary'>*cupsFilter: "source/type cost program"</p> | |
1288 | ||
1289 | <p>This string attribute provides a conversion rule from the | |
1290 | given source type to the printer's native format using the | |
1291 | filter "program". If a printer supports the source type directly, | |
1292 | the special filter program "-" may be specified.</p> | |
1293 | ||
1294 | <p>Examples:</p> | |
1295 | ||
1296 | <pre class='command'> | |
1297 | <em>*% Standard raster printer driver filter</em> | |
1298 | *cupsFilter: "application/vnd.cups-raster 100 rastertofoo" | |
1299 | ||
1300 | <em>*% Plain text filter</em> | |
1301 | *cupsFilter: "text/plain 10 texttofoo" | |
1302 | ||
1303 | <em>*% Pass-through filter for PostScript printers</em> | |
1304 | *cupsFilter: "application/vnd.cups-postscript 0 -" | |
1305 | </pre> | |
1306 | ||
1307 | <h3><span class='info'>Deprecated</span><a name='cupsFlipDuplex'>cupsFlipDuplex</a></h3> | |
1308 | ||
1309 | <p class='summary'>*cupsFlipDuplex: boolean</p> | |
1310 | ||
1311 | <p>Due to implementation differences between Mac OS X and Ghostscript, | |
1312 | the <tt>cupsFlipDuplex</tt> attribute is deprecated. Instead, use | |
1313 | the <a href='#cupsBackSide'><tt>cupsBackSide</tt></a> attribute to specify | |
1314 | the coordinate system (pixel layout) of the page data on the back side of | |
1315 | duplex pages.</p> | |
1316 | ||
1317 | <p>The value <code>true</code> maps to a <tt>cupsBackSide</tt> value | |
1318 | of <code>Rotated</code> on Mac OS X and <code>Flipped</code> with | |
1319 | Ghostscript.</p> | |
1320 | ||
1321 | <p>The default value is <code>false</code>.</p> | |
1322 | ||
1323 | <blockquote><b>Note:</b> | |
1324 | ||
1325 | <p>Mac OS X drivers that previously used | |
1326 | <tt>cupsFlipDuplex</tt> may wish to provide both the old and | |
1327 | new attributes for maximum compatibility, for example:</p> | |
1328 | ||
1329 | <pre class='command'> | |
1330 | *cupsBackSide: Rotated | |
1331 | *cupsFlipDuplex: true | |
1332 | </pre> | |
1333 | ||
1334 | <p>Similarly, drivers written for other operating systems using | |
1335 | Ghostscript can use:</p> | |
1336 | ||
1337 | <pre class='command'> | |
1338 | *cupsBackSide: Flipped | |
1339 | *cupsFlipDuplex: true | |
1340 | </pre></blockquote> | |
1341 | ||
1342 | <h3><span class='info'>CUPS 1.3</span><a name='cupsIPPFinishings'>cupsIPPFinishings</a></h3> | |
1343 | ||
1344 | <p class='summary'>*cupsIPPFinishings number/text: "*Option Choice ..."</p> | |
1345 | ||
1346 | <p>This attribute defines a mapping from IPP <code>finishings</code> | |
1347 | values to PPD options and choices.</p> | |
1348 | ||
1349 | <p>Examples:</p> | |
1350 | ||
1351 | <pre class='command'> | |
1352 | *cupsIPPFinishings 4/staple: "*StapleLocation SinglePortrait" | |
1353 | *cupsIPPFinishings 5/punch: "*PunchMedia Yes *PunchLocation LeftSide" | |
1354 | *cupsIPPFinishings 20/staple-top-left: "*StapleLocation SinglePortrait" | |
1355 | *cupsIPPFinishings 21/staple-bottom-left: "*StapleLocation SingleLandscape" | |
1356 | </pre> | |
1357 | ||
1358 | <h3><span class='info'>CUPS 1.3</span><a name='cupsIPPReason'>cupsIPPReason</a></h3> | |
1359 | ||
1360 | <p class='summary'>*cupsIPPReason reason/Reason Text: "optional URIs"</p> | |
1361 | ||
1362 | <p>This optional attribute maps custom | |
1363 | <code>printer-state-reasons</code> keywords that are generated by | |
1364 | the driver to human readable text. The optional URIs string | |
1365 | contains zero or more URIs separated by a newline. Each URI can | |
1366 | be a CUPS server absolute path to a help file under the | |
1367 | scheduler's <code>DocumentRoot</code> directory, a full HTTP URL | |
1368 | ("http://www.domain.com/path/to/help/page.html"), or any other | |
1369 | valid URI which directs the user at additional information | |
1370 | concerning the condition that is being reported.</p> | |
1371 | ||
1372 | <p>Since the reason text is limited to 80 characters by the PPD specification, | |
1373 | longer text strings can be included by URI-encoding the text with the "text" | |
1374 | scheme, for example "text:some%20text". Multiple <code>text</code> URIs are | |
1375 | combined (with spaces between each URI) by the <tt>ppdLocalizeIPPReason</tt> | |
1376 | into a single string that can be displayed to the user.</p> | |
1377 | ||
1378 | <p>Examples:</p> | |
1379 | ||
1380 | <pre class='command'> | |
1381 | <em>*% Map com.vendor-error to text but no page</em> | |
1382 | *cupsIPPReason com.vendor-error/A serious error occurred: "" | |
1383 | ||
1384 | <em>*% Map com.vendor-error to more than 80 characters of text but no page</em> | |
1385 | *cupsIPPReason com.vendor-error/A serious error occurred: "text:Now%20is%20the%20time | |
1386 | text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country." | |
1387 | ||
1388 | <em>*% Map com.vendor-error to text and a local page</em> | |
1389 | *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html" | |
1390 | ||
1391 | <em>*% Map com.vendor-error to text and a remote page</em> | |
1392 | *cupsIPPReason com.vendor-error/A serious error occurred: "http://www.vendor.com/help" | |
1393 | ||
1394 | <em>*% Map com.vendor-error to text and a local, Apple help book, and remote page</em> | |
839a51c8 | 1395 | *APHelpBook: "file:///Library/Printers/vendor/Help.bundle" |
db1f069b MS |
1396 | *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html |
1397 | help:anchor='com.vendor-error'%20bookID=Vendor%20Help | |
1398 | http://www.vendor.com/help" | |
1399 | *End | |
1400 | </pre> | |
1401 | ||
1402 | <h3><span class='info'>CUPS 1.2</span><a name='cupsLanguages'>cupsLanguages</a></h3> | |
1403 | ||
1404 | <p class='summary'>*cupsLanguages: "locale list"</p> | |
1405 | ||
1406 | <p>This attribute describes which language localizations are | |
1407 | included in the PPD. The "locale list" string is a space-delimited | |
1408 | list of locale names ("en", "en_US", "fr_CA", etc.)</p> | |
1409 | ||
1410 | <p>Example:</p> | |
1411 | ||
1412 | <pre class='command'> | |
1413 | <em>*% Specify Canadian, UK, and US English, and Candian and French French</em> | |
5a738aea | 1414 | *cupsLanguages: "en_CA en_UK en_US fr_CA fr_FR" |
db1f069b MS |
1415 | </pre> |
1416 | ||
1417 | <h3><a name='cupsManualCopies'>cupsManualCopies</a></h3> | |
1418 | ||
1419 | <p class='summary'>*cupsManualCopies: boolean</p> | |
1420 | ||
1421 | <p>This boolean attribute notifies the RIP filters that the | |
1422 | destination printer does not support copy generation in | |
1423 | hardware. The default value is <code>false</code>.</p> | |
1424 | ||
1425 | <p>Example:</p> | |
1426 | ||
1427 | <pre class='command'> | |
1428 | <em>*% Tell the RIP filters to generate the copies for us</em> | |
1429 | *cupsManualCopies: true | |
1430 | </pre> | |
1431 | ||
634763e8 MS |
1432 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMarkerName'>cupsMarkerName</a></h3> |
1433 | ||
1434 | <p class='summary'>*cupsMarkerName/Name Text: ""</p> | |
1435 | ||
1436 | <p>This optional attribute maps <code>marker-names</code> strings that are | |
1437 | generated by the driver to human readable text.</p> | |
1438 | ||
1439 | <p>Examples:</p> | |
1440 | ||
1441 | <pre class='command'> | |
1442 | <em>*% Map cyanToner to "Cyan Toner"</em> | |
1443 | *cupsMarkerName cyanToner/Cyan Toner: "" | |
1444 | </pre> | |
1445 | ||
75bd9771 MS |
1446 | <h3><span class='info'>CUPS 1.4</span><a name='cupsMarkerNotice'>cupsMarkerNotice</a></h3> |
1447 | ||
1448 | <p class='summary'>*cupsMarkerNotice: "disclaimer text"</p> | |
1449 | ||
1450 | <p>This optional attribute provides disclaimer text for the supply level | |
1451 | information provided by the driver, typically something like "supply levels | |
1452 | are approximate".</p> | |
1453 | ||
1454 | <p>Examples:</p> | |
1455 | ||
1456 | <pre class='command'> | |
1457 | *cupsMarkerNotice: "Supply levels are approximate." | |
1458 | </pre> | |
1459 | ||
db1f069b MS |
1460 | <h3><a name='cupsModelNumber'>cupsModelNumber</a></h3> |
1461 | ||
1462 | <p class='summary'>*cupsModelNumber: number</p> | |
1463 | ||
1464 | <p>This integer attribute specifies a printer-specific model | |
1465 | number. This number can be used by a filter program to adjust | |
1466 | the output for a specific model of printer.</p> | |
1467 | ||
1468 | <p>Example:</p> | |
1469 | ||
1470 | <pre class='command'> | |
1471 | <em>*% Specify an integer for a driver-specific model number</em> | |
1472 | *cupsModelNumber: 1234 | |
1473 | </pre> | |
1474 | ||
db1f069b MS |
1475 | <h3><span class='info'>CUPS 1.3</span><a name='cupsPJLCharset'>cupsPJLCharset</a></h3> |
1476 | ||
1477 | <p class='summary'>*cupsPJLCharset: "ISO character set name"</p> | |
1478 | ||
1479 | <p>This string attribute specifies the character set that is used | |
1480 | for strings in PJL commands. If not specified, US-ASCII is | |
1481 | assumed.</p> | |
1482 | ||
1483 | <p>Example:</p> | |
1484 | ||
1485 | <pre class='command'> | |
1486 | <em>*% Specify UTF-8 is used in PJL strings</em> | |
1487 | *cupsPJLCharset: "UTF-8" | |
1488 | </pre> | |
1489 | ||
634763e8 MS |
1490 | <h3><span class='info'>CUPS 1.4</span><a name='cupsPJLDisplay'>cupsPJLDisplay</a></h3> |
1491 | ||
1492 | <p class='summary'>*cupsPJLDisplay: "what"</p> | |
1493 | ||
1494 | <p>This optional attribute specifies which command is used to display the | |
1495 | job ID, name, and user on the printer's control panel. "What" is either "none" | |
1496 | to disable this functionality, "job" to use "@PJL JOB DISPLAY", or "rdymsg" | |
1497 | to use "@PJL RDYMSG DISPLAY". The default is "job".</p> | |
1498 | ||
1499 | <p>Examples:</p> | |
1500 | ||
1501 | <pre class='command'> | |
1502 | <em>*% Display job information using @PJL SET RDYMSG DISPLAY="foo"</em> | |
1503 | *cupsPJLDisplay: "rdymsg" | |
1504 | ||
1505 | <em>*% Display job information display</em> | |
1506 | *cupsPJLDisplay: "none" | |
1507 | </pre> | |
db1f069b MS |
1508 | |
1509 | <h3><span class='info'>CUPS 1.2</span><a name='cupsPortMonitor'>cupsPortMonitor</a></h3> | |
1510 | ||
1511 | <p class='summary'>*cupsPortMonitor urischeme/Descriptive Text: "port monitor"</p> | |
1512 | ||
1513 | <p>This string attribute specifies printer-specific "port | |
1514 | monitor" filters that may be used with the printer. The CUPS | |
1515 | scheduler also looks for the <tt>Protocols</tt> attribute to see | |
1516 | if the <tt>BCP</tt> or <tt>TBCP</tt> protocols are supported. If | |
1517 | so, the corresponding port monitor ("bcp" and "tbcp", | |
1518 | respectively) is listed in the printer's | |
1519 | <tt>port-monitor-supported</tt> attribute.</p> | |
1520 | ||
1521 | <p>The "urischeme" portion of the attribute specifies the URI scheme | |
1522 | that this port monitor should be used for. Typically this is used to | |
1523 | pre-select a particular port monitor for each type of connection that | |
1524 | is supported by the printer. The "port monitor" string can be "none" | |
1525 | to disable the port monitor for the given URI scheme.</p> | |
1526 | ||
1527 | <p>Examples:</p> | |
1528 | ||
1529 | <pre class='command'> | |
1530 | <em>*% Specify a PostScript printer that supports the TBCP protocol</em> | |
1531 | *Protocols: TBCP PJL | |
1532 | ||
1533 | <em>*% Specify that TBCP should be used for socket connections but not USB</em> | |
1534 | *cupsPortMonitor socket/AppSocket Printing: "tbcp" | |
1535 | *cupsPortMonitor usb/USB Printing: "none" | |
1536 | ||
1537 | <em>*% Specify a printer-specific port monitor for an Epson USB printer</em> | |
1538 | *cupsPortMonitor usb/USB Status Monitor: "epson-usb" | |
1539 | </pre> | |
1540 | ||
1541 | <h3><span class='info'>CUPS 1.3</span><a name='cupsPreFilter'>cupsPreFilter</a></h3> | |
1542 | ||
1543 | <p class='summary'>*cupsPreFilter: "source/type cost program"</p> | |
1544 | ||
1545 | <p>This string attribute provides a pre-filter rule. The pre-filter | |
1546 | program will be inserted in the conversion chain immediately | |
1547 | before the filter that accepts the given MIME type.</p> | |
1548 | ||
1549 | <p>Examples:</p> | |
1550 | ||
1551 | <pre class='command'> | |
1552 | <em>*% PDF pre-filter</em> | |
1553 | *cupsPreFilter: "application/pdf 100 mypdfprefilter" | |
1554 | ||
1555 | <em>*% PNG pre-filter</em> | |
1556 | *cupsPreFilter: "image/png 0 mypngprefilter" | |
1557 | </pre> | |
1558 | ||
58dc1933 MS |
1559 | <h3><span class='info'>CUPS 1.4</span><a name='cupsSNMPSupplies'>cupsSNMPSupplies</a></h3> |
1560 | ||
1561 | <p class='summary'>*cupsSNMPSupplies: boolean</p> | |
1562 | ||
1563 | <p>This attribute tells the standard network backends whether they should query | |
1564 | the standard SNMP Printer MIB OIDs for supply levels. The default value is | |
1565 | <code>True</code>. | |
1566 | ||
1567 | <p>Example:</p> | |
1568 | ||
1569 | <pre class='command'> | |
1570 | <em>*% Do not use SNMP queries to report supply levels</em> | |
1571 | *cupsSNMPSupplies: False | |
1572 | </pre> | |
1573 | ||
db1f069b MS |
1574 | <h3><a name='cupsVersion'>cupsVersion</a></h3> |
1575 | ||
1576 | <p class='summary'>*cupsVersion: major.minor</p> | |
1577 | ||
1578 | <p>This required attribute describes which version of the CUPS | |
1579 | PPD file extensions was used. Currently it must be the string | |
1580 | "1.0", "1.1", "1.2", or "1.3".</p> | |
1581 | ||
1582 | <p>Example:</p> | |
1583 | ||
1584 | <pre class='command'> | |
1585 | <em>*% Specify a CUPS 1.2 driver</em> | |
1586 | *cupsVersion: "1.2" | |
1587 | </pre> | |
1588 | ||
1589 | ||
1590 | <h2 class='title'><a name='MACOSX'>Mac OS X Attributes</a></h2> | |
1591 | ||
db1f069b MS |
1592 | <h3><span class='info'>Mac OS X 10.3</span><a name='APDialogExtension'>APDialogExtension</a></h3> |
1593 | ||
1594 | <p class='summary'>*APDialogExtension: "/Library/Printers/vendor/filename.plugin"</p> | |
1595 | ||
1596 | <p>This attribute defines additional option panes that are displayed in the | |
1597 | print dialog. Each attribute adds one or more option panes. See the "OutputBinsPDE" | |
1598 | example and <a href='http://developer.apple.com/qa/qa2004/qa1352.html'>Apple | |
1599 | Technical Q&A QA1352</a> for information on writing your own print dialog | |
1600 | plug-ins.</p> | |
1601 | ||
1602 | <blockquote><b>Note:</b> | |
1603 | ||
1604 | <p>Starting with Mac OS X 10.5, each plug-in must be compiled "4-way fat" | |
1605 | (32-bit and 64-bit for both PowerPC and Intel) with garbage collection enabled | |
1606 | in order to be usable with all applications.</p> | |
1607 | ||
1608 | </blockquote> | |
1609 | ||
1610 | <p>Examples:</p> | |
1611 | ||
1612 | <pre class='command'> | |
1613 | *% Add two panes for finishing and driver options | |
1614 | *APDialogExtension: "/Library/Printers/vendor/finishing.plugin" | |
1615 | *APDialogExtension: "/Library/Printers/vendor/options.plugin" | |
1616 | </pre> | |
1617 | ||
1618 | <h3><span class='info'>Mac OS X 10.4</span><a name='APDuplexRequiresFlippedMargin'>APDuplexRequiresFlippedMargin</a></h3> | |
1619 | ||
1620 | <p class='summary'>*APDuplexRequiresFlippedMargin: boolean</p> | |
1621 | ||
1622 | <p>This boolean attribute notifies the RIP filters that the | |
1623 | destination printer requires the top and bottom margins of the | |
1624 | <tt>ImageableArea</tt> to be swapped for the back page. The | |
1625 | default is <tt>true</tt> when <tt>cupsBackSide</tt> is <tt>Flipped</tt> | |
1626 | and <tt>false</tt> otherwise. <a href='#TABLE_2'>Table 2</a> shows how | |
1627 | <tt>APDuplexRequiresFlippedMargin</tt> interacts with <tt>cupsBackSide</tt> | |
1628 | and the <tt>Tumble</tt> page attribute.</p> | |
1629 | ||
1630 | <div class='table'> | |
1631 | <table width='80%' summary='Margin Flipping Modes'> | |
1632 | <caption>Table 2: <a name='TABLE_2'>Margin Flipping Modes</a></caption> | |
1633 | <thead> | |
1634 | <tr> | |
1635 | <th>APDuplexRequiresFlippedMargin</th> | |
1636 | <th>cupsBackSide</th> | |
1637 | <th>Tumble Value</th> | |
1638 | <th>Margins</th> | |
1639 | </tr> | |
1640 | </thead> | |
1641 | <tbody> | |
1642 | <tr> | |
1643 | <td>false</td> | |
1644 | <td>any</td> | |
1645 | <td>any</td> | |
1646 | <td>Normal</td> | |
1647 | </tr> | |
1648 | <tr> | |
1649 | <td>any</td> | |
1650 | <td>Normal</td> | |
1651 | <td>any</td> | |
1652 | <td>Normal</td> | |
1653 | </tr> | |
1654 | <tr> | |
1655 | <td>true</td> | |
1656 | <td>ManualDuplex</td> | |
1657 | <td>false</td> | |
1658 | <td>Normal</td> | |
1659 | </tr> | |
1660 | <tr> | |
1661 | <td>true</td> | |
1662 | <td>ManualDuplex</td> | |
1663 | <td>true</td> | |
1664 | <td>Flipped</td> | |
1665 | </tr> | |
1666 | <tr> | |
1667 | <td>true</td> | |
1668 | <td>Rotated</td> | |
1669 | <td>false</td> | |
1670 | <td>Flipped</td> | |
1671 | </tr> | |
1672 | <tr> | |
1673 | <td>true</td> | |
1674 | <td>Rotated</td> | |
1675 | <td>true</td> | |
1676 | <td>Normal</td> | |
1677 | </tr> | |
1678 | <tr> | |
1679 | <td>true or unspecified</td> | |
1680 | <td>Flipped</td> | |
1681 | <td>any</td> | |
1682 | <td>Flipped</td> | |
1683 | </tr> | |
1684 | </tbody> | |
1685 | </table></div> | |
1686 | ||
1687 | <p>Example:</p> | |
1688 | ||
1689 | <pre class='command'> | |
1690 | <em>*% Rotate the back side images</em> | |
1691 | *cupsBackSide: Rotated | |
1692 | ||
1693 | <em>*% Don't swap the top and bottom margins for the back side</em> | |
1694 | *APDuplexRequiresFlippedMargin: false | |
1695 | </pre> | |
1696 | ||
1697 | <p>Also see the related <a href='#cupsBackSide'><tt>cupsBackSide</tt></a> | |
1698 | attribute.</p> | |
1699 | ||
64a69576 MS |
1700 | <h3><a name='APHelpBook'>APHelpBook</a></h3> |
1701 | ||
839a51c8 | 1702 | <p class='summary'>*APHelpBook: "bundle URL"</p> |
64a69576 | 1703 | |
839a51c8 | 1704 | <p>This string attribute specifies the Apple help book bundle to use when |
64a69576 MS |
1705 | looking up IPP reason codes for this printer driver. The |
1706 | <a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> attribute maps | |
1707 | "help" URIs to this file.</p> | |
1708 | ||
1709 | <p>Example:</p> | |
1710 | ||
1711 | <pre class='command'> | |
839a51c8 | 1712 | *APHelpBook: "file:///Library/Printers/vendor/Help.bundle" |
64a69576 MS |
1713 | </pre> |
1714 | ||
c5571a1d MS |
1715 | <h3><span class='info'>Mac OS X 10.6</span><a name='APICADriver'>APICADriver</a></h3> |
1716 | ||
1717 | <p class='summary'>*APICADriver: boolean</p> | |
1718 | ||
1719 | <p>This attribute specifies whether the device has a matching Image Capture | |
1720 | Architecture (ICA) driver for scanning. The default is <tt>False</tt>.</p> | |
1721 | ||
1722 | <p>Examples:</p> | |
1723 | ||
1724 | <pre class='command'> | |
1725 | *APICADriver: True | |
1726 | *APScanAppBundleID: "com.apple.ImageCaptureApp" | |
1727 | </pre> | |
1728 | ||
db1f069b MS |
1729 | <h3><span class='info'>Mac OS X 10.3</span><a name='APPrinterIconPath'>APPrinterIconPath</a></h3> |
1730 | ||
e4572d57 | 1731 | <p class='summary'>*APPrinterIconPath: "/Library/Printers/vendor/filename.icns"</p> |
db1f069b MS |
1732 | |
1733 | <p>This attribute defines the location of a printer icon file to use when | |
e4572d57 | 1734 | displaying the printer. The file must be in the Apple icon format.</p> |
db1f069b MS |
1735 | |
1736 | <p>Examples:</p> | |
1737 | ||
1738 | <pre class='command'> | |
1739 | *% Apple icon file | |
1740 | *APPrinterIconPath: "/Library/Printers/vendor/Icons/filename.icns" | |
db1f069b MS |
1741 | </pre> |
1742 | ||
1743 | <h3><span class='info'>Mac OS X 10.4</span><a name='APPrinterLowInkTool'>APPrinterLowInkTool</a></h3> | |
1744 | ||
1745 | <p class='summary'>*APPrinterLowInkTool: "/Library/Printers/vendor/program"</p> | |
1746 | ||
1747 | <p>This attribute defines an program that checks the ink/toner/marker levels | |
1748 | on a printer, returning an XML document with those levels. See the "InkTool" | |
1749 | example and | |
1750 | <a href='http://developer.apple.com/technotes/tn2005/tn2144.html'>Apple | |
1751 | Technical Note TN2144</a> for more information.</p> | |
1752 | ||
1753 | <p>Examples:</p> | |
1754 | ||
1755 | <pre class='command'> | |
1756 | *% Use a vendor monitoring program | |
1757 | *APPrinterLowInkTool: "/Library/Printers/vendor/Tools/lowinktool" | |
1758 | </pre> | |
1759 | ||
1760 | <h3><span class='info'>Mac OS X 10.5</span><a name='APPrinterPreset'>APPrinterPreset</a></h3> | |
1761 | ||
1762 | <p class='summary'>*APPrinterPreset name/text: "*Option Choice ..."</p> | |
1763 | ||
1764 | <p>This attribute defines presets for multiple options that show up | |
1765 | in the print dialog of applications (such as iPhoto) that set the job | |
1766 | style hint to <tt>NSPrintPhotoJobStyleHint</tt>. Each preset maps to one or | |
1767 | more pairs of PPD options and choices as well as providing key/value data for | |
1768 | the application. The following preset names are currently defined:</p> | |
1769 | ||
1770 | <ul> | |
1771 | ||
1772 | <li><code>Photo_with_Paper_Auto-Detect</code>; Photo printing | |
1773 | with paper auto-detect</li> | |
1774 | ||
1775 | <li><code>Photo_with_Paper_Auto-Detect_-_Fine</code>; Photo printing | |
1776 | with paper auto-detect - fine</li> | |
1777 | ||
1778 | <li><code>Photo_on_Plain_Paper</code>; Photo printing on plain paper</li> | |
1779 | ||
1780 | <li><code>Photo_on_Plain_Paper_-_Fine</code>; Photo printing on plain | |
1781 | paper - fine</li> | |
1782 | ||
1783 | <li><code>Photo_on_Photo_Paper</code>; Photo printing on photo paper</li> | |
1784 | ||
1785 | <li><code>Photo_on_Photo_Paper_-_Fine</code>; Photo printing on photo | |
1786 | paper - fine</li> | |
1787 | ||
1788 | <li><code>Photo_on_Matte_Paper</code>; Photo printing on matte paper</li> | |
1789 | ||
1790 | <li><code>Photo_on_Matte_Paper_-_Fine</code>; Photo printing on matte | |
1791 | paper - fine</li> | |
1792 | ||
1793 | </ul> | |
1794 | ||
1795 | <p>The value string consists of pairs of keywords, either an option name and | |
1796 | choice (*MainKeyword OptionKeyword) or a preset identifier and value | |
1797 | (com.apple.print.preset.foo value). Preset identifiers and their supported | |
1798 | values are documented in "<a | |
1799 | href='http://developer.apple.com/documentation/Printing/Conceptual/PresetDraft/presets_intro/chapter_1_section_2.html' | |
1800 | >Creating Printing Presets for iPhoto: Printing Presets File Format</a>".</p> | |
1801 | ||
1802 | <p>Presets, like options, can also be localized in multiple languages.</p> | |
1803 | ||
1804 | <p>Examples:</p> | |
1805 | ||
1806 | <pre class='command'> | |
1807 | *APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper: " | |
1808 | *MediaType Glossy | |
1809 | *ColorModel RGB | |
1810 | *Resolution 300dpi | |
1811 | com.apple.print.preset.graphicsType Photo | |
1812 | com.apple.print.preset.quality mid | |
1813 | com.apple.print.preset.media-front-coating glossy" | |
1814 | *End | |
1815 | *fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique: "" | |
1816 | </pre> | |
1817 | ||
1818 | <h3><span class='info'>Mac OS X 10.3</span><a name='APPrinterUtilityPath'>APPrinterUtilityPath</a></h3> | |
1819 | ||
1820 | <p class='summary'>*APPrinterPrinterUtilityPath: "/Library/Printers/vendor/filename.app"</p> | |
1821 | ||
1822 | <p>This attribute defines a GUI application that can be used to do printer | |
1823 | maintenance functions such as cleaning the print head(s). See ... for more | |
1824 | information.</p> | |
1825 | ||
1826 | <p>Examples:</p> | |
1827 | ||
1828 | <pre class='command'> | |
1829 | *% Define the printer utility application | |
1830 | *APPrinterPrinterUtilityPath: "/Library/Printers/vendor/Tools/utility.app" | |
1831 | </pre> | |
1832 | ||
b9faaae1 MS |
1833 | <h3><span class='info'>Mac OS X 10.6</span><a name='APScannerOnly'>APScannerOnly</a></h3> |
1834 | ||
1835 | <p class='summary'>*APScannerOnly: boolean</p> | |
1836 | ||
1837 | <p>This attribute specifies whether the device has scanning but no printing | |
1838 | capabilities. The default is <tt>False</tt>.</p> | |
1839 | ||
1840 | <p>Examples:</p> | |
1841 | ||
1842 | <pre class='command'> | |
1843 | *APICADriver: True | |
1844 | *APScannerOnly: True | |
1845 | </pre> | |
1846 | ||
db1f069b MS |
1847 | <h3><span class='info'>Mac OS X 10.3</span><a name='APScanAppBundleID'>APScanAppBundleID</a></h3> |
1848 | ||
1849 | <p class='summary'>*APScanAppBundleID: "bundle ID"</p> | |
1850 | ||
1851 | <p>This attribute defines the application to use when scanning pages from | |
1852 | the device.</p> | |
1853 | ||
1854 | <p>Examples:</p> | |
1855 | ||
1856 | <pre class='command'> | |
c5571a1d | 1857 | *APICADriver: True |
db1f069b MS |
1858 | *APScanAppBundleID: "com.apple.ImageCaptureApp" |
1859 | </pre> | |
1860 | ||
1861 | ||
1862 | <h2 class='title'><a name='HISTORY'>Change History</a></h2> | |
1863 | ||
634763e8 MS |
1864 | <h3>Changes in CUPS 1.4</a></h3> |
1865 | ||
1866 | <ul> | |
1867 | ||
c5571a1d MS |
1868 | <li>Added <a href='#APICADriver'><tt>APICADriver</tt></a> |
1869 | attribute.</li> | |
1870 | ||
749b1e90 MS |
1871 | <li>Added <a href='#cupsCommands'><tt>cupsCommands</tt></a> |
1872 | attribute.</li> | |
634763e8 | 1873 | |
749b1e90 MS |
1874 | <li>Added <a href='#cupsMarkerName'><tt>cupsMarkerName</tt></a> |
1875 | attribute.</li> | |
634763e8 | 1876 | |
749b1e90 MS |
1877 | <li>Added <a href='#cupsMarkerNotice'><tt>cupsMarkerNotice</tt></a> |
1878 | attribute.</li> | |
75bd9771 | 1879 | |
749b1e90 MS |
1880 | <li>Added <a href='#cupsPJLDisplay'><tt>cupsPJLDisplay</tt></a> |
1881 | attribute.</li> | |
01ce6322 | 1882 | |
58dc1933 MS |
1883 | <li>Added <a href='#cupsSNMPSupplies'><tt>cupsSNMPSupplies</tt></a> |
1884 | attribute.</li> | |
1885 | ||
749b1e90 MS |
1886 | <li>Added <a href='#cupsUIResolver'><tt>cupsUIResolver</tt></a> and |
1887 | <a href='#cupsUIConstraints'><tt>cupsUIConstraints</tt></a> | |
66ab9486 MS |
1888 | attributes.</li> |
1889 | ||
749b1e90 MS |
1890 | <li>Added |
1891 | <a href='#cupsMediaQualifier2'><tt>cupsMediaQualifier2</tt></a>, | |
1892 | <a href='#cupsMediaQualifier3'><tt>cupsMediaQualifier3</tt></a>, | |
1893 | <a href='#cupsMinSize'><tt>cupsMinSize</tt></a>, and | |
1894 | <a href='#cupsMaxSize'><tt>cupsMaxSize</tt></a> attributes.</li> | |
1895 | ||
634763e8 MS |
1896 | </ul> |
1897 | ||
1898 | ||
db1f069b MS |
1899 | <h3>Changes in CUPS 1.3.1</a></h3> |
1900 | ||
1901 | <ul> | |
1902 | ||
1903 | <li>Added missing Mac OS X <tt>AP</tt> attributes.</li> | |
1904 | ||
1905 | <li>Added section on auto-configuration including the | |
1906 | <tt>OID<i>MainKeyword</i></tt> and <tt>?<i>MainKeyword</i></tt> | |
1907 | attributes.</li> | |
1908 | ||
1909 | <li>Minor reorganization.</li> | |
1910 | ||
1911 | </ul> | |
1912 | ||
ef416fc2 | 1913 | |
db1f069b | 1914 | <h3>Changes in CUPS 1.3</a></h3> |
f7deaa1a | 1915 | |
1916 | <ul> | |
1917 | ||
749b1e90 MS |
1918 | <li>Added <a href='#cupsBackSide'><tt>cupsBackSide</tt></a> and |
1919 | deprecated <a href='#cupsFlipDuplex'><tt>cupsFlipDuplex</tt></a>.</li> | |
bc44d920 | 1920 | |
749b1e90 MS |
1921 | <li>Added text URI information to |
1922 | <a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> documentation.</li> | |
bc44d920 | 1923 | |
749b1e90 MS |
1924 | <li>Added <a href='#APPrinterPreset'><tt>APPrinterPreset</tt></a>, |
1925 | <a href='#cupsIPPFinishings'><tt>cupsIPPFinishings</tt></a>, and | |
1926 | <a href='#cupsPreFilter'><tt>cupsPreFilter</tt></a> attributes.</li> | |
09a101d6 | 1927 | |
749b1e90 MS |
1928 | <li>Added discussion of custom option code, sample |
1929 | <tt>CustomPageSize</tt> code, and "do not use dict and put" note.</li> | |
f7deaa1a | 1930 | |
1931 | </ul> | |
1932 | ||
db1f069b | 1933 | <h3>Changes in CUPS 1.2.8</a></h3> |
b86bc4cf | 1934 | |
1935 | <ul> | |
1936 | ||
1937 | <li>Added section on supported PostScript commands for raster | |
1938 | drivers</li> | |
1939 | ||
1940 | </ul> | |
1941 | ||
db1f069b | 1942 | <h3>Changes in CUPS 1.2</a></h3> |
ef416fc2 | 1943 | |
1944 | <ul> | |
1945 | ||
ecdc0628 | 1946 | <li>Added globalization support attributes</li> |
ef416fc2 | 1947 | |
1948 | <li>Added custom option values support</li> | |
1949 | ||
749b1e90 | 1950 | <li>Added <a href='#APHelpBook'><tt>APHelpBook</tt></a> attribute</li> |
4744bd90 | 1951 | |
749b1e90 MS |
1952 | <li>Added <a href='#APDuplexRequiresFlippedMargin'><tt>APDuplexRequiresFlippedMargin</tt></a> |
1953 | attribute</li> | |
a4d04587 | 1954 | |
749b1e90 | 1955 | <li>Added <a href='#cupsICCProfile'><tt>cupsICCProfile</tt></a> attribute</li> |
ef416fc2 | 1956 | |
749b1e90 | 1957 | <li>Added <a href='#cupsIPPReason'><tt>cupsIPPReason</tt></a> attribute</li> |
4744bd90 | 1958 | |
749b1e90 | 1959 | <li>Added <a href='#cupsLanguages'><tt>cupsLanguages</tt></a> attribute</li> |
a4d04587 | 1960 | |
749b1e90 | 1961 | <li>Added <a href='#cupsPortMonitor'><tt>cupsPortMonitor</tt></a> attribute</li> |
ef416fc2 | 1962 | |
1963 | <li>Removed <tt>cupsProtocol</tt> attribute</li> | |
1964 | ||
1965 | </ul> | |
1966 | ||
db1f069b | 1967 | <h3>Changes in CUPS 1.1</a></h3> |
ef416fc2 | 1968 | |
1969 | <ul> | |
1970 | ||
749b1e90 | 1971 | <li>Added <a href='#cupsFlipDuplex'><tt>cupsFlipDuplex</tt></a> attribute</li> |
ef416fc2 | 1972 | |
1973 | <li>Added <tt>cupsProtocol</tt> attribute</li> | |
1974 | ||
1975 | </ul> | |
1976 | ||
1977 | </body> | |
1978 | </html> |