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