]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/spec-ipp.html
Merge final 1.4.0 (r8761) changes.
[thirdparty/cups.git] / doc / help / spec-ipp.html
CommitLineData
745129be 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
fa73b229 2<html>
4744bd90 3<!-- SECTION: Specifications -->
fa73b229 4<head>
5 <title>CUPS Implementation of IPP</title>
6 <meta name='keywords' content='Programming, Internet Printing Protocol'>
178cb736 7 <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
fa73b229 8</head>
9<body>
10<!--
f7faf1f5 11 "$Id$"
fa73b229 12
13 CUPS IPP specification for the Common UNIX Printing System (CUPS).
14
68b10830 15 Copyright 2007-2009 by Apple Inc.
f7deaa1a 16 Copyright 1997-2007 by Easy Software Products.
fa73b229 17
18 These coded instructions, statements, and computer programs are the
5f64df29
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/".
fa73b229 23-->
24
178cb736
MS
25<H1 CLASS="title">CUPS Implementation of IPP</H1>
26
fa73b229 27<h2 class='title'><a name='INTRODUCTION'>Introduction</a></h2>
28
68b10830 29<p>CUPS implements IPP/2.1 and the operations and attributes
fa73b229 30defined in the "IPP: Job and Printer Set Operations", "IPP/1.1:
31Output-bin Attribute Extension", and "IPP/1.1: finishings
32'fold',' trim', and 'bale' attribute values extension"
33specifications.</p>
34
2e4ff8af 35<p>CUPS also provides 16 new operations and many new attributes
fa73b229 36to support multiple IPP printers and printer classes on a single
37host.</p>
38
39<h3 class='title'><a name='IPP_URIS'>IPP URIs</a></h3>
40
41<p>CUPS supports the "http", "https", and "ipp" schemes. The
42following resource names are used:</p>
43
44<dl>
45
46 <dt><tt>scheme://hostname:port/</tt></dt>
47
48 <dd>Can be used for all "get" operations and for server
49 subscriptions.</dd>
50
51 <dt><tt>scheme://hostname:port/admin/</tt></dt>
52
53 <dd>Used for all administrative operations.</dd>
54
55 <dt><tt>scheme://hostname:port/classes/name</tt></dt>
56
57 <dd>Specifies a printer class.</dd>
58
59 <dt><tt>scheme://hostname:port/jobs/id</tt></dt>
60
61 <dd>Specifies a job.</dd>
62
63 <dt><tt>scheme://hostname:port/printers/name</tt></dt>
64
65 <dd>Specifies a printer.</dd>
66
67</dl>
68
69<p>So a typical printer URI would be
70"ipp://foo.bar.com/printers/LaserJet". In addition, the CUPS
71server also supports normal browser access via
72"http://hostname:port/" and "https://hostname:port/".</p>
73
74<h3 class='title'><a name='IPP_OPERATIONS'>CUPS IPP Operations</a></h3>
75
2e4ff8af 76<p>CUPS provides 16 extension operations in addition to most of the
fa73b229 77standard IPP and registered extension operations:
78
79<div class='table'><table align='center' border='1' width='80%'
80summary='Supported Operations'>
81<thead>
82<tr>
83 <TH VALIGN="TOP">Operation Name</th>
84 <TH VALIGN="TOP">CUPS</th>
85 <TH VALIGN="TOP">Code</th>
86 <TH VALIGN="TOP">Brief Description</th>
87</tr>
88</thead>
89<tbody>
90<tr>
91 <td><a href='#PRINT_JOB'>Print-Job</a></td>
92 <td>1.0</td>
93 <td>0x0002</td>
94 <td>Print a file.</td>
95</tr>
96<tr>
97 <td>Validate-Job</td>
98 <td>1.0</td>
99 <td>0x0004</td>
100 <td>Validate job attributes.</td>
101</tr>
102<tr>
103 <td><a href='#CREATE_JOB'>Create-Job</a></td>
104 <td>1.1</td>
105 <td>0x0005</td>
106 <td>Create a print job.</td>
107</tr>
108<tr>
109 <td>Send-Document</td>
110 <td>1.1</td>
111 <td>0x0006</td>
112 <td>Send a file for a print job.</td>
113</tr>
114<tr>
0a682745 115 <td><a href='#CANCEL_JOB'>Cancel-Job</a></td>
fa73b229 116 <td>1.0</td>
117 <td>0x0008</td>
118 <td>Cancel a print job.</td>
119</tr>
120<tr>
121 <td>Get-Job-Attributes</td>
122 <td>1.0</td>
123 <td>0x0009</td>
124 <td>Get job attributes.</td>
125</tr>
126<tr>
127 <td>Get-Jobs</td>
128 <td>1.0</td>
129 <td>0x000A</td>
130 <td>Get all jobs.</td>
131</tr>
132<tr>
133 <td>Get-Printer-Attributes</td>
134 <td>1.0</td>
135 <td>0x000B</td>
136 <td>Get printer attributes.</td>
137</tr>
138<tr>
139 <td>Hold-Job</td>
140 <td>1.1</td>
141 <td>0x000C</td>
142 <td>Hold a job for printing.</td>
143</tr>
144<tr>
145 <td>Release-Job</td>
146 <td>1.1</td>
147 <td>0x000D</td>
148 <td>Release a job for printing.</td>
149</tr>
150<tr>
151 <td>Restart-Job</td>
152 <td>1.1</td>
153 <td>0x000E</td>
154 <td>Restarts a print job.</td>
155</tr>
156<tr>
157 <td>Pause-Printer</td>
158 <td>1.0</td>
159 <td>0x0010</td>
160 <td>Pause printing on a printer.</td>
161</tr>
162<tr>
163 <td>Resume-Printer</td>
164 <td>1.0</td>
165 <td>0x0011</td>
166 <td>Resume printing on a printer.</td>
167</tr>
168<tr>
0a682745 169 <td><a href='#PURGE_JOBS'>Purge-Jobs</a></td>
fa73b229 170 <td>1.0</td>
171 <td>0x0012</td>
172 <td>Purge all jobs.</td>
173</tr>
174<tr>
175 <td><a href='#SET_JOB_ATTRIBUTES'>Set-Job-Attributes</a></td>
176 <td>1.1</td>
177 <td>0x0014</td>
178 <td>Set attributes for a pending or held job.</td>
179</tr>
180<tr>
181 <td><a href='#CREATE_PRINTER_SUBSCRIPTION'>Create-Printer-Subscription</a></td>
182 <td>1.2</td>
183 <td>0x0016</td>
184 <td>Creates a subscription associated with a printer or the server.</td>
185</tr>
186<tr>
187 <td>Create-Job-Subscription</td>
188 <td>1.2</td>
189 <td>0x0017</td>
190 <td>Creates a subscription associated with a job.</td>
191</tr>
192<tr>
193 <td>Get-Subscription-Attributes</td>
194 <td>1.2</td>
195 <td>0x0018</td>
196 <td>Gets the attributes for a subscription.</td>
197</tr>
198<tr>
199 <td>Get-Subscriptions</td>
200 <td>1.2</td>
201 <td>0x0019</td>
202 <td>Gets the attributes for zero or more subscriptions.</td>
203</tr>
204<tr>
205 <td>Renew-Subscription</td>
206 <td>1.2</td>
207 <td>0x001A</td>
208 <td>Renews a subscription.</td>
209</tr>
210<tr>
211 <td>Cancel-Subscription</td>
212 <td>1.2</td>
213 <td>0x001B</td>
214 <td>Cancels a subscription.</td>
215</tr>
216<tr>
217 <td>Get-Notifications</td>
218 <td>1.2</td>
219 <td>0x001C</td>
220 <td>Get notification events for <tt>ippget</tt> subscriptions.</td>
221</tr>
222<tr>
223 <td>Enable-Printer</td>
224 <td>1.2</td>
225 <td>0x0022</td>
226 <td>Accepts jobs on a printer.</td>
227</tr>
228<tr>
229 <td>Disable-Printer</td>
230 <td>1.2</td>
231 <td>0x0023</td>
232 <td>Rejects jobs on a printer.</td>
233</tr>
234<tr>
235 <td><a href='#CUPS_GET_DEFAULT'>CUPS-Get-Default</a></td>
236 <td>1.0</td>
237 <td>0x4001</td>
238 <td>Get the default destination.</td>
239</tr>
240<tr>
241 <td><a href='#CUPS_GET_PRINTERS'>CUPS-Get-Printers</a></td>
242 <td>1.0</td>
243 <td>0x4002</td>
244 <td>Get all of the available printers.</td>
245</tr>
246<tr>
247 <td><a href='#CUPS_ADD_MODIFY_PRINTER'>CUPS-Add-Modify-Printer</a></td>
248 <td>1.0</td>
249 <td>0x4003</td>
250 <td>Add or modify a printer.</td>
251</tr>
252<tr>
253 <td><a href='#CUPS_DELETE_PRINTER'>CUPS-Delete-Printer</a></td>
254 <td>1.0</td>
255 <td>0x4004</td>
256 <td>Delete a printer.</td>
257</tr>
258<tr>
259 <td><a href='#CUPS_GET_CLASSES'>CUPS-Get-Classes</a></td>
260 <td>1.0</td>
261 <td>0x4005</td>
262 <td>Get all of the available printer classes.</td>
263</tr>
264<tr>
265 <td><a href='#CUPS_ADD_MODIFY_CLASS'>CUPS-Add-Modify-Class</a></td>
266 <td>1.0</td>
267 <td>0x4006</td>
268 <td>Add or modify a printer class.</td>
269</tr>
270<tr>
271 <td><a href='#CUPS_DELETE_CLASS'>CUPS-Delete-Class</a></td>
272 <td>1.0</td>
273 <td>0x4007</td>
274 <td>Delete a printer class.</td>
275</tr>
276<tr>
277 <td><a href='#CUPS_ACCEPT_JOBS'>CUPS-Accept-Jobs</a></td>
278 <td>1.0</td>
279 <td>0x4008</td>
280 <td>Accept jobs on a printer or printer class.</td>
281</tr>
282<tr>
283 <td><a href='#CUPS_REJECT_JOBS'>CUPS-Reject-Jobs</a></td>
284 <td>1.0</td>
285 <td>0x4009</td>
286 <td>Reject jobs on a printer or printer class.</td>
287</tr>
288<tr>
289 <td><a href='#CUPS_SET_DEFAULT'>CUPS-Set-Default</a></td>
290 <td>1.0</td>
291 <td>0x400A</td>
292 <td>Set the default destination.</td>
293</tr>
294<tr>
295 <td><a href='#CUPS_GET_DEVICES'>CUPS-Get-Devices</a></td>
296 <td>1.1</td>
297 <td>0x400B</td>
298 <td>Get all of the available devices.</td>
299</tr>
300<tr>
301 <td><a href='#CUPS_GET_PPDS'>CUPS-Get-PPDs</a></td>
302 <td>1.1</td>
303 <td>0x400C</td>
304 <td>Get all of the available PPDs.</td>
305</tr>
306<tr>
307 <td><a href='#CUPS_MOVE_JOB'>CUPS-Move-Job</a></td>
308 <td>1.1</td>
309 <td>0x400D</td>
310 <td>Move a job to a different printer.</td>
311</tr>
312<tr>
313 <td><a href='#CUPS_AUTHENTICATE_JOB'>CUPS-Authenticate-Job</a></td>
314 <td>1.2</td>
315 <td>0x400E</td>
316 <td>Authenticate a job for printing.</td>
317</tr>
b94498cf 318<tr>
319 <td><a href='#CUPS_GET_PPD'>CUPS-Get-PPD</a></td>
320 <td>1.3</td>
321 <td>0x400F</td>
322 <td>Get a PPD file.</td>
323</tr>
2e4ff8af
MS
324<tr>
325 <td><a href='#CUPS_GET_DOCUMENT'>CUPS-Get-Document</a></td>
326 <td>1.4</td>
327 <td>0x4027</td>
328 <td>Get a document file from a job.</td>
329</tr>
fa73b229 330</tbody>
331</table></div>
332
333<h2 class='title'><a name='OPERATIONS'>Operations</a></h2>
334
335<p>The following sections describe the operations supported by CUPS.
336In the interest of brevity, operations which use only the standard
337IPP attributes are not described.
338
339<h3 class='title'><a name='PRINT_JOB'>Print-Job Operation</a></h3>
340
341<p>The Print-Job operation (0x0002) prints a file.
342
343<h4>Print-Job Request</h4>
344
345<p>The following groups of attributes are supplied as part of the
346Print-Job request:
347
348<p>Group 1: Operation Attributes
349
350<dl>
351
352 <dt>Natural Language and Character Set:
353
354 <dd>The "attributes-charset" and "attributes-natural-language"
355 attributes as described in section 3.1.4.1 of the IPP Model and
356 Semantics document.
357
358 <dt>"printer-uri" (uri):
359
360 <dd>The client MUST supply a URI for the specified printer.
361
362</dl>
363
364<p>Group 2: Job Template Attributes
365
366<dl>
367
b0f6947b 368 <dt>"auth-info" (1setOf text(MAX)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
f7deaa1a 369
370 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the "auth-info-required" attribute.
371
fa73b229 372 <dt>"job-billing" (text(MAX)):<span class='info'>CUPS 1.1</span>
373
374 <dd>The client OPTIONALLY supplies a billing string that is logged
375 with the page accounting information.
376
377 <dt>"job-sheets" (1setof type3 keyword | name(MAX)):<span class='info'>CUPS 1.1</span>
378
379 <dd>The client OPTIONALLY supplies one or two banner pages that
380 are printed before and after any files in the print job. The
381 name of "none" is reserved to indicate that no banner page
382 should be printed. If the client does not specify this
383 attribute then the value of the "job-sheets-default" printer
384 object attribute is used.
385
386 <blockquote><b>Note:</b> Standard IPP only allows
387 specification of a single job-sheets attribute
388 value.</blockquote>
389
390 <dt>"media" (1setof type3 keyword | name(MAX)):
391
392 <dd>The client OPTIONALLY supplies one or more media attributes
393 specifying the size, type, source, and color of the output
394 media. If the client does not specify this attribute then the
395 value of the "media-default" printer object attribute is used.
396
397 <blockquote><b>Note:</b> Standard IPP only allows
398 specification of a single media attribute
399 value.</blockquote>
400
401 <dt>Other Job Template Attributes
402
403</dl>
404
405<p>The Print-Job request is followed by a file to be printed.
406
407<h4>Print-Job Response</h4>
408
409<p>The following groups of attributes are send as part of the Print-Job
410Response:
411
412<p>Group 1: Operation Attributes
413
414<dl>
415
416 <dt>Status Message:
417
418 <dd>The standard response status message.
419
420 <dt>Natural Language and Character Set:
421
422 <dd>The "attributes-charset" and "attributes-natural-language"
423 attributes as described in section 3.1.4.2 of the IPP Model and
424 Semantics document.
425
426</dl>
427
428<p>Group 2: Job Attributes
429
430<dl>
431
432 <dt>Standard Job Attributes
433
434</dl>
435
f7deaa1a 436<p>Group 3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
437
438<dl>
439
440 <dt>auth-info-required (1setOf Type2 keyword)
441
442 <dd>The required authentication information.
443
d2354e63 444</dl>
f7deaa1a 445
fa73b229 446<h3 class='title'><span class='info'>CUPS 1.1</span><a name='CREATE_JOB'>Create-Job Operation</a></h3>
447
448<p>The Create-Job operation (0x0005) creates a new, empty print job.
449
450<h4>Create-Job Request</h4>
451
452<p>The following groups of attributes are supplied as part of the
453Create-Job request:
454
455<p>Group 1: Operation Attributes
456
457<dl>
458
459 <dt>Natural Language and Character Set:
460
461 <dd>The "attributes-charset" and "attributes-natural-language"
462 attributes as described in section 3.1.4.1 of the IPP Model and
463 Semantics document.
464
465 <dt>"printer-uri" (uri):
466
467 <dd>The client MUST supply a URI for the specified printer.
468
469</dl>
470
471<p>Group 2: Job Template Attributes
472
473<dl>
474
b0f6947b 475 <dt>"auth-info" (1setOf text(MAX)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
f7deaa1a 476
477 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the "auth-info-required" attribute.
478
fa73b229 479 <dt>"job-billing" (text(MAX)):<span class='info'>CUPS 1.1</span>
480
481 <dd>The client OPTIONALLY supplies a billing string that is logged
482 with the page accounting information.
483
484 <dt>"job-sheets" (1setof type3 keyword | name(MAX)):<span class='info'>CUPS 1.1</span>
485
486 <dd>The client OPTIONALLY supplies one or two banner pages that
487 are printed before and after any files in the print job. The
488 name of "none" is reserved to indicate that no banner page
489 should be printed. If the client does not specify this
490 attribute then the value of the "job-sheets-default" printer
491 object attribute is used.
492
493 <blockquote><b>Note:</b> Standard IPP only allows
494 specification of a single job-sheets attribute
495 value.</blockquote>
496
497 <dt>"media" (1setof type3 keyword | name(MAX)):
498
499 <dd>The client OPTIONALLY supplies one or more media attributes
500 specifying the size, type, source, and color of the output
501 media. If the client does not specify this attribute then the
502 value of the "media-default" printer object attribute is used.
503
504 <blockquote><b>Note:</b> Standard IPP only allows
505 specification of a single media attribute
506 value.</blockquote>
507
508 <dt>Standard Job Template Attributes
509
510</dl>
511
512<h4>Create-Job Response</h4>
513
514<p>The following groups of attributes are send as part of the
515Create-Job Response:
516
517<p>Group 1: Operation Attributes
518
519<dl>
520
521 <dt>Status Message:
522
523 <dd>The standard response status message.
524
525 <dt>Natural Language and Character Set:
526
527 <dd>The "attributes-charset" and "attributes-natural-language"
528 attributes as described in section 3.1.4.2 of the IPP Model and
529 Semantics document.
530
531</dl>
532
533<p>Group 2: Job Attributes
534
535<dl>
536
537 <dt>Standard Job Attributes
538
539</dl>
540
f7deaa1a 541<p>Group 3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
542
543<dl>
544
545 <dt>auth-info-required (1setOf Type2 keyword)
546
547 <dd>The required authentication information.
548
d2354e63 549</dl>
f7deaa1a 550
4b3f67ff 551<h3 class='title'><a name='CANCEL_JOB'>Cancel Job Operation</a></h3>
0a682745
MS
552
553<p>The Cancel-Job operation (0x0008) cancels the specified job. CUPS 1.4 adds
554a new <tt>purge-job (boolean)</tt> attribute that allows you to purge both
555active and completed jobs, removing all history and document files for the
556job as well.
557
558<h4>Cancel-Job Request</h4>
559
560<p>The following groups of attributes are supplied as part of the
561Set-Job-Attributes request:
562
563<p>Group 1: Operation Attributes
564
565<dl>
566
567 <dt>Natural Language and Character Set:
568
569 <dd>The "attributes-charset" and "attributes-natural-language"
570 attributes as described in section 3.1.4.1 of the IPP Model and
571 Semantics document.
572
573 <dt>"printer-uri" (uri) and "job-id" (integer)
574 <br><i>OR</i>
575 <br>"job-uri":
576
577 <dd>The client MUST supply a URI for the specified printer and
578 a job ID number, or the job URI.
579
b0f6947b 580 <dt><span class="info">CUPS 1.4/Mac OS X 10.6</span>"purge-job" (boolean):
0a682745
MS
581
582 <dd>The client OPTIONALLY supplies this attribute. When true,
583 all job files (history and document) are purged. The default
584 is false, leading to the standard IPP behavior.
585
586</dl>
587
588<h4>Cancel-Job Response</h4>
589
590<p>The following groups of attributes are send as part of the Cancel-Job
591Response:
592
593<p>Group 1: Operation Attributes
594
595<dl>
596
597 <dt>Status Message:
598
599 <dd>The standard response status message.
600
601 <dt>Natural Language and Character Set:
602
603 <dd>The "attributes-charset" and "attributes-natural-language"
604 attributes as described in section 3.1.4.2 of the IPP Model and
605 Semantics document.
606
607</dl>
608
609<h3 class='title'><a name='PURGE_JOBS'>Purge-Jobs Operation</a></h3>
610
611<p>The Purge-Jobs operation (0x0012) cancels all of the jobs on a
612given destination and optionally removes all history and document
613files for the jobs as well.
614
615<h4>Purge-Jobs Request</h4>
616
617<p>The following groups of attributes are supplied as part of the
618Purge-Jobs request:
619
620<p>Group 1: Operation Attributes
621
622<dl>
623
624 <dt>Natural Language and Character Set:
625
626 <dd>The "attributes-charset" and "attributes-natural-language"
627 attributes as described in section 3.1.4.1 of the IPP Model and
628 Semantics document.
629
630 <dt>"printer-uri" (uri):
631
632 <dd>The client MUST supply a URI for the specified printer or
633 "ipp://.../printers" for all printers and classes.
634
b0f6947b 635 <dt><span class="info">CUPS 1.2/Mac OS X 10.5</span>"purge-jobs" (boolean):
0a682745
MS
636
637 <dd>The client OPTIONALLY supplies this attribute to specify
638 whether the jobs are purged (true) or just canceled (false).
639 The default is true.
640
641</dl>
642
643<h4>Purge-Jobs Response</h4>
644
645<p>The following groups of attributes are send as part of the Purge-Jobs
646Response:
647
648<p>Group 1: Operation Attributes
649
650<dl>
651
652 <dt>Status Message:
653
654 <dd>The standard response status message.
655
656 <dt>Natural Language and Character Set:
657
658 <dd>The "attributes-charset" and "attributes-natural-language"
659 attributes as described in section 3.1.4.2 of the IPP Model and
660 Semantics document.
661
662</dl>
663
fa73b229 664<h3 class='title'><span class='info'>CUPS 1.1</span><a name='SET_JOB_ATTRIBUTES'>Set-Job-Attributes Operation</a></h3>
665
666<p>The Set-Job-Attributes operation (0x0014) changes the attributes of
667an active (not completed) job.
668
669<h4>Set-Job-Attributes Request</h4>
670
671<p>The following groups of attributes are supplied as part of the
672Set-Job-Attributes request:
673
674<p>Group 1: Operation Attributes
675
676<dl>
677
678 <dt>Natural Language and Character Set:
679
680 <dd>The "attributes-charset" and "attributes-natural-language"
681 attributes as described in section 3.1.4.1 of the IPP Model and
682 Semantics document.
683
684 <dt>"printer-uri" (uri) and "job-id" (integer)
685 <br><i>OR</i>
686 <br>"job-uri":
687
688 <dd>The client MUST supply a URI for the specified printer and
689 a job ID number, or the job URI.
690
691</dl>
692
693<p>Group 2: Job Template Attributes
694
695<dl>
696
697 <dt>"job-sheets" (1setof type3 keyword | name(MAX)):<span class='info'>CUPS 1.1</span>
698
699 <dd>The client OPTIONALLY supplies one or two banner pages that
700 are printed before and after any files in the print job. The
701 name of "none" is reserved to indicate that no banner page
702 should be printed. If the client does not specify this
703 attribute then the value of the "job-sheets-default" printer
704 object attribute is used.
705
706 <blockquote><b>Note:</b> Standard IPP only allows
707 specification of a single job-sheets attribute
708 value.</blockquote>
709
710 <dt>"media" (1setof type3 keyword | name(MAX)):
711
712 <dd>The client OPTIONALLY supplies one or more media attributes
713 specifying the size, type, source, and color of the output
714 media. If the client does not specify this attribute then the
715 value of the "media-default" printer object attribute is used.
716
717 <blockquote><b>Note:</b> Standard IPP only allows
718 specification of a single media attribute
719 value.</blockquote>
720
721 <dt>Other Job Template Attributes
722
723</dl>
724
725<h4>Set-Job-Attributes Response</h4>
726
727<p>The following groups of attributes are send as part of the Set-Job-Attributes
728Response:
729
730<p>Group 1: Operation Attributes
731
732<dl>
733
734 <dt>Status Message:
735
736 <dd>The standard response status message.
737
738 <dt>Natural Language and Character Set:
739
740 <dd>The "attributes-charset" and "attributes-natural-language"
741 attributes as described in section 3.1.4.2 of the IPP Model and
742 Semantics document.
743
744</dl>
745
b0f6947b 746<h3 class='title'><span class='info'>CUPS 1.2/Mac OS X 10.5</span><a
fa73b229 747name='CREATE_PRINTER_SUBSCRIPTION'>Create-Printer-Subscription</a></h3>
748
749<p>The Create-Printer-Subscription operation (0x0016) creates a
750subscription for printer or server event notifications. CUPS
751provides several additional events in addition to the standard
752events in the IPP notifications specification.</p>
753
f7deaa1a 754<h4>Create-Printer-Subscription Request</h4>
fa73b229 755
756<p>The following groups of attributes are supplied as part of the
757request:</p>
758
759<p>Group 1: Operation Attributes</p>
760
761<dl>
762
763 <dt>Natural Language and Character Set:
764
765 <dd>The "attributes-charset" and "attributes-natural-language"
766 attributes as described in section 3.1.4.1 of the IPP Model and
767 Semantics document.
768
769 <dt>"printer-uri" (uri):
770
771 <dd>The printer
772 (<tt>ipp://server/printers/printername</tt>), class
773 (<tt>ipp://server/classes/classname</tt>), or server
774 (<tt>ipp://server/</tt>) URI for event notifications.
775
776 <dt>"notify-events" (1setOf keyword):
777
778 <dd>The events to monitor. In addition to the standard
779 events, CUPS adds the following keywords:
780 <ul>
781
782 <li><tt>printer-added</tt> - Get notified
783 whenever a printer or class is added</li>
784
785 <li><tt>printer-deleted</tt> - Get notified
786 whenever a printer or class is deleted</li>
787
788 <li><tt>printer-modified</tt> - Get notified
789 whenever a printer or class is modified</li>
790
791 <li><tt>server-audit</tt> - Get notified when a
792 security condition occurs</li>
793
794 <li><tt>server-restarted</tt> - Get notified when
795 the server is restarted</li>
796
797 <li><tt>server-started</tt> - Get notified when
798 the server is started</li>
799
800 <li><tt>server-stopped</tt> - Get notified when
801 the server is stopped</li>
802
803 </ul>
804
805</dl>
806
f7deaa1a 807<h4>Create-Printer-Subscription Response</h4>
fa73b229 808
809<p>The following groups of attributes are send as part of the
810response:</p>
811
812<p>Group 1: Operation Attributes</p>
813
814<dl>
815
816 <dt>Status Message:
817
818 <dd>The standard response status message.
819
820 <dt>Natural Language and Character Set:
821
822 <dd>The "attributes-charset" and "attributes-natural-language"
823 attributes as described in section 3.1.4.2 of the IPP Model and
824 Semantics document.
825
826</dl>
827
828<p>Group 2: Subscription Object Attributes</p>
829
830<dl>
831
832 <dt>"subscription-id" (integer):
833
834 <dd>The subscription number.
835
836</dl>
837
838<h3 class='title'><a name='CUPS_GET_DEFAULT'>CUPS-Get-Default Operation</a></h3>
839
840<p>The CUPS-Get-Default operation (0x4001) returns the default printer
841URI and attributes.
842
843<h4>CUPS-Get-Default Request</h4>
844
845<p>The following groups of attributes are supplied as part of the
846CUPS-Get-Default request:
847
848<p>Group 1: Operation Attributes
849
850<dl>
851
852 <dt>Natural Language and Character Set:
853
854 <dd>The "attributes-charset" and "attributes-natural-language"
855 attributes as described in section 3.1.4.1 of the IPP Model and
856 Semantics document.
857
858 <dt>"requested-attributes" (1setOf keyword) :
859
860 <dd>The client OPTIONALLY supplies a set of attribute names
861 and/or attribute group names in whose values the requester is
862 interested. If the client omits this attribute, the server
863 responds as if this attribute had been supplied with a value of
864 'all'.
865
866</dl>
867
868<h4>CUPS-Get-Default Response</h4>
869
870<p>The following groups of attributes are send as part of the
871CUPS-Get-Default Response:
872
873<p>Group 1: Operation Attributes
874
875<dl>
876
877 <dt>Status Message:
878
879 <dd>The standard response status message.
880
881 <dt>Natural Language and Character Set:
882
883 <dd>The "attributes-charset" and "attributes-natural-language"
884 attributes as described in section 3.1.4.2 of the IPP Model and
885 Semantics document.
886
887</dl>
888
889<p>Group 2: Printer Object Attributes
890
891<dl>
892
893 <dt>The set of requested attributes and their current values.
894
895</dl>
896
897<h3 class='title'><a name='CUPS_GET_PRINTERS'>CUPS-Get-Printers Operation</a></h3>
898
899<p>The CUPS-Get-Printers operation (0x4002) returns the printer
900attributes for every printer known to the system. This may include
901printers that are not served directly by the server.
902
903<h4>CUPS-Get-Printers Request</h4>
904
905<p>The following groups of attributes are supplied as part of the
906CUPS-Get-Printers request:
907
908<p>Group 1: Operation Attributes
909
910<dl>
911
912 <dt>Natural Language and Character Set:
913
914 <dd>The "attributes-charset" and "attributes-natural-language"
915 attributes as described in section 3.1.4.1 of the IPP Model and
916 Semantics document.
917
b0f6947b 918 <dt>"first-printer-name" (name(127)):<span class='info'>CUPS 1.2/Mac OS X 10.5</span>
b19ccc9e
MS
919
920 <dd>The client OPTIONALLY supplies this attribute to
921 select the first printer that is returned.
922
fa73b229 923 <dt>"limit" (integer (1:MAX)):
924
925 <dd>The client OPTIONALLY supplies this attribute limiting the
926 number of printers that are returned.
927
fa73b229 928 <dt>"printer-location" (text(127)): <span class='info'>CUPS 1.1.7</span>
929
930 <dd>The client OPTIONALLY supplies this attribute to
931 select which printers are returned.
932
933 <dt>"printer-type" (type2 enum): <span class='info'>CUPS 1.1.7</span>
934
935 <dd>The client OPTIONALLY supplies a printer type enumeration to
936 select which printers are returned.
937
938 <dt>"printer-type-mask" (type2 enum): <span class='info'>CUPS 1.1.7</span>
939
940 <dd>The client OPTIONALLY supplies a printer type mask
941 enumeration to select which bits are used in the "printer-type"
942 attribute.
943
944 <dt>"requested-attributes" (1setOf keyword) :
945
946 <dd>The client OPTIONALLY supplies a set of attribute names
947 and/or attribute group names in whose values the requester is
948 interested. If the client omits this attribute, the server
949 responds as if this attribute had been supplied with a value of
950 'all'.
951
b0f6947b 952 <dt>"requested-user-name" (name(127)) : <span class='info'>CUPS 1.2/Mac OS X 10.5</span>
b19ccc9e
MS
953
954 <dd>The client OPTIONALLY supplies a user name that is used to filter
955 the returned printers.
956
fa73b229 957</dl>
958
959<h4>CUPS-Get-Printers Response</h4>
960
961<p>The following groups of attributes are send as part of the
962CUPS-Get-Printers Response:
963
964<p>Group 1: Operation Attributes
965
966<dl>
967
968 <dt>Status Message:
969
970 <dd>The standard response status message.
971
972 <dt>Natural Language and Character Set:
973
974 <dd>The "attributes-charset" and "attributes-natural-language"
975 attributes as described in section 3.1.4.2 of the IPP Model and
976 Semantics document.
977
978</dl>
979
980<p>Group 2: Printer Object Attributes
981
982<dl>
983
984 <dt>The set of requested attributes and their current values for
985 each printer.
986
987</dl>
988
989<h3 class='title'><a name='CUPS_ADD_MODIFY_PRINTER'>CUPS-Add-Modify-Printer Operation</a></h3>
990
991<p>The CUPS-Add-Modify-Printer operation (0x4003) adds a new printer or
992modifies an existing printer on the system.
993
994<h4>CUPS-Add-Modify-Printer Request</h4>
995
996<p>The following groups of attributes are supplied as part of the
997CUPS-Add-Modify-Printer request:
998
999<p>Group 1: Operation Attributes
1000
1001<dl>
1002
1003 <dt>Natural Language and Character Set:
1004
1005 <dd>The "attributes-charset" and "attributes-natural-language"
1006 attributes as described in section 3.1.4.1 of the IPP Model and
1007 Semantics document.
1008
1009 <dt>"printer-uri" (uri):
1010
1011 <dd>The client MUST supply a URI for the specified printer.
1012
1013</dl>
1014
1015<p>Group 2: Printer Object Attributes
1016
1017<dl>
1018
b0f6947b 1019 <dt>"auth-info-required" (1setOf type2 keyword):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
f7deaa1a 1020
1021 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1022
fa73b229 1023 <dt>"job-sheets-default" (1setOf name(127)): <span
1024 class='info'>CUPS 1.1.7</span>
1025
1026 <dd>The client OPTIONALLY supplies one or two banner page
1027 names that are printed before and after files in a job.
1028 The reserved name "none" is used to specify that no
1029 banner page should be printed.
1030
1031 <dt>"device-uri" (uri):
1032
1033 <dd>The client OPTIONALLY supplies a device URI for the
1034 specified printer.
1035
09a101d6 1036 <dt>"port-monitor" (name(127)):
1037
1038 <dd>The client OPTIONALLY supplies a port monitor name for the
1039 specified printer.
1040
fa73b229 1041 <dt>"ppd-name" (name(127)):
1042
1043 <dd>The client OPTIONALLY supplies a PPD name for the specified
1044 printer.
1045
1046 <dt>"printer-is-accepting-jobs" (boolean):
1047
1048 <dd>The client OPTIONALLY supplies this boolean attribute
1049 indicating whether or not the printer object should accept new jobs.
1050
1051 <dt>"printer-info" (text(127)):
1052
1053 <dd>The client OPTIONALLY supplies this attribute indicating the
1054 printer information string.
1055
1056 <dt>"printer-location" (text(127)):
1057
1058 <dd>The client OPTIONALLY supplies this attribute indicating a
1059 textual location of the printer.
1060
1061 <dt>"printer-more-info" (uri):
1062
1063 <dd>The client OPTIONALLY supplies this attribute indicating a
1064 URI for additional printer information.
1065
1066 <dt>"printer-state" (type2 enum):
1067
1068 <dd>The client OPTIONALLY supplies this attribute indicating the
1069 initial/current state of the printer. Only the "idle" and "stopped"
1070 enumerations are recognized.
1071
1072 <dt>"printer-state-message" (text(MAX)):
1073
1074 <dd>The client OPTIONALLY supplies this attribute indicating a
1075 textual reason for the current printer state.
1076
1077 <dt>"requesting-user-name-allowed" (1setof name(127) | delete)
1078 <br><i>OR</i>
1079 <br>"requesting-user-name-denied" (1setof name(127) | delete):
1080
1081 <dd>The client OPTIONALLY supplies one of these attributes to
1082 specify an access control list for incoming print jobs. To allow
1083 all users access to a printer, use the delete tag for the
1084 attribute value.
1085
1086</dl>
1087
1088<p>The CUPS-Add-Modify-Printer request can optionally be followed by a PPD
1089file or System V interface script to be used for the printer. The
1090"ppd-name" attribute overrides any file that is attached to the end of
1091the request with a local CUPS PPD file.
1092
1093<h4>CUPS-Add-Modify-Printer Response</h4>
1094
1095<p>The following groups of attributes are send as part of the
1096CUPS-Add-Modify-Printer Response:
1097
1098<p>Group 1: Operation Attributes
1099
1100<dl>
1101
1102 <dt>Status Message:
1103
1104 <dd>The standard response status message.
1105
1106 <dt>Natural Language and Character Set:
1107
1108 <dd>The "attributes-charset" and "attributes-natural-language"
1109 attributes as described in section 3.1.4.2 of the IPP Model and
1110 Semantics document.
1111
1112</dl>
1113
1114<h3 class='title'><a name='CUPS_DELETE_PRINTER'>CUPS-Delete-Printer Operation</a></h3>
1115
1116<p>The CUPS-Delete-Printer operation (0x4004) removes an existing
1117printer from the system.
1118
1119<h4>CUPS-Delete-Printer Request</h4>
1120
1121<p>The following groups of attributes are supplied as part of the
1122CUPS-Delete-Printer request:
1123
1124<p>Group 1: Operation Attributes
1125
1126<dl>
1127
1128 <dt>Natural Language and Character Set:
1129
1130 <dd>The "attributes-charset" and "attributes-natural-language"
1131 attributes as described in section 3.1.4.1 of the IPP Model and
1132 Semantics document.
1133
1134 <dt>"printer-uri" (uri):
1135
1136 <dd>The client MUST supply a URI for the specified printer.
1137
1138</dl>
1139
1140<h4>CUPS-Delete-Printer Response</h4>
1141
1142<p>The following groups of attributes are send as part of the
1143CUPS-Delete-Printer Response:
1144
1145<p>Group 1: Operation Attributes
1146
1147<dl>
1148
1149 <dt>Status Message:
1150
1151 <dd>The standard response status message.
1152
1153 <dt>Natural Language and Character Set:
1154
1155 <dd>The "attributes-charset" and "attributes-natural-language"
1156 attributes as described in section 3.1.4.2 of the IPP Model and
1157 Semantics document.
1158
1159</dl>
1160
1161<h3 class='title'><a name='CUPS_GET_CLASSES'>CUPS-Get-Classes Operation</a></h3>
1162
1163<p>The CUPS-Get-Classes operation (0x4005) returns the printer
1164attributes for every printer class known to the system. This may
1165include printer classes that are not served directly by the server.
1166
1167<h4>CUPS-Get-Classes Request</h4>
1168
1169<p>The following groups of attributes are supplied as part of the
1170CUPS-Get-Classes request:
1171
1172<p>Group 1: Operation Attributes
1173
1174<dl>
1175
1176 <dt>Natural Language and Character Set:
1177
1178 <dd>The "attributes-charset" and "attributes-natural-language"
1179 attributes as described in section 3.1.4.1 of the IPP Model and
1180 Semantics document.
1181
b0f6947b 1182 <dt>"first-printer-name" (name(127)):<span class='info'>CUPS 1.2/Mac OS X 10.5</span>
b19ccc9e
MS
1183
1184 <dd>The client OPTIONALLY supplies this attribute to
1185 select the first printer that is returned.
1186
fa73b229 1187 <dt>"limit" (integer (1:MAX)):
1188
1189 <dd>The client OPTIONALLY supplies this attribute limiting the
1190 number of printer classes that are returned.
1191
fa73b229 1192 <dt>"printer-location" (text(127)): <span class='info'>CUPS 1.1.7</span>
1193 <dd>The client OPTIONALLY supplies this attribute to
1194 select which printer classes are returned.
1195
1196 <dt>"printer-type" (type2 enum): <span class='info'>CUPS 1.1.7</span>
1197 <dd>The client OPTIONALLY supplies a printer type enumeration to
1198 select which printer classes are returned.
1199
1200 <dt>"printer-type-mask" (type2 enum): <span class='info'>CUPS 1.1.7</span>
1201 <dd>The client OPTIONALLY supplies a printer type mask
1202 enumeration to select which bits are used in the "printer-type"
1203 attribute.
1204
1205 <dt>"requested-attributes" (1setOf keyword) :
1206
1207 <dd>The client OPTIONALLY supplies a set of attribute names
1208 and/or attribute group names in whose values the requester is
1209 interested. If the client omits this attribute, the server responds as
1210 if this attribute had been supplied with a value of 'all'.
1211
b0f6947b 1212 <dt>"requested-user-name" (name(127)) : <span class='info'>CUPS 1.2/Mac OS X 10.5</span>
b19ccc9e
MS
1213
1214 <dd>The client OPTIONALLY supplies a user name that is used to filter
1215 the returned printers.
1216
fa73b229 1217</dl>
1218
1219<h4>CUPS-Get-Classes Response</h4>
1220
1221<p>The following groups of attributes are send as part of the
1222CUPS-Get-Classes Response:
1223
1224<p>Group 1: Operation Attributes
1225
1226<dl>
1227
1228 <dt>Status Message:
1229
1230 <dd>The standard response status message.
1231
1232 <dt>Natural Language and Character Set:
1233
1234 <dd>The "attributes-charset" and "attributes-natural-language"
1235 attributes as described in section 3.1.4.2 of the IPP Model and
1236 Semantics document.
1237
1238</dl>
1239
1240<p>Group 2: Printer Class Object Attributes
1241
1242<dl>
1243
1244 <dt>The set of requested attributes and their current values for
1245 each printer class.
1246
1247</dl>
1248
1249<h3 class='title'><a name='CUPS_ADD_MODIFY_CLASS'>CUPS-Add-Modify-Class Operation</a></h3>
1250
1251<p>The CUPS-Add-Modify-Class operation (0x4006) adds a new printer class or
1252modifies and existing printer class on the system.
1253
1254<h4>CUPS-Add-Modify-Class Request</h4>
1255
1256<p>The following groups of attributes are supplied as part of the
1257CUPS-Add-Modify-Class request:
1258
1259<p>Group 1: Operation Attributes
1260
1261<dl>
1262
1263 <dt>Natural Language and Character Set:
1264
1265 <dd>The "attributes-charset" and "attributes-natural-language"
1266 attributes as described in section 3.1.4.1 of the IPP Model and
1267 Semantics document.
1268
1269 <dt>"printer-uri" (uri):
1270
1271 <dd>The client MUST supply a URI for the specified printer class.
1272
1273</dl>
1274
1275<p>Group 2: Printer Object Attributes
1276
1277<dl>
1278
b0f6947b 1279 <dt>"auth-info-required" (1setOf type2 keyword):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
f7deaa1a 1280
1281 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1282
fa73b229 1283 <dt>"member-uris" (1setof uri):
1284
1285 <dd>The client OPTIONALLY supplies the "member-uris" set
1286 specifying the printers and printer classes that are part of the class.
1287
1288 <dt>"printer-is-accepting-jobs" (boolean):
1289
1290 <dd>The client OPTIONALLY supplies this boolean attribute
1291 indicating whether or not the class object should accept new jobs.
1292
1293 <dt>"printer-info" (text(127)):
1294
1295 <dd>The client OPTIONALLY supplies this attribute indicating the
1296 printer information string.
1297
1298 <dt>"printer-location" (text(127)):
1299
1300 <dd>The client OPTIONALLY supplies this attribute indicating a
1301 textual location of the class.
1302
1303 <dt>"printer-more-info" (uri):
1304
1305 <dd>The client OPTIONALLY supplies this attribute indicating a
1306 URI for additional class information.
1307
1308 <dt>"printer-state" (type2 enum):
1309
1310 <dd>The client OPTIONALLY supplies this attribute indicating the
1311 initial/current state of the class. Only the "idle" and "stopped"
1312 enumerations are recognized.
1313
1314 <dt>"printer-state-message" (text(MAX)):
1315
1316 <dd>The client OPTIONALLY supplies this attribute indicating a
1317 textual reason for the current class state.
1318
1319 <dt>"requesting-user-name-allowed" (1setof name(127))
1320 <br><i>OR</i>
1321 <br>"requesting-user-name-denied" (1setof name(127)):
1322
1323 <dd>The client OPTIONALLY supplies one of these attributes to
1324 specify an access control list for incoming print jobs. To allow
1325 all users access to a class, use the delete tag for the
1326 attribute value.
1327
1328</dl>
1329
1330<h4>CUPS-Add-Modify-Class Response</h4>
1331
1332<p>The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
1333
1334<p>Group 1: Operation Attributes
1335
1336<dl>
1337
1338 <dt>Status Message:
1339
1340 <dd>The standard response status message.
1341
1342 <dt>Natural Language and Character Set:
1343
1344 <dd>The "attributes-charset" and "attributes-natural-language"
1345 attributes as described in section 3.1.4.2 of the IPP Model and
1346 Semantics document.
1347
1348</dl>
1349
1350<h3 class='title'><a name='CUPS_DELETE_CLASS'>CUPS-Delete-Class Operation</a></h3>
1351
1352<p>The CUPS-Delete-Class operation (0x4007) removes an existing printer
1353class from the system.
1354
1355<h4>CUPS-Delete-Class Request</h4>
1356
1357<p>The following groups of attributes are supplied as part of the
1358CUPS-Delete-Class request:
1359
1360<p>Group 1: Operation Attributes
1361
1362<dl>
1363
1364 <dt>Natural Language and Character Set:
1365
1366 <dd>The "attributes-charset" and "attributes-natural-language"
1367 attributes as described in section 3.1.4.1 of the IPP Model and
1368 Semantics document.
1369
1370 <dt>"printer-uri" (uri):
1371
1372 <dd>The client MUST supply a URI for the specified printer class.
1373
1374</dl>
1375
1376<h4>CUPS-Delete-Class Response</h4>
1377
1378<p>The following groups of attributes are send as part of the
1379CUPS-Delete-Class Response:
1380
1381<p>Group 1: Operation Attributes
1382
1383<dl>
1384
1385 <dt>Status Message:
1386
1387 <dd>The standard response status message.
1388
1389 <dt>Natural Language and Character Set:
1390
1391 <dd>The "attributes-charset" and "attributes-natural-language"
1392 attributes as described in section 3.1.4.2 of the IPP Model and
1393 Semantics document.
1394
1395</dl>
1396
1397<h3 class='title'><a name='CUPS_ACCEPT_JOBS'>CUPS-Accept-Jobs Operation</a></h3>
1398
1399<p>The CUPS-Accept-Jobs operation (0x4008) sets the
1400"printer-is-accepting-jobs" attribute to true for the specified printer
1401or printer class.
1402
1403<h4>CUPS-Accept-Jobs Request</h4>
1404
1405<p>The following groups of attributes are supplied as part of the
1406CUPS-Accept-Jobs request:
1407
1408<p>Group 1: Operation Attributes
1409
1410<dl>
1411
1412 <dt>Natural Language and Character Set:
1413
1414 <dd>The "attributes-charset" and "attributes-natural-language"
1415 attributes as described in section 3.1.4.1 of the IPP Model and
1416 Semantics document.
1417
1418 <dt>"printer-uri" (uri):
1419
1420 <dd>The client MUST supply a URI for the specified printer or printer class.
1421
1422</dl>
1423
1424<h4>CUPS-Accept-Jobs Response</h4>
1425
1426<p>The following groups of attributes are send as part of the
1427CUPS-Accept-Jobs Response:
1428
1429<p>Group 1: Operation Attributes
1430
1431<dl>
1432
1433 <dt>Status Message:
1434
1435 <dd>The standard response status message.
1436
1437 <dt>Natural Language and Character Set:
1438
1439 <dd>The "attributes-charset" and "attributes-natural-language"
1440 attributes as described in section 3.1.4.2 of the IPP Model and
1441 Semantics document.
1442
1443</dl>
1444
1445<h3 class='title'><a name='CUPS_REJECT_JOBS'>CUPS-Reject-Jobs Operation</a></h3>
1446
1447<p>The CUPS-Reject-Jobs operation (0x4009) sets
1448the"printer-is-accepting-jobs" attribute to false for the specified
1449printer or printer class.
1450
1451<h4>CUPS-Reject-Jobs Request</h4>
1452
1453<p>The following groups of attributes are supplied as part of the
1454CUPS-Reject-Jobs request:
1455
1456<p>Group 1: Operation Attributes
1457
1458<dl>
1459
1460 <dt>Natural Language and Character Set:
1461
1462 <dd>The "attributes-charset" and "attributes-natural-language"
1463 attributes as described in section 3.1.4.1 of the IPP Model and
1464 Semantics document.
1465
1466 <dt>"printer-uri" (uri):
1467
1468 <dd>The client MUST supply a URI for the specified printer or printer class.
1469
1470</dl>
1471
1472<p>Group 2: Printer Object Attributes
1473
1474<dl>
1475
1476 <dt>"printer-state-message" (text(MAX)):
1477
1478 <dd>The client OPTIONALLY supplies this attribute indicating a
1479 textual reason for the current printer state.
1480
1481</dl>
1482
1483<h4>CUPS-Reject-Jobs Response</h4>
1484
1485<p>The following groups of attributes are send as part of the
1486CUPS-Reject-Jobs Response:
1487
1488<p>Group 1: Operation Attributes
1489
1490<dl>
1491
1492 <dt>Status Message:
1493
1494 <dd>The standard response status message.
1495
1496 <dt>Natural Language and Character Set:
1497
1498 <dd>The "attributes-charset" and "attributes-natural-language"
1499 attributes as described in section 3.1.4.2 of the IPP Model and
1500 Semantics document.
1501
1502</dl>
1503
1504<h3 class='title'><a name='CUPS_SET_DEFAULT'>CUPS-Set-Default Operation</a></h3>
1505
1506<p>The CUPS-Set-Default operation (0x400A) sets the default printer
1507destination for all clients when a resource name of "/printers" is
1508specified.
1509
1510<h4>CUPS-Set-Default Request</h4>
1511
1512<p>The following groups of attributes are supplied as part of the
1513CUPS-Set-Default request:
1514
1515<p>Group 1: Operation Attributes
1516
1517<dl>
1518
1519 <dt>Natural Language and Character Set:
1520
1521 <dd>The "attributes-charset" and "attributes-natural-language"
1522 attributes as described in section 3.1.4.1 of the IPP Model and
1523 Semantics document.
1524
1525 <dt>"printer-uri" (uri):
1526
1527 <dd>The client MUST supply a URI for the specified printer or
1528 printer class.
1529
1530</dl>
1531
1532<h4>CUPS-Set-Default Response</h4>
1533
1534<p>The following groups of attributes are send as part of the
1535CUPS-Set-Default Response:
1536
1537<p>Group 1: Operation Attributes
1538
1539<dl>
1540
1541 <dt>Status Message:
1542
1543 <dd>The standard response status message.
1544
1545 <dt>Natural Language and Character Set:
1546
1547 <dd>The "attributes-charset" and "attributes-natural-language"
1548 attributes as described in section 3.1.4.2 of the IPP Model and
1549 Semantics document.
1550
1551</dl>
1552
1553<h3 class='title'><span class='info'>CUPS 1.1</span><a name='CUPS_GET_DEVICES'>CUPS-Get-Devices Operation</a></h3>
1554
1555<p>The CUPS-Get-Devices operation (0x400B) returns all of the
1556supported device-uri's for the server.</p>
1557
1558<h4>CUPS-Get-Devices Request</h4>
1559
1560<p>The following groups of attributes are supplied as part of the
1561CUPS-Get-Devices request:
1562
1563<p>Group 1: Operation Attributes
1564
1565<dl>
1566
1567 <dt>Natural Language and Character Set:
1568
1569 <dd>The "attributes-charset" and "attributes-natural-language"
1570 attributes as described in section 3.1.4.1 of the IPP Model and
1571 Semantics document.
1572
1573 <dt>"device-class" (type1 keyword):
1574
1575 <dd>The client OPTIONALLY supplies a device class keyword to select
1576 which devices are returned.
1577
b0f6947b 1578 <dt>"exclude-schemes" (1setOf name) :<span class='info'>CUPS 1.4/Mac OS X 10.6</span>
ae71f5de
MS
1579
1580 <dd>The client OPTIONALLY supplies a set of scheme names that the
1581 requestor does not want to discover. If the client omits this attribute,
ed6e7faf
MS
1582 the server responds with devices of all schemes specified by
1583 the "include-schemes" attribute.
1584
b0f6947b 1585 <dt>"include-schemes" (1setOf name) :<span class='info'>CUPS 1.4/Mac OS X 10.6</span>
ed6e7faf
MS
1586
1587 <dd>The client OPTIONALLY supplies a set of scheme names that the
1588 requestor wants to discover. If the client omits this attribute,
1589 the server responds with devices of all schemes except those specified
1590 by the "exclude-schemes" attribute.
ae71f5de 1591
fa73b229 1592 <dt>"limit" (integer (1:MAX)):
1593
1594 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1595 devices that are returned.
1596
1597 <dt>"requested-attributes" (1setOf keyword) :
1598
1599 <dd>The client OPTIONALLY supplies a set of attribute names and/or
1600 attribute group names in whose values the requester is interested. If
1601 the client omits this attribute, the server responds as if this
1602 attribute had been supplied with a value of 'all'.
1603
b0f6947b 1604 <dt>"timeout" (integer (1:MAX)) :<span class='info'>CUPS 1.4/Mac OS X 10.6</span>
ae71f5de
MS
1605
1606 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1607 devices that are returned.
1608
fa73b229 1609</dl>
1610
1611<h4>CUPS-Get-Devices Response</h4>
1612
1613<p>The following groups of attributes are send as part of the
1614CUPS-Get-Devices Response:
1615
1616<p>Group 1: Operation Attributes
1617
1618<dl>
1619
1620 <dt>Status Message:
1621
1622 <dd>The standard response status message.
1623
1624 <dt>Natural Language and Character Set:
1625
1626 <dd>The "attributes-charset" and "attributes-natural-language"
1627 attributes as described in section 3.1.4.2 of the IPP Model and
1628 Semantics document.
1629
1630</dl>
1631
1632<p>Group 2: Device Object Attributes
1633
1634<dl>
1635
1636 <dt>The set of requested attributes and their current values for
1637 each device.
1638
1639</dl>
1640
1641<h3 class='title'><span class='info'>CUPS 1.1</span><a name='CUPS_GET_PPDS'>CUPS-Get-PPDs Operation</a></h3>
1642
1643<p>The CUPS-Get-PPDs operation (0x400C) returns all of the
1644locally available PPD files on the system.</p>
1645
1646<h4>CUPS-Get-PPDs Request</h4>
1647
1648<p>The following groups of attributes are supplied as part of the
1649CUPS-Get-PPDs request:
1650
1651<p>Group 1: Operation Attributes
1652
1653<dl>
1654
1655 <dt>Natural Language and Character Set:
1656
1657 <dd>The "attributes-charset" and "attributes-natural-language"
1658 attributes as described in section 3.1.4.1 of the IPP Model and
1659 Semantics document.
1660
b0f6947b 1661 <dt>"exclude-schemes" (1setOf name) :<span class='info'>CUPS 1.4/Mac OS X 10.6</span>
ed6e7faf
MS
1662
1663 <dd>The client OPTIONALLY supplies a set of scheme names that the
1664 requestor does not want to list. If the client omits this attribute,
1665 the server responds with PPDs of all schemes specified by the
1666 "include-schemes" attribute.
1667
b0f6947b 1668 <dt>"include-schemes" (1setOf name) :<span class='info'>CUPS 1.4/Mac OS X 10.6</span>
ed6e7faf
MS
1669
1670 <dd>The client OPTIONALLY supplies a set of scheme names that the
1671 requestor wants to list. If the client omits this attribute, the server
1672 responds with PPDs of all schemes except those specified by the
1673 "exclude-schemes" attribute.
1674
fa73b229 1675 <dt>"limit" (integer (1:MAX)):
1676
3d8365b8 1677 <dd>The client OPTIONALLY supplies this attribute limiting the number of PPDs that are returned.
fa73b229 1678
1679 <dt>"ppd-make" (text(127)):
1680
3d8365b8 1681 <dd>The client OPTIONALLY supplies a printer manufacturer to select which PPDs are returned.
1682
b0f6947b 1683 <dt>"ppd-make-and-model" (text(127)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1684
1685 <dd>The client OPTIONALLY supplies a make and model to select which PPDs are returned.
1686
b0f6947b 1687 <dt>"ppd-model-number" (integer):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1688
1689 <dd>The client OPTIONALLY supplies a model number to select which PPDs are returned.
1690
b0f6947b 1691 <dt>"ppd-natural-language" (naturalLanguage):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1692
1693 <dd>The client OPTIONALLY supplies a language to select which PPDs are returned.
1694
b0f6947b 1695 <dt>"ppd-product" (text(127)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1696
1697 <dd>The client OPTIONALLY supplies a PostScript product string to select which PPDs are returned.
1698
b0f6947b 1699 <dt>"ppd-psversion" (text(127)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1700
1701 <dd>The client OPTIONALLY supplies a PostScript version string to select which PPDs are returned.
1702
b0f6947b 1703 <dt>"ppd-type" (type1 keyword):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
3d8365b8 1704
1705 <dd>The client OPTIONALLY supplies a driver type to select which PPDs are returned.
fa73b229 1706
1707 <dt>"requested-attributes" (1setOf keyword) :
1708
3d8365b8 1709 <dd>The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'. Specify "ppd-make" to get a list of manufacturers.
fa73b229 1710
1711</dl>
1712
1713<h4>CUPS-Get-PPDs Response</h4>
1714
1715<p>The following groups of attributes are send as part of the
1716CUPS-Get-PPDs Response:
1717
1718<p>Group 1: Operation Attributes
1719
1720<dl>
1721
1722 <dt>Status Message:
1723
1724 <dd>The standard response status message.
1725
1726 <dt>Natural Language and Character Set:
1727
1728 <dd>The "attributes-charset" and "attributes-natural-language"
1729 attributes as described in section 3.1.4.2 of the IPP Model and
1730 Semantics document.
1731
1732</dl>
1733
1734<p>Group 2: PPD Attributes
1735
1736<dl>
1737
1738 <dt>The set of requested attributes and their current values for each
1739 PPD file.
1740
1741</dl>
1742
1743<h3 class='title'><span class='info'>CUPS 1.1</span><a name='CUPS_MOVE_JOB'>CUPS-Move-Job Operation</a></h3>
1744
68b10830
MS
1745<p>The CUPS-Move-Job operation (0x400D) moves an active print job or all print
1746jobs for a printer to a different printer.</p>
fa73b229 1747
1748<h4>CUPS-Move-Job Request</h4>
1749
1750<p>The following groups of attributes are supplied as part of the
1751CUPS-Move-Job request:
1752
1753<p>Group 1: Operation Attributes
1754
1755<dl>
1756
1757 <dt>Natural Language and Character Set:
1758
1759 <dd>The "attributes-charset" and "attributes-natural-language"
1760 attributes as described in section 3.1.4.1 of the IPP Model and
1761 Semantics document.
1762
68b10830
MS
1763 <dt>"printer-uri" (uri)
1764 <br><i>OR</i>
fa73b229 1765 <dt>"printer-uri" (uri) and "job-id" (integer)
1766 <br><i>OR</i>
1767 <br>"job-uri":
1768
68b10830
MS
1769 <dd>The client MUST supply a URI for the specified printer, the URI for
1770 the specified printer and a job ID number, or the job URI.
fa73b229 1771
1772</dl>
1773
1774<p>Group 2: Job Template Attributes
1775
1776<dl>
1777
1778 <dt>"job-printer-uri" (uri)
1779
1780 <dd>The client MUST supply a URI for a printer on the same server.
1781
1782</dl>
1783
1784<h4>CUPS-Move-Job Response</h4>
1785
1786<p>The following groups of attributes are send as part of the
1787CUPS-Move-Job Response:
1788
1789<p>Group 1: Operation Attributes
1790
1791<dl>
1792
1793 <dt>Status Message:
1794
1795 <dd>The standard response status message.
1796
1797 <dt>Natural Language and Character Set:
1798
1799 <dd>The "attributes-charset" and "attributes-natural-language"
1800 attributes as described in section 3.1.4.2 of the IPP Model and
1801 Semantics document.
1802
1803</dl>
1804
b0f6947b 1805<h3 class='title'><span class='info'>CUPS 1.2/Mac OS X 10.5</span><a name='CUPS_AUTHENTICATE_JOB'>CUPS-Authenticate-Job Operation</a></h3>
fa73b229 1806
94da7e34
MS
1807<p>The CUPS-Authenticate-Job operation (0x400E) authenticates a print job for
1808printing, releasing the job if it is held. Typically this is used when printing
1809to a remote server. The authentication information is passed in the HTTP
1810request; the HTTP connection is normally encrypted for this type of request.</p>
fa73b229 1811
1812<h4>CUPS-Authenticate-Job Request</h4>
1813
1814<p>The following groups of attributes are supplied as part of the
1815CUPS-Authenticate-Job request:
1816
1817<p>Group 1: Operation Attributes
1818
1819<dl>
1820
1821 <dt>Natural Language and Character Set:
1822
1823 <dd>The "attributes-charset" and "attributes-natural-language"
1824 attributes as described in section 3.1.4.1 of the IPP Model and
1825 Semantics document.
1826
1827 <dt>"printer-uri" (uri) and "job-id" (integer)
1828 <br><i>OR</i>
1829 <br>"job-uri":
1830
1831 <dd>The client MUST supply a URI for the specified printer and
1832 a job ID number, or the job URI.
1833
1834</dl>
1835
f7deaa1a 1836<p>Group 2: Job Attributes
1837
1838<dl>
1839
b0f6947b 1840 <dt>"auth-info" (1setOf text(MAX)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
f7deaa1a 1841
1842 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the "auth-info-required" attribute.
1843
b0f6947b 1844 <dt>"job-hold-until" (keyword | name(MAX)):<span class='info'>CUPS 1.3/Mac OS X 10.5</span>
94da7e34
MS
1845
1846 <dd>The client OPTIONALLY supplies a new job-hold-until value for the
1847 job. If specified and not the "no-hold" value, the job is held instead
1848 of released for printing.
1849
f7deaa1a 1850</dl>
1851
fa73b229 1852<h4>CUPS-Authenticate-Job Response</h4>
1853
1854<p>The following groups of attributes are send as part of the
1855CUPS-Authenticate-Job Response:
1856
1857<p>Group 1: Operation Attributes
1858
1859<dl>
1860
1861 <dt>Status Message:
1862
1863 <dd>The standard response status message.
1864
1865 <dt>Natural Language and Character Set:
1866
1867 <dd>The "attributes-charset" and "attributes-natural-language"
1868 attributes as described in section 3.1.4.2 of the IPP Model and
1869 Semantics document.
1870
1871</dl>
1872
f7deaa1a 1873<p>Group 2: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
1874
1875<dl>
1876
1877 <dt>auth-info-required (1setOf Type2 keyword)
1878
1879 <dd>The required authentication information.
1880
d2354e63 1881</dl>
f7deaa1a 1882
b0f6947b 1883<h3 class='title'><span class='info'>CUPS 1.3/Mac OS X 10.5</span><a name='CUPS_GET_PPD'>CUPS-Get-PPD Operation</a></h3>
b94498cf 1884
1885<p>The CUPS-Get-PPD operation (0x400F) gets a PPD file from the
1886server. The PPD file can be specified using a <tt>ppd-name</tt>
1887returned by <a href='#CUPS_GET_PPDS'><tt>CUPS-Get-PPDs</tt></a>
1888or using the <tt>printer-uri</tt> for a queue.</p>
1889
1890<p>If the PPD file is found, <tt>successful-ok</tt> is returned with
1891the PPD file following the response data.</p>
1892
1893<p>If the PPD file cannot be served by the local server because
1894the <tt>printer-uri</tt> attribute points to an external printer,
1895a <tt>cups-see-other</tt> status is returned with the correct
1896URI to use.</p>
1897
1898<p>If the PPD file does not exist, <tt>client-error-not-found</tt> is
1899returned.</p>
1900
1901<h4>CUPS-Get-PPD Request</h4>
1902
1903<p>The following group of attributes is supplied as part of the
1904CUPS-Get-PPD request:
1905
1906<p>Group 1: Operation Attributes
1907
1908<dl>
1909
1910 <dt>Natural Language and Character Set:
1911
1912 <dd>The "attributes-charset" and "attributes-natural-language"
1913 attributes as described in section 3.1.4.1 of the IPP Model and
1914 Semantics document.
1915
1916 <dt>"printer-uri" (uri)
1917 <br><i>OR</i>
1918 <br>"ppd-name" (name(255)):
1919
1920 <dd>The client MUST supply a printer URI or PPD name.
1921
1922</dl>
1923
1924<h4>CUPS-Get-PPD Response</h4>
1925
1926<p>The following group of attributes is sent as part of the
1927CUPS-Get-PPD Response:
1928
1929<p>Group 1: Operation Attributes
1930
1931<dl>
1932
1933 <dt>Status Message:
1934
1935 <dd>The standard response status message.
1936
1937 <dt>Natural Language and Character Set:
1938
1939 <dd>The "attributes-charset" and "attributes-natural-language"
1940 attributes as described in section 3.1.4.2 of the IPP Model and
1941 Semantics document.
1942
1943 <dt>"printer-uri" (uri):
1944
1945 <dd>The printer that provides the actual PPD file when
1946 the status code is cups-see-other (0x280)
1947
1948</dl>
1949
1950<p>If the status code is <tt>successful-ok</tt>, the PPD file follows
1951the end of the IPP response.</p>
1952
b0f6947b 1953<h3 class='title'><span class='info'>CUPS 1.4/Mac OS X 10.6</span><a name='CUPS_GET_DOCUMENT'>CUPS-Get-Document Operation</a></h3>
2e4ff8af
MS
1954
1955<p>The CUPS-Get-Document operation (0x4027) gets a document file from a
1956job on the server. The document file is specified using the
1957<tt>document-number</tt> and either the <tt>job-uri</tt> or <tt>printer-uri</tt>
1958and <tt>job-id</tt> identifying the job.</p>
1959
1960<p>If the document file is found, <tt>successful-ok</tt> is returned with
1961the document file following the response data.</p>
1962
1963<p>If the document file does not exist, <tt>client-error-not-found</tt> is
1964returned.</p>
1965
1966<p>If the requesting user does not have access to the document file,
1967<tt>client-error-not-authorized</tt> is returned.
1968
1969<h4>CUPS-Get-Document Request</h4>
1970
1971<p>The following group of attributes is supplied as part of the
1972CUPS-Get-Document request:
1973
1974<p>Group 1: Operation Attributes
1975
1976<dl>
1977
1978 <dt>Natural Language and Character Set:
1979
1980 <dd>The "attributes-charset" and "attributes-natural-language"
1981 attributes as described in section 3.1.4.1 of the IPP Model and
1982 Semantics document.
1983
1984 <dt>"printer-uri" (uri) and "job-id" (integer)
1985 <br><i>OR</i>
1986 <br>"job-uri" (uri):
1987
1988 <dd>The client MUST supply a printer URI and job ID or job URI.
1989
1990 <dt>"document-number" (integer(1:MAX)):
1991
1992 <dd>The client MUST supply a document number to retrieve. The
1993 <tt>document-count</tt> attribute for the job defines the maximum
1994 document number that can be specified. In the case of jobs with
1995 banners (<tt>job-sheets</tt> is not "none"), document number 1
1996 will typically contain the start banner and document number N
1997 will typically contain the end banner.
1998
1999</dl>
2000
2001<h4>CUPS-Get-Document Response</h4>
2002
2003<p>The following group of attributes is sent as part of the
2004CUPS-Get-Document Response:
2005
2006<p>Group 1: Operation Attributes
2007
2008<dl>
2009
2010 <dt>Status Message:
2011
2012 <dd>The standard response status message.
2013
2014 <dt>Natural Language and Character Set:
2015
2016 <dd>The "attributes-charset" and "attributes-natural-language"
2017 attributes as described in section 3.1.4.2 of the IPP Model and
2018 Semantics document.
2019
2020 <dt>"document-format" (mimeType):
2021
2022 <dd>The format of the document file.
2023
2024 <dt>"document-number" (integer(1:MAX)):
2025
2026 <dd>The requested document number.
2027
2028 <dt>"document-name" (name(MAX)):
2029
2030 <dd>The name that was supplied with the document, if any.
2031
2032</dl>
2033
2034<p>If the status code is <tt>successful-ok</tt>, the document file follows
2035the end of the IPP response.</p>
2036
b94498cf 2037
fa73b229 2038<h2 class='title'><a name='ATTRIBUTES'>Attributes</a></h2>
2039
2040<p>CUPS provides many extension attributes to support multiple
2041devices, PPD files, standard job filters, printers, and printer
2042classes.</p>
2043
2044<h3 class='title'><a name='DEVICE_ATTRIBUTES'>Device Attributes</a></h3>
2045
2046<p>Device attributes are returned by the CUPS-Get-Devices
2047operation and enumerate all of the available hardware devices and
2048network protocols that are supported by the server.</p>
2049
f7deaa1a 2050<h4><a name="device-class">device-class (type2 keyword)</a></h4>
fa73b229 2051
2052<p>The device-class attribute specifies the class of device and can be
2053one of the following:
2054
2055<ul>
2056
2057 <li>"file" - a disk file.
2058
2059 <li>"direct" - a parallel or fixed-rate serial data port,
2060 currently used for Centronics, IEEE-1284, and USB printer
2061 ports.
2062
2063 <li>"serial" - a variable-rate serial port.
2064
2065 <li>"network" - a network connection, typically via AppSocket,
2066 HTTP, IPP, LPD, or SMB/CIFS protocols.
2067
2068</ul>
2069
b0f6947b 2070<h4><a name="device-id">device-id (text(127))</a><span class="info">CUPS 1.2/Mac OS X 10.5</span></h4>
fa73b229 2071
2072<p>The device-id attribute specifies the IEEE-1284 device ID
2073string for the device.</p>
2074
f7deaa1a 2075<h4><a name="device-info">device-info (text(127))</a></h4>
fa73b229 2076
2077<p>The device-info attribute specifies a human-readable string describing
2078the device, e.g. "Parallel Port #1".
2079
b0f6947b 2080<h4><a name="device-location">device-location (text(127))</a><span class="info">CUPS 1.4/Mac OS X 10.6</span></h4>
749b1e90
MS
2081
2082<p>The device-location attribute specifies the physical location of the
2083printer.
2084
f7deaa1a 2085<h4><a name="device-make-and-model">device-make-and-model (text(127))</a></h4>
fa73b229 2086
749b1e90 2087<p>The device-make-and-model attribute specifies a device
fa73b229 2088identification string provided by the printer connected to the device.
2089If the device or printer does not support identification then this
2090attribute contains the string "unknown".
2091
f7deaa1a 2092<h4><a name="device-uri">device-uri (uri)</a></h4>
fa73b229 2093
2094<p>The device-uri attribute specifies a unique identifier for the
2095device. The actual format of the device-uri string depends on the value
2096of the device-class attribute:
2097
2098<ul>
2099
2100 <li>"file" - The device-uri will be of the form
2101 "file:///path/to/filename".
2102
2103 <li>"direct" - The device-uri will be of the form
2104 "scheme:/dev/filename" or "scheme://vendor/identifier",
2105 where scheme may be "parallel" or "usb" in the current
2106 implementation.
2107
2108 <li>"serial" - The device-uri will be of the form
2109 "serial:/dev/filename?baud=value+parity=value+flow=value".
2110 The baud value is the data rate in bits per second; the
2111 supported values depend on the underlying hardware.
2112 The parity value can be one of "none", "even", or "odd".
2113 The flow value can be one of "none", "soft" (XON/XOFF
2114 handshaking), "hard" or "rts/cts" (RTS/CTS handshaking),
2115 or "dtrdsr" (DTR/DSR handshaking).
2116
2117 <p>The URI returned by CUPS-Get-Devices will contain the
2118 maximum baud rate supported by the device and the best
2119 type of flow control available ("soft" or "hard").
2120
2121 <li>"network" - The device-uri will be of the form
2122 "scheme://[username:password@]hostname[:port]/[resource]",
2123 where scheme may be "http", "https", "ipp", "lpd", "smb", or
2124 "socket" in the current implementation.
2125
2126 <p>The URI returned by CUPS-Get-Devices will only contain
2127 the scheme name ("scheme"). It is up to the client
2128 application to add the appropriate host and other
2129 information when adding a new printer.
2130
2131 <p>The URI returned by Get-Printer-Attributes and
2132 CUPS-Get-Printers has any username and password information
2133 stripped; the information is still stored and used by the
2134 server internally to perform any needed authentication.
2135
2136</ul>
2137
2138<h3 class='title'><a name='JOB_TEMPLATE_ATTRIBUTES'>Job Template Attributes</a></h3>
2139
b0f6947b 2140<h4><a name="auth-info">auth-info (1setOf text(MAX))</a><span class="info">CUPS 1.3/Mac OS X 10.5</span></h4>
f7deaa1a 2141
2142<p>The auth-info attribute specifies the authentication information to use when printing to a remote device. The order and content of each text value is specifed by the <a href="#auth-info-required">auth-info-required</a> printer attribute.
2143
2144<h4><a name="blackplot">blackplot (boolean)</a></h4>
fa73b229 2145
2146<p>The blackplot attribute specifies whether HP-GL/2 plot files should be
2147rendered entirely in black ink (blackplot=true) or using the colors and shades
2148specified in the file (blackplot=false). The default value is false.
2149
749b1e90 2150<h4><a name="brightness">brightness (integer(0:200))</a><span class="info">Deprecated</span></h4>
fa73b229 2151
2152<p>The brightness attribute specifies the overall brightness of the printed
2153output in percent. A brightness of 100 is normal, while 200 is twice as
2154bright and 50 is half as bright. The default value is 100.
2155
2156<p>Brightness is applied to the Cyan, Magenta, Yellow, and Black values using
2157the function "f(x) = brightness / 100 * x".
2158
749b1e90
MS
2159<blockquote><b>Note:</b>
2160
2161<p>This attribute is deprecated and will be removed from a future CUPS
2162release.</p>
2163
2164</blockquote>
2165
58dc1933 2166<h4><a name="columns">columns (integer(1:4))</a> <span class='info'>Deprecated</span></h4>
fa73b229 2167
2168<p>The columns attribute specifies the number of columns to generate when
2169printing text files. The default value is 1.
2170
f7deaa1a 2171<h4><a name="cpi">cpi (type2 enum)</a></h4>
fa73b229 2172
2173<p>The cpi attribute specifies the number of characters per inch when
2174printing text files. Only the values 10, 12, and 17 are currently
2175supported. The default value is 10.
2176
2e4ff8af
MS
2177<h4><a name="document-count">document-count (integer(1:MAX))</a></h4>
2178
2179<p>The document-count attribute specifies the number of documents that
2180are present in the job.
2181
b0f6947b 2182<h4><a name="fit-to-page">fit-to-page (boolean)</a><span class="info">CUPS 1.4/Mac OS X 10.6</span></h4>
ed6e7faf
MS
2183
2184<p>The fit-to-page attribute specifies whether to scale documents to fit on the
2185selected media (fit-to-page=true) or use the physical size specified in the
2186document (fit-to-page=false). The default value is false.
2187
2188<h4><a name="fitplot">fitplot (boolean)</a><span class="info">Deprecated</span></h4>
fa73b229 2189
2190<p>The fitplot attribute specifies whether to scale HP-GL/2 plot files to
2191fit on the selected media (fitplot=true) or use the physical scale specified
2192in the plot file (fitplot=false). The default value is false.
2193
749b1e90 2194<h4><a name="gamma">gamma (integer(1:10000))</a><span class="info">Deprecated</span></h4>
fa73b229 2195
2196<p>The gamma attribute specifies the luminance correction for the output.
2197A value of 1000 specifies no correction, while values of 2000 and 500 will
2198generate lighter and darker output, respectively. The default value is
21991000.
2200
2201<p>Gamma is applied to the Red, Green, and Blue values (or luminance for
749b1e90
MS
2202grayscale output) using the function "f(x) = x<sup>(1000/gamma)</sup>".
2203
2204<blockquote><b>Note:</b>
2205
2206<p>This attribute is deprecated and will be removed from a future CUPS
2207release.</p>
fa73b229 2208
749b1e90
MS
2209</blockquote>
2210
2211<h4><a name="hue">hue (integer(-180:180))</a><span class="info">Deprecated</span></h4>
fa73b229 2212
2213<p>The hue attribute specifies a color hue rotation when printing image
2214files. The default value is 0.
2215
749b1e90
MS
2216<blockquote><b>Note:</b>
2217
2218<p>This attribute is deprecated and will be removed from a future CUPS
2219release.</p>
2220
2221</blockquote>
2222
f7deaa1a 2223<h4><a name="job-billing">job-billing (text(MAX))</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2224
2225<p>The job-billing attribute provides a text value to associate with a job
2226for billing purposes.
2227
f7deaa1a 2228<h4><a name="job-hold-until">job-hold-until (keyword | name(MAX))</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2229
2230<p>The job-hold-until attribute specifies a hold time. In addition to the
2231standard IPP/1.1 keyword names, CUPS supports name values of the form
2232"HH:MM" and "HH:MM:SS" that specify a hold time. The hold time is in
b94498cf 2233Universal Coordinated Time (UTC) and <i>not</i> in the local time zone. If the
fa73b229 2234specified time is less than the current time, the job is held until the
2235next day.
2236
b0f6947b 2237<h4><a name="job-media-progress">job-media-progress (integer(0:100))</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
9a4f8274
MS
2238
2239<p>The job-media-progress attribute specifies the percentage of completion of
2240the current page. It is only valid when the job-state attribute has the
2241"processing" value (5).</p>
2242
b0f6947b 2243<h4><a name="job-printer-state-message">job-printer-state-message (text(MAX))</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
bc44d920 2244
2245<p>The job-printer-state-message attribute provides the last known value of the printer-state-message attribute for the printer that processed (or is processing) the job.</p>
2246
b0f6947b 2247<h4><a name="job-printer-state-reasons">job-printer-state-reasons (1setOf type2 keyword)</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
bc44d920 2248
2249<p>The job-printer-state-reasons attribute provides the last known value of the printer-state-reasons attribute for the printer that processed (or is processing) the job.</p>
2250
f7deaa1a 2251<h4><a name="job-sheets">job-sheets (1setof type3 keyword | name(MAX))</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2252
2253<p>The job-sheets attribute specifies one or two banner files that are printed
2254before and after a job. The reserved value of "none" disables banner printing.
2255The default value is stored in the job-sheets-default attribute.
2256
2257<p>If only one value is supplied, the banner file is printed before the job.
2258If two values are supplied, the first value is used as the starting banner
2259file and the second as the ending banner file.
2260
f7deaa1a 2261<h4><a name="job-originating-host-name">job-originating-host-name (name(MAX))</a></h4>
fa73b229 2262
2263<p><i>(CUPS 1.1.5 and higher)</i>
2264
2265<p>The job-originating-host-name attribute specifies the host
2266from which the job was queued. The value will be the hostname or
2267IP address of the client depending on whether hostname
2268resolution is enabled. The localhost address (127.0.0.1) is
2269<b>always</b> resolved to the name "localhost".
2270
2271<p>This attribute is read-only.
2272
f7deaa1a 2273<h4><a name="lpi">lpi (type2 enum)</a></h4>
fa73b229 2274
2275<p>The lpi attribute specifies the number of lines per inch when
2276printing text files. Only the values 6 and 8 are currently supported.
2277The default value is 6.
2278
f7deaa1a 2279<h4><a name="mirror">mirror (boolean)</a></h4>
fa73b229 2280
2281<p>The mirror attribute specifies whether pages are mirrored on
2282their X axis, which is useful for printing transfer images on
2283special media. The default value is false.
2284
f7deaa1a 2285<h4><a name="natural-scaling">natural-scaling (integer(1:1000))</a><span class='info'>CUPS 1.1.9</span></h4>
fa73b229 2286<p>The natural-scaling attribute specifies the scaling of image files with
2287respect to the natural image size. A value of 100 specifies that the image
2288file should exactly the natural size, while 50 is half the natural size
2289and 200 is twice the natural size. The default value is 100.
2290
2291<p>The ppi option can be used to override the natural resolution of the
2292image, which controls the natural size.
2293
f7deaa1a 2294<h4><a name="number-up-layout">number-up-layout (type2 keyword)</a><span class='info'>CUPS 1.1.15</span></h4>
fa73b229 2295<p>The number-up-layout attribute specifies the order each input
2296page is placed on each output page. The following keywords are
2297presently defined:
2298
2299<ul>
2300
2301 <li><CODE>btlr</CODE> - Bottom to top, left to right</li>
2302
2303 <li><CODE>btrl</CODE> - Bottom to top, right to left</li>
2304
2305 <li><CODE>lrbt</CODE> - Left to right, bottom to top</li>
2306
2307 <li><CODE>lrtb</CODE> - Left to right, top to bottom (default)</li>
2308
2309 <li><CODE>rlbt</CODE> - Right to left, bottom to top</li>
2310
2311 <li><CODE>rltb</CODE> - Right to left, top to bottom</li>
2312
2313 <li><CODE>tblr</CODE> - Top to bottom, left to right</li>
2314
2315 <li><CODE>tbrl</CODE> - Top to bottom, right to left</li>
2316
2317</ul>
2318
f7deaa1a 2319<h4><a name="page-border">page-border (type2 keyword)</a><span class='info'>CUPS 1.1.15</span></h4>
fa73b229 2320<p>The page-border attribute specifies whether a border is
2321draw around each page. The following keywords are presently
2322defined:
2323
2324<ul>
2325
2326 <li><CODE>double</CODE> - Two hairline borders are drawn</li>
2327
2328 <li><CODE>double-thick</CODE> - Two 1pt borders are drawn</li>
2329
2330 <li><CODE>none</CODE> - No border is drawn (default)</li>
2331
2332 <li><CODE>single</CODE> - A single hairline border is drawn</li>
2333
2334 <li><CODE>single-thick</CODE> - A single 1pt border is drawn</li>
2335
2336</ul>
2337
f7deaa1a 2338<h4><a name="page-bottom">page-bottom (integer(0:MAX))</a></h4>
fa73b229 2339
2340<p>The page-bottom attribute specifies the bottom margin in points (72 points
2341equals 1 inch). The default value is the device physical margin.
2342
f7deaa1a 2343<h4><a name="page-label">page-label (text(MAX))</a><span class='info'>CUPS 1.1.7</span></h4>
fa73b229 2344<p>The page-label attribute provides a text value to place in
2345the header and footer on each page. If a classification level is
2346set on the server, then this classification is printed before
2347the page label.
2348
f7deaa1a 2349<h4><a name="page-left">page-left (integer(0:MAX))</a></h4>
fa73b229 2350
2351<p>The page-left attribute specifies the left margin in points (72 points
2352equals 1 inch). The default value is the device physical margin.
2353
f7deaa1a 2354<h4><a name="page-right">page-right (integer(0:MAX))</a></h4>
fa73b229 2355
2356<p>The page-right attribute specifies the right margin in points (72 points
2357equals 1 inch). The default value is the device physical margin.
2358
f7deaa1a 2359<h4><a name="page-set">page-set (type2 keyword)</a></h4>
fa73b229 2360
2361<p>The page-set attribute specifies which pages to print in a file. The
2362supported keywords are "all", "even", and "odd". The default value is
2363"all".
2364
f7deaa1a 2365<h4><a name="page-top">page-top (integer(0:MAX))</a></h4>
fa73b229 2366
2367<p>The page-top attribute specifies the top margin in points (72 points
2368equals 1 inch). The default value is the device physical margin.
2369
f7deaa1a 2370<h4><a name="penwidth">penwidth (integer(0:MAX))</a></h4>
fa73b229 2371
2372<p>The penwidth attribute specifies the default pen width in micrometers
2373when printing HP-GL/2 plot files. The default value is 1000 (1 millimeter).
2374
f7deaa1a 2375<h4><a name="position">position (type2 keyword)</a></h4>
fa73b229 2376
2377<p>The position attribute specifies the location of image files on the
2378media. The following keyword values are recognized:
2379
2380<ul>
2381
2382 <li><CODE>center</CODE> - Center the image on the page (default)
2383
2384 <li><CODE>top</CODE> - Print the image centered at the top of the page
2385
2386 <li><CODE>left</CODE> - Print the image centered on the left of page
2387
2388 <li><CODE>right</CODE> - Print the image centered on the right of the page
2389
2390 <li><CODE>top-left</CODE> - Print the image at the top left corner of
2391 the page
2392
2393 <li><CODE>top-right</CODE> - Print the image at the top right corner of
2394 the page
2395
2396 <li><CODE>bottom</CODE> - Print the image centered at the bottom of
2397 the page
2398
2399 <li><CODE>bottom-left</CODE> - Print the image at the bottom left
2400 corner of the page
2401
2402 <li><CODE>bottom-right</CODE> - Print the image at the bottom right
2403 corner of the page
2404
2405</ul>
2406
f7deaa1a 2407<h4><a name="ppi">ppi (integer(1:MAX))</a></h4>
fa73b229 2408
2409<p>The ppi attribute specifies the resolution of an image file in pixels
2410per inch. The default value is the resolution included with the file or
2411128 if no resolution information is available.
2412
f7deaa1a 2413<h4><a name="prettyprint">prettyprint (boolean)</a></h4>
fa73b229 2414
2415<p>The prettyprint attribute specifies whether text files should be printed
2416with a shaded header and keyword highlighting (prettyprint=true) or without
2417additional formatting (prettyprint=false). The default value is false.
2418
749b1e90 2419<h4><a name="saturation">saturation (integer(0:200))</a><span class="info">Deprecated</span></h4>
fa73b229 2420
2421<p>The saturation attribute specifies the color saturation when
2422printing image files. A saturation of 100 is normal, while values of 50
2423and 200 will be half and twice as colorful, respectively. The default
2424value is 100.
2425
749b1e90
MS
2426<blockquote><b>Note:</b>
2427
2428<p>This attribute is deprecated and will be removed from a future CUPS
2429release.</p>
2430
2431</blockquote>
2432
f7deaa1a 2433<h4><a name="scaling">scaling (integer(1:1000))</a></h4>
fa73b229 2434
2435<p>The scaling attribute specifies the scaling of image files with
2436respect to the selected media. A value of 100 specifies that the image
2437file should fit 100% of the page, or as much as possible given the
2438image dimensions. The default value is unspecified.
2439
2440<p>The scaling attribute overrides the ppi attribute if specified.
2441
f7deaa1a 2442<h4><a name="wrap">wrap (boolean)</a></h4>
fa73b229 2443
2444<p>The wrap attribute specifies whether long lines should be wrapped
2445(wrap=true) or not (wrap=false) when printing text files. The default
2446value is true.
2447
2448<h3 class='title'><a name='PPD_ATTRIBUTES'>PPD Attributes</a></h3>
2449
f7deaa1a 2450<h4><a name="ppd-device-id">ppd-device-id (text(127))</a></h4>
fa73b229 2451
2452<p>The ppd-device-id attribute specifies the IEEE-1284 device ID
2453string for the device described by the PPD file.</p>
2454
f7deaa1a 2455<h4><a name="ppd-make">ppd-make (text(127))</a></h4>
fa73b229 2456
2457<p>The ppd-make attribute specifies the manufacturer of the printer
2458(the Manufacturer attribute in the PPD file). If the manufacturer
2459is not specified in the PPD file then an educated guess is made using
2460the NickName attribute in the PPD file.
2461
f7deaa1a 2462<h4><a name="ppd-make-and-model">ppd-make-and-model (text(127))</a></h4>
fa73b229 2463
2464<p>The ppd-make-and-model attribute specifies the manufacturer and model
2465name of the PPD file (the NickName attribute in the PPD file). If the
2466make and model is not specified in the PPD file then the ModelName or
2467ShortNickName attributes are used instead.
2468
b0f6947b 2469<h4><a name="ppd-model-number">ppd-model-number (integer)</a><span class="info">CUPS 1.3/Mac OS X 10.5</span></h4>
3d8365b8 2470
2471<p>The ppd-model-number attribute provides the <tt>cupsModelNumber</tt> value from the PPD file.
2472
f7deaa1a 2473<h4><a name="ppd-name">ppd-name (name(255))</a></h4>
fa73b229 2474
3d8365b8 2475<p>The ppd-name attribute specifies either the PPD filename on the server relative to the model directory or a URI that maps to a specific driver interface in the driver directory. The forward slash (/) is used to delineate directories.
fa73b229 2476
b94498cf 2477<h4><a name="ppd-natural-language">ppd-natural-language (1setOf naturalLanguage)</a></h4>
f899b121 2478
2479<p>The ppd-natural-language attribute specifies the language encoding
2480of the PPD file (the LanguageVersion attribute in the PPD file). If the
2481language is unknown or undefined then "en" (English) is assumed.
2482
b94498cf 2483<h4><a name="ppd-product">ppd-product (1setOf text(127))</a></h4>
2484
2485<p>The ppd-product attribute specifies the Product attribute values in the PPD file.
2486
b0f6947b 2487<h4><a name="ppd-psversion">ppd-psversion (1setOf text(127))</a><span class="info">CUPS 1.3/Mac OS X 10.5</span></h4>
f899b121 2488
b94498cf 2489<p>The ppd-product attribute specifies the PSVersion attribute values in the PPD file.
f899b121 2490
b0f6947b 2491<h4><a name="ppd-type">ppd-type (type1 keyword)</a><span class="info">CUPS 1.3/Mac OS X 10.5</span></h4>
3d8365b8 2492
2493<p>The ppd-type attribute specifies the type of driver described by the PPD file:</p>
2494
2495<ul>
2496
2497 <li><tt>fax</tt> - A facsimile or multi-function device</li>
2498
2499 <li><tt>pdf</tt> - A PDF printer</li>
2500
2501 <li><tt>postscript</tt> - A PostScript printer (no filters)</li>
2502
2503 <li><tt>raster</tt> - A CUPS raster driver</li>
2504
2505 <li><tt>unknown</tt> - An unknown or hybrid driver</li>
2506
2507</ul>
2508
f899b121 2509
fa73b229 2510<h3 class='title'><a name='PRINTER_ATTRIBUTES'>Printer Attributes</a></h3>
2511
b0f6947b 2512<h4><a name="auth-info-required">auth-info-required (1setOf type2 keyword)</a><span class="info">CUPS 1.3/Mac OS X 10.5</span></h4>
f7deaa1a 2513
2514<p>The auth-info-required attribute specifies the authentication information that is required for printing a job. The following keywords are recognized:</p>
2515
2516<ul>
2517
2518 <li><tt>domain</tt> - A domain name is required.</li>
2519
2520 <li><tt>none</tt> - No authentication is required - this keyword can only appear by itself.</li>
2521
2522 <li><tt>password</tt> - A password is required.</li>
2523
2524 <li><tt>username</tt> - A username is required.</li>
2525
2526</ul>
2527
2528<h4><a name="job-k-limit">job-k-limit (integer)</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2529
2530<p>The job-k-limit attribute specifies the maximum number of kilobytes that
2531may be printed by a user, including banner files. The default value of 0
2532specifies that there is no limit.
2533
f7deaa1a 2534<h4><a name="job-page-limit">job-page-limit (integer)</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2535
2536<p>The job-page-limit attribute specifies the maximum number of pages that
2537may be printed by a user, including banner files. The default value of 0
2538specifies that there is no limit.
2539
f7deaa1a 2540<h4><a name="job-quota-period">job-quota-period (integer)</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2541
2542<p>The job-quota-period attribute specifies the time period used for quota
2543calculations, in seconds. The default value of 0 specifies that the limits
2544apply to all jobs that have been printed by a user that are still known to
2545the system.
2546
09a101d6 2547<h4><a name="job-sheets-supported">job-sheets-supported (1setof type3 keyword | name(MAX))</a><span class='info'>CUPS 1.1</span></h4>
fa73b229 2548
2549<p>The job-sheets-supported attribute specifies the available banner files.
2550There will always be at least one banner file available called "none".
2551
b0f6947b 2552<h4><a name="marker-change-time">marker-change-time (integer)</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
5a738aea
MS
2553
2554<p>The marker-change-time attribute specifies the printer-up-time value when
75bd9771
MS
2555the last change to the marker-colors, marker-levels, marker-message,
2556marker-names, or marker-types attributes was made.</p>
5a738aea 2557
b0f6947b 2558<h4><a name="marker-colors">marker-colors (1setof name(MAX))</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
5a738aea
MS
2559
2560<p>The marker-colors attribute specifies the color(s) for each supply in the
2561printer. It is only available when the driver provides supply levels. The
2562color is either "none" or one or more hex-encoded sRGB colors of the form
2563"#RRGGBB".</p>
2564
b0f6947b 2565<h4><a name="marker-high-levels">marker-high-levels (1setof integer(0:100))</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
ed6e7faf
MS
2566
2567<p>The marker-high-levels attribute specifies the supply levels that indicate
2568a near-full condition. A value of 100 should be used for supplies that are
2569consumed/emptied, e.g. ink cartridges.</p>
2570
393ac6ab 2571<h4><a name="marker-levels">marker-levels (1setof integer(-3:100))</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
5a738aea
MS
2572
2573<p>The marker-levels attribute specifies the current supply levels for the
2574printer. It is only available when the driver provides supply levels. A
393ac6ab
MS
2575value of -1 indicates the level is unavailable, -2 indicates unknown, and -3
2576indicates the level is unknown but has not yet reached capacity. Values from 0
2577to 100 indicate the corresponding percentage.</p>
5a738aea 2578
b0f6947b 2579<h4><a name="marker-low-levels">marker-low-levels (1setof integer(0:100))</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
ed6e7faf
MS
2580
2581<p>The marker-low-levels attribute specifies the supply levels that indicate
2582a near-empty condition. A value of 0 should be used for supplies that are
2583filled, e.g. waste ink tanks.</p>
2584
b0f6947b 2585<h4><a name="marker-message">marker-message (text(MAX))</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
75bd9771
MS
2586
2587<p>The marker-message attribute provides a human-readable status message
2588for the current supply levels, e.g. "12 pages of ink remaining." It is only
2589available when the driver provides supply levels.</p>
2590
b0f6947b 2591<h4><a name="marker-names">marker-names (1setof name(MAX))</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
5a738aea
MS
2592
2593<p>The marker-names attribute specifies the name(s) for each supply in the
2594printer. It is only available when the driver provides supply levels.</p>
2595
b0f6947b 2596<h4><a name="marker-types">marker-types (1setof type3 keyword)</a><span class='info'>CUPS 1.3/Mac OS X 10.5</span></h4>
5a738aea
MS
2597
2598<p>The marker-types attribute specifies the type(s) of each supply in the
2599printer. It is only available when the driver provides supply levels. The
2600following (RFC 3805) types are currently supported:</p>
2601
2602<ul>
2603
2604 <li><tt>toner</tt></li>
2605
2606 <li><tt>wasteToner</tt></li>
2607
2608 <li><tt>ink</tt></li>
2609
2610 <li><tt>inkCartridge</tt></li>
2611
2612 <li><tt>inkRibbon</tt></li>
2613
2614 <li><tt>wasteInk</tt></li>
2615
2616 <li><tt>opc</tt></li>
2617
2618 <li><tt>developer</tt></li>
2619
2620 <li><tt>fuserOil</tt></li>
2621
2622 <li><tt>solidWax</tt></li>
2623
2624 <li><tt>ribbonWax</tt></li>
2625
2626 <li><tt>wasteWax</tt></li>
2627
2628 <li><tt>fuser</tt></li>
2629
2630 <li><tt>coronaWire</tt></li>
2631
2632 <li><tt>fuserOilWick</tt></li>
2633
2634 <li><tt>cleanerUnit</tt></li>
2635
2636 <li><tt>fuserCleaningPad</tt></li>
2637
2638 <li><tt>transferUnit</tt></li>
2639
2640 <li><tt>tonerCartridge</tt></li>
2641
2642 <li><tt>fuserOiler</tt></li>
2643
2644 <li><tt>water</tt></li>
2645
2646 <li><tt>wasteWater</tt></li>
2647
2648 <li><tt>bindingSupply</tt></li>
2649
2650 <li><tt>bandingSupply</tt></li>
2651
2652 <li><tt>stichingWire</tt></li>
2653
2654 <li><tt>shrinkWrap</tt></li>
2655
2656 <li><tt>paperWrap</tt></li>
2657
2658 <li><tt>staples</tt></li>
2659
2660 <li><tt>inserts</tt></li>
2661
2662 <li><tt>covers</tt></li>
2663
2664</ul>
2665
09a101d6 2666<h4><a name="port-monitor">port-monitor" (name(127))</a></h4>
2667
2668<p>The port-monitor attribute specifies the port monitor to use when printing
2669to this printer. The default port monitor is "none".
2670
2671<h4><a name="port-monitor-supported">port-monitor-supported" (1setOf name(127))</a></h4>
2672
2673<p>The port-monitor-supported attribute specifies the available port monitors.
2674
b0f6947b 2675<h4><a name="printer-commands">printer-commands (1setOf Type3 keyword)</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
01ce6322
MS
2676
2677<p>The printer-commands attribute specifies the commands that are supported
2678by the CUPS command file filter. The keyword "none" indicates that no commands
2679are supported.</p>
2680
b0f6947b 2681<h4><a name="printer-dns-sd-name">printer-dns-sd-name (name(MAX) | noValue)</a><span class='info'>CUPS 1.4/Mac OS X 10.6</span></h4>
d9bca400
MS
2682
2683<p>The printer-dns-sd-name attribute specifies the registered DNS-SD service
2684name for the printer. If the printer is not being shared using this protocol,
2685printer-dns-sd-name will have the noValue value.</p>
2686
38e73f87
MS
2687<h4><a name="printer-state-reasons">printer-state-reasons (1setOf type2 keyword)</a></h4>
2688
2689<p>The printer-state-reasons attribute provides additional persistent state
2690information for a printer. In addition to the keywords defined in RFC 2911,
2691CUPS supports vendor-specific keywords with a domain prefix ("com.vendor.foo")
2692and the following CUPS-specific keywords:</p>
2693
2694<ul>
2695
2696 <li><tt>cups-insecure-filter-warning</tt> - a filter or backend (or the
2697 directory containing the filter or backend) has insecure file
2698 permissions. CUPS will not execute programs with world write permissions
2699 or setuid programs. When run as root (the default), CUPS also does not
2700 execute programs that are not owned by root.
b0f6947b 2701 <span class='info'>CUPS 1.4/Mac OS X 10.6</span></li>
38e73f87
MS
2702
2703 <li><tt>cups-missing-filter-warning</tt> - a filter or backend is not
b0f6947b 2704 installed. <span class='info'>CUPS 1.4/Mac OS X 10.6</span></li>
38e73f87
MS
2705
2706</ul>
2707
f7deaa1a 2708<h4><a name="printer-type">printer-type (type2 enum)</a></h4>
fa73b229 2709
2710<p>The printer-type attribute specifies printer type and
2711capability bits for the printer or class. The default value is
2712computed from internal state information and the PPD file for the
2713printer. The following bits are defined:</p>
2714
2715<div class='table'><table align='center' border='1' width='80%'
2716summary='Printer Type Bits'>
2717<thead>
2718<tr>
2719 <th>Bit</th>
2720 <th>Description</th>
2721</tr>
2722</thead>
2723<tbody>
2724<tr>
2725 <td>0x00000001</td>
2726 <td>Is a printer class.</td>
2727</tr>
2728<tr>
2729 <td>0x00000002</td>
2730 <td>Is a remote destination.</td>
2731</tr>
2732<tr>
2733 <td>0x00000004</td>
2734 <td>Can print in black.</td>
2735</tr>
2736<tr>
2737 <td>0x00000008</td>
2738 <td>Can print in color.</td>
2739</tr>
2740<tr>
2741 <td>0x00000010</td>
2742 <td>Can print on both sides of the page in hardware.</td>
2743</tr>
2744<tr>
2745 <td>0x00000020</td>
2746 <td>Can staple output.</td>
2747</tr>
2748<tr>
2749 <td>0x00000040</td>
2750 <td>Can do fast copies in hardware.</td>
2751</tr>
2752<tr>
2753 <td>0x00000080</td>
2754 <td>Can do fast copy collation in hardware.</td>
2755</tr>
2756<tr>
2757 <td>0x00000100</td>
2758 <td>Can punch output.</td>
2759</tr>
2760<tr>
2761 <td>0x00000200</td>
2762 <td>Can cover output.</td>
2763</tr>
2764<tr>
2765 <td>0x00000400</td>
2766 <td>Can bind output.</td>
2767</tr>
2768<tr>
2769 <td>0x00000800</td>
2770 <td>Can sort output.</td>
2771</tr>
2772<tr>
2773 <td>0x00001000</td>
2774 <td>Can handle media up to US-Legal/A4.</td>
2775</tr>
2776<tr>
2777 <td>0x00002000</td>
2778 <td>Can handle media from US-Legal/A4 to ISO-C/A2.</td>
2779</tr>
2780<tr>
2781 <td>0x00004000</td>
2782 <td>Can handle media larger than ISO-C/A2.</td>
2783</tr>
2784<tr>
2785 <td>0x00008000</td>
2786 <td>Can handle user-defined media sizes.</td>
2787</tr>
2788<tr>
2789 <td>0x00010000</td>
2790 <td>Is an implicit (server-generated) class.</td>
2791</tr>
2792<tr>
2793 <td>0x00020000</td>
2794 <td>Is the a default printer on the network.</td>
2795</tr>
2796<tr>
b19ccc9e 2797 <td>0x00040000</td>
fa73b229 2798 <td>Is a facsimile device.</td>
2799</tr>
2800<tr>
2801 <td>0x00080000</td>
2802 <td>Is rejecting jobs.</td>
2803</tr>
2804<tr>
2805 <td>0x00100000</td>
2806 <td>Delete this queue.</td>
2807</tr>
2808<tr>
2809 <td>0x00200000</td>
2810 <td>Queue is not shared.</td>
2811</tr>
2812<tr>
2813 <td>0x00400000</td>
2814 <td>Queue requires authentication.</td>
2815</tr>
09a101d6 2816<tr>
2817 <td>0x00800000</td>
2818 <td>Queue supports CUPS command files.</td>
2819</tr>
2820<tr>
2821 <td>0x01000000</td>
2822 <td>Queue was automatically discovered and added.</td>
2823</tr>
b9faaae1
MS
2824<tr>
2825 <td>0x02000000</td>
2826 <td>Queue is a scanner with no printing capabilities.</td>
2827</tr>
2828<tr>
2829 <td>0x04000000</td>
2830 <td>Queue is a printer with scanning capabilities.</td>
2831</tr>
fa73b229 2832</tbody>
2833</table></div>
2834
2835<h4>printer-type-mask (type2 enum)<span class='info'>CUPS 1.1</span></h4>
2836
2837<p>The printer-type-mask attribute is used to choose printers or classes with
2838the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined
2839identically to the printer-type attribute and default to all 1's.
2840
2841<h4>requesting-user-name-allowed (1setof name(127))<span class='info'>CUPS 1.1</span></h4>
2842
2843<p>The requesting-user-name-allowed attribute lists all of the users that are
2844allowed to access a printer or class. Either this attribute or the
2845requesting-user-name-denied attribute will be defined, but not both.
2846
2847<h4>requesting-user-name-denied (1setof name(127))<span class='info'>CUPS 1.1</span></h4>
2848
2849<p>The requesting-user-name-denied attribute lists all of the users that are
2850not allowed to access a printer or class. Either this attribute or the
2851requesting-user-name-allowed attribute will be defined, but not both.
2852
2853<h3 class='title'><a name='CLASS_ATTRIBUTES'>Printer Class Attributes</a></h3>
2854
2855<h4>member-names (1setof name(127))</h4>
2856
2857<p>The member-names attribute specifies each of the printer-name attributes of
2858the member printers and classes. Each name corresponds to the same element of
2859the member-uris attribute.
2860
2861<h4>member-uris (1setof uri)</h4>
2862
2863<p>The member-uris attribute specifies each of the printer-uri attributes of
2864the member printers and classes. Each URI corresponds to the same element of
2865the member-names attribute.
2866
2867</body>
2868</html>