1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <!-- SECTION: Specifications -->
5 <title>CUPS Implementation of IPP
</title>
6 <meta name='keywords' content='Programming, Internet Printing Protocol'
>
7 <LINK REL=
"STYLESHEET" TYPE=
"text/css" HREF=
"../cups-printable.css">
13 CUPS IPP specification for the Common UNIX Printing System (CUPS).
15 Copyright 2007-2009 by Apple Inc.
16 Copyright 1997-2007 by Easy Software Products.
18 These coded instructions, statements, and computer programs are the
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/".
25 <H1 CLASS=
"title">CUPS Implementation of IPP
</H1>
27 <h2 class='title'
><a name='INTRODUCTION'
>Introduction
</a></h2>
29 <p>CUPS implements IPP/
2.1 and the operations and attributes
30 defined in the
"IPP: Job and Printer Set Operations",
"IPP/1.1:
31 Output-bin Attribute Extension", and
"IPP/1.1: finishings
32 'fold',' trim', and 'bale' attribute values extension"
35 <p>CUPS also provides
16 new operations and many new attributes
36 to support multiple IPP printers and printer classes on a single
39 <h3 class='title'
><a name='IPP_URIS'
>IPP URIs
</a></h3>
41 <p>CUPS supports the
"http",
"https", and
"ipp" schemes. The
42 following resource names are used:
</p>
46 <dt><tt>scheme://hostname:port/
</tt></dt>
48 <dd>Can be used for all
"get" operations and for server
51 <dt><tt>scheme://hostname:port/admin/
</tt></dt>
53 <dd>Used for all administrative operations.
</dd>
55 <dt><tt>scheme://hostname:port/classes/name
</tt></dt>
57 <dd>Specifies a printer class.
</dd>
59 <dt><tt>scheme://hostname:port/jobs/id
</tt></dt>
61 <dd>Specifies a job.
</dd>
63 <dt><tt>scheme://hostname:port/printers/name
</tt></dt>
65 <dd>Specifies a printer.
</dd>
69 <p>So a typical printer URI would be
70 "ipp://foo.bar.com/printers/LaserJet". In addition, the CUPS
71 server also supports normal browser access via
72 "http://hostname:port/" and
"https://hostname:port/".
</p>
74 <h3 class='title'
><a name='IPP_OPERATIONS'
>CUPS IPP Operations
</a></h3>
76 <p>CUPS provides
16 extension operations in addition to most of the
77 standard IPP and registered extension operations:
79 <div class='table'
><table align='center' border='
1' width='
80%'
80 summary='Supported Operations'
>
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>
91 <td><a href='#PRINT_JOB'
>Print-Job
</a></td>
94 <td>Print a file.
</td>
100 <td>Validate job attributes.
</td>
103 <td><a href='#CREATE_JOB'
>Create-Job
</a></td>
106 <td>Create a print job.
</td>
109 <td>Send-Document
</td>
112 <td>Send a file for a print job.
</td>
115 <td><a href='#CANCEL_JOB'
>Cancel-Job
</a></td>
118 <td>Cancel a print job.
</td>
121 <td>Get-Job-Attributes
</td>
124 <td>Get job attributes.
</td>
130 <td>Get all jobs.
</td>
133 <td>Get-Printer-Attributes
</td>
136 <td>Get printer attributes.
</td>
142 <td>Hold a job for printing.
</td>
148 <td>Release a job for printing.
</td>
154 <td>Restarts a print job.
</td>
157 <td>Pause-Printer
</td>
160 <td>Pause printing on a printer.
</td>
163 <td>Resume-Printer
</td>
166 <td>Resume printing on a printer.
</td>
169 <td><a href='#PURGE_JOBS'
>Purge-Jobs
</a></td>
172 <td>Purge all jobs.
</td>
175 <td><a href='#SET_JOB_ATTRIBUTES'
>Set-Job-Attributes
</a></td>
178 <td>Set attributes for a pending or held job.
</td>
181 <td><a href='#CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></td>
184 <td>Creates a subscription associated with a printer or the server.
</td>
187 <td>Create-Job-Subscription
</td>
190 <td>Creates a subscription associated with a job.
</td>
193 <td>Get-Subscription-Attributes
</td>
196 <td>Gets the attributes for a subscription.
</td>
199 <td>Get-Subscriptions
</td>
202 <td>Gets the attributes for zero or more subscriptions.
</td>
205 <td>Renew-Subscription
</td>
208 <td>Renews a subscription.
</td>
211 <td>Cancel-Subscription
</td>
214 <td>Cancels a subscription.
</td>
217 <td>Get-Notifications
</td>
220 <td>Get notification events for
<tt>ippget
</tt> subscriptions.
</td>
223 <td>Enable-Printer
</td>
226 <td>Accepts jobs on a printer.
</td>
229 <td>Disable-Printer
</td>
232 <td>Rejects jobs on a printer.
</td>
235 <td><a href='#CUPS_GET_DEFAULT'
>CUPS-Get-Default
</a></td>
238 <td>Get the default destination.
</td>
241 <td><a href='#CUPS_GET_PRINTERS'
>CUPS-Get-Printers
</a></td>
244 <td>Get all of the available printers.
</td>
247 <td><a href='#CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer
</a></td>
250 <td>Add or modify a printer.
</td>
253 <td><a href='#CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer
</a></td>
256 <td>Delete a printer.
</td>
259 <td><a href='#CUPS_GET_CLASSES'
>CUPS-Get-Classes
</a></td>
262 <td>Get all of the available printer classes.
</td>
265 <td><a href='#CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class
</a></td>
268 <td>Add or modify a printer class.
</td>
271 <td><a href='#CUPS_DELETE_CLASS'
>CUPS-Delete-Class
</a></td>
274 <td>Delete a printer class.
</td>
277 <td><a href='#CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs
</a></td>
280 <td>Accept jobs on a printer or printer class.
</td>
283 <td><a href='#CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs
</a></td>
286 <td>Reject jobs on a printer or printer class.
</td>
289 <td><a href='#CUPS_SET_DEFAULT'
>CUPS-Set-Default
</a></td>
292 <td>Set the default destination.
</td>
295 <td><a href='#CUPS_GET_DEVICES'
>CUPS-Get-Devices
</a></td>
298 <td>Get all of the available devices.
</td>
301 <td><a href='#CUPS_GET_PPDS'
>CUPS-Get-PPDs
</a></td>
304 <td>Get all of the available PPDs.
</td>
307 <td><a href='#CUPS_MOVE_JOB'
>CUPS-Move-Job
</a></td>
310 <td>Move a job to a different printer.
</td>
313 <td><a href='#CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job
</a></td>
316 <td>Authenticate a job for printing.
</td>
319 <td><a href='#CUPS_GET_PPD'
>CUPS-Get-PPD
</a></td>
322 <td>Get a PPD file.
</td>
325 <td><a href='#CUPS_GET_DOCUMENT'
>CUPS-Get-Document
</a></td>
328 <td>Get a document file from a job.
</td>
333 <h2 class='title'
><a name='OPERATIONS'
>Operations
</a></h2>
335 <p>The following sections describe the operations supported by CUPS.
336 In the interest of brevity, operations which use only the standard
337 IPP attributes are not described.
339 <h3 class='title'
><a name='PRINT_JOB'
>Print-Job Operation
</a></h3>
341 <p>The Print-Job operation (
0x0002) prints a file.
343 <h4>Print-Job Request
</h4>
345 <p>The following groups of attributes are supplied as part of the
348 <p>Group
1: Operation Attributes
352 <dt>Natural Language and Character Set:
354 <dd>The
"attributes-charset" and
"attributes-natural-language"
355 attributes as described in section
3.1.4.1 of the IPP Model and
358 <dt>"printer-uri" (uri):
360 <dd>The client MUST supply a URI for the specified printer.
364 <p>Group
2: Job Template Attributes
368 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
370 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
372 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
374 <dd>The client OPTIONALLY supplies a billing string that is logged
375 with the page accounting information.
377 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
386 <blockquote><b>Note:
</b> Standard IPP only allows
387 specification of a single job-sheets attribute
390 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
397 <blockquote><b>Note:
</b> Standard IPP only allows
398 specification of a single media attribute
401 <dt>Other Job Template Attributes
405 <p>The Print-Job request is followed by a file to be printed.
407 <h4>Print-Job Response
</h4>
409 <p>The following groups of attributes are send as part of the Print-Job
412 <p>Group
1: Operation Attributes
418 <dd>The standard response status message.
420 <dt>Natural Language and Character Set:
422 <dd>The
"attributes-charset" and
"attributes-natural-language"
423 attributes as described in section
3.1.4.2 of the IPP Model and
428 <p>Group
2: Job Attributes
432 <dt>Standard Job Attributes
436 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
440 <dt>auth-info-required (
1setOf Type2 keyword)
442 <dd>The required authentication information.
446 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CREATE_JOB'
>Create-Job Operation
</a></h3>
448 <p>The Create-Job operation (
0x0005) creates a new, empty print job.
450 <h4>Create-Job Request
</h4>
452 <p>The following groups of attributes are supplied as part of the
455 <p>Group
1: Operation Attributes
459 <dt>Natural Language and Character Set:
461 <dd>The
"attributes-charset" and
"attributes-natural-language"
462 attributes as described in section
3.1.4.1 of the IPP Model and
465 <dt>"printer-uri" (uri):
467 <dd>The client MUST supply a URI for the specified printer.
471 <p>Group
2: Job Template Attributes
475 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
477 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
479 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
481 <dd>The client OPTIONALLY supplies a billing string that is logged
482 with the page accounting information.
484 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
493 <blockquote><b>Note:
</b> Standard IPP only allows
494 specification of a single job-sheets attribute
497 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
504 <blockquote><b>Note:
</b> Standard IPP only allows
505 specification of a single media attribute
508 <dt>Standard Job Template Attributes
512 <h4>Create-Job Response
</h4>
514 <p>The following groups of attributes are send as part of the
517 <p>Group
1: Operation Attributes
523 <dd>The standard response status message.
525 <dt>Natural Language and Character Set:
527 <dd>The
"attributes-charset" and
"attributes-natural-language"
528 attributes as described in section
3.1.4.2 of the IPP Model and
533 <p>Group
2: Job Attributes
537 <dt>Standard Job Attributes
541 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
545 <dt>auth-info-required (
1setOf Type2 keyword)
547 <dd>The required authentication information.
551 <h3 class='title'
><a name='CANCEL_JOB'
>Cancel Job Operation
</a></h3>
553 <p>The Cancel-Job operation (
0x0008) cancels the specified job. CUPS
1.4 adds
554 a new
<tt>purge-job (boolean)
</tt> attribute that allows you to purge both
555 active and completed jobs, removing all history and document files for the
558 <h4>Cancel-Job Request
</h4>
560 <p>The following groups of attributes are supplied as part of the
561 Set-Job-Attributes request:
563 <p>Group
1: Operation Attributes
567 <dt>Natural Language and Character Set:
569 <dd>The
"attributes-charset" and
"attributes-natural-language"
570 attributes as described in section
3.1.4.1 of the IPP Model and
573 <dt>"printer-uri" (uri) and
"job-id" (integer)
577 <dd>The client MUST supply a URI for the specified printer and
578 a job ID number, or the job URI.
580 <dt><span class=
"info">CUPS
1.4</span>"purge-job" (boolean):
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.
588 <h4>Cancel-Job Response
</h4>
590 <p>The following groups of attributes are send as part of the Cancel-Job
593 <p>Group
1: Operation Attributes
599 <dd>The standard response status message.
601 <dt>Natural Language and Character Set:
603 <dd>The
"attributes-charset" and
"attributes-natural-language"
604 attributes as described in section
3.1.4.2 of the IPP Model and
609 <h3 class='title'
><a name='PURGE_JOBS'
>Purge-Jobs Operation
</a></h3>
611 <p>The Purge-Jobs operation (
0x0012) cancels all of the jobs on a
612 given destination and optionally removes all history and document
613 files for the jobs as well.
615 <h4>Purge-Jobs Request
</h4>
617 <p>The following groups of attributes are supplied as part of the
620 <p>Group
1: Operation Attributes
624 <dt>Natural Language and Character Set:
626 <dd>The
"attributes-charset" and
"attributes-natural-language"
627 attributes as described in section
3.1.4.1 of the IPP Model and
630 <dt>"printer-uri" (uri):
632 <dd>The client MUST supply a URI for the specified printer or
633 "ipp://.../printers" for all printers and classes.
635 <dt><span class=
"info">CUPS
1.2</span>"purge-jobs" (boolean):
637 <dd>The client OPTIONALLY supplies this attribute to specify
638 whether the jobs are purged (true) or just canceled (false).
643 <h4>Purge-Jobs Response
</h4>
645 <p>The following groups of attributes are send as part of the Purge-Jobs
648 <p>Group
1: Operation Attributes
654 <dd>The standard response status message.
656 <dt>Natural Language and Character Set:
658 <dd>The
"attributes-charset" and
"attributes-natural-language"
659 attributes as described in section
3.1.4.2 of the IPP Model and
664 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='SET_JOB_ATTRIBUTES'
>Set-Job-Attributes Operation
</a></h3>
666 <p>The Set-Job-Attributes operation (
0x0014) changes the attributes of
667 an active (not completed) job.
669 <h4>Set-Job-Attributes Request
</h4>
671 <p>The following groups of attributes are supplied as part of the
672 Set-Job-Attributes request:
674 <p>Group
1: Operation Attributes
678 <dt>Natural Language and Character Set:
680 <dd>The
"attributes-charset" and
"attributes-natural-language"
681 attributes as described in section
3.1.4.1 of the IPP Model and
684 <dt>"printer-uri" (uri) and
"job-id" (integer)
688 <dd>The client MUST supply a URI for the specified printer and
689 a job ID number, or the job URI.
693 <p>Group
2: Job Template Attributes
697 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
706 <blockquote><b>Note:
</b> Standard IPP only allows
707 specification of a single job-sheets attribute
710 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
717 <blockquote><b>Note:
</b> Standard IPP only allows
718 specification of a single media attribute
721 <dt>Other Job Template Attributes
725 <h4>Set-Job-Attributes Response
</h4>
727 <p>The following groups of attributes are send as part of the Set-Job-Attributes
730 <p>Group
1: Operation Attributes
736 <dd>The standard response status message.
738 <dt>Natural Language and Character Set:
740 <dd>The
"attributes-charset" and
"attributes-natural-language"
741 attributes as described in section
3.1.4.2 of the IPP Model and
746 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a
747 name='CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></h3>
749 <p>The Create-Printer-Subscription operation (
0x0016) creates a
750 subscription for printer or server event notifications. CUPS
751 provides several additional events in addition to the standard
752 events in the IPP notifications specification.
</p>
754 <h4>Create-Printer-Subscription Request
</h4>
756 <p>The following groups of attributes are supplied as part of the
759 <p>Group
1: Operation Attributes
</p>
763 <dt>Natural Language and Character Set:
765 <dd>The
"attributes-charset" and
"attributes-natural-language"
766 attributes as described in section
3.1.4.1 of the IPP Model and
769 <dt>"printer-uri" (uri):
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.
776 <dt>"notify-events" (
1setOf keyword):
778 <dd>The events to monitor. In addition to the standard
779 events, CUPS adds the following keywords:
782 <li><tt>printer-added
</tt> - Get notified
783 whenever a printer or class is added
</li>
785 <li><tt>printer-deleted
</tt> - Get notified
786 whenever a printer or class is deleted
</li>
788 <li><tt>printer-modified
</tt> - Get notified
789 whenever a printer or class is modified
</li>
791 <li><tt>server-audit
</tt> - Get notified when a
792 security condition occurs
</li>
794 <li><tt>server-restarted
</tt> - Get notified when
795 the server is restarted
</li>
797 <li><tt>server-started
</tt> - Get notified when
798 the server is started
</li>
800 <li><tt>server-stopped
</tt> - Get notified when
801 the server is stopped
</li>
807 <h4>Create-Printer-Subscription Response
</h4>
809 <p>The following groups of attributes are send as part of the
812 <p>Group
1: Operation Attributes
</p>
818 <dd>The standard response status message.
820 <dt>Natural Language and Character Set:
822 <dd>The
"attributes-charset" and
"attributes-natural-language"
823 attributes as described in section
3.1.4.2 of the IPP Model and
828 <p>Group
2: Subscription Object Attributes
</p>
832 <dt>"subscription-id" (integer):
834 <dd>The subscription number.
838 <h3 class='title'
><a name='CUPS_GET_DEFAULT'
>CUPS-Get-Default Operation
</a></h3>
840 <p>The CUPS-Get-Default operation (
0x4001) returns the default printer
843 <h4>CUPS-Get-Default Request
</h4>
845 <p>The following groups of attributes are supplied as part of the
846 CUPS-Get-Default request:
848 <p>Group
1: Operation Attributes
852 <dt>Natural Language and Character Set:
854 <dd>The
"attributes-charset" and
"attributes-natural-language"
855 attributes as described in section
3.1.4.1 of the IPP Model and
858 <dt>"requested-attributes" (
1setOf keyword) :
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
868 <h4>CUPS-Get-Default Response
</h4>
870 <p>The following groups of attributes are send as part of the
871 CUPS-Get-Default Response:
873 <p>Group
1: Operation Attributes
879 <dd>The standard response status message.
881 <dt>Natural Language and Character Set:
883 <dd>The
"attributes-charset" and
"attributes-natural-language"
884 attributes as described in section
3.1.4.2 of the IPP Model and
889 <p>Group
2: Printer Object Attributes
893 <dt>The set of requested attributes and their current values.
897 <h3 class='title'
><a name='CUPS_GET_PRINTERS'
>CUPS-Get-Printers Operation
</a></h3>
899 <p>The CUPS-Get-Printers operation (
0x4002) returns the printer
900 attributes for every printer known to the system. This may include
901 printers that are not served directly by the server.
903 <h4>CUPS-Get-Printers Request
</h4>
905 <p>The following groups of attributes are supplied as part of the
906 CUPS-Get-Printers request:
908 <p>Group
1: Operation Attributes
912 <dt>Natural Language and Character Set:
914 <dd>The
"attributes-charset" and
"attributes-natural-language"
915 attributes as described in section
3.1.4.1 of the IPP Model and
918 <dt>"first-printer-name" (name(
127)):
<span class='info'
>CUPS
1.2</span>
920 <dd>The client OPTIONALLY supplies this attribute to
921 select the first printer that is returned.
923 <dt>"limit" (integer (
1:MAX)):
925 <dd>The client OPTIONALLY supplies this attribute limiting the
926 number of printers that are returned.
928 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
930 <dd>The client OPTIONALLY supplies this attribute to
931 select which printers are returned.
933 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
935 <dd>The client OPTIONALLY supplies a printer type enumeration to
936 select which printers are returned.
938 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
940 <dd>The client OPTIONALLY supplies a printer type mask
941 enumeration to select which bits are used in the
"printer-type"
944 <dt>"requested-attributes" (
1setOf keyword) :
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
952 <dt>"requested-user-name" (name(
127)) :
<span class='info'
>CUPS
1.2</span>
954 <dd>The client OPTIONALLY supplies a user name that is used to filter
955 the returned printers.
959 <h4>CUPS-Get-Printers Response
</h4>
961 <p>The following groups of attributes are send as part of the
962 CUPS-Get-Printers Response:
964 <p>Group
1: Operation Attributes
970 <dd>The standard response status message.
972 <dt>Natural Language and Character Set:
974 <dd>The
"attributes-charset" and
"attributes-natural-language"
975 attributes as described in section
3.1.4.2 of the IPP Model and
980 <p>Group
2: Printer Object Attributes
984 <dt>The set of requested attributes and their current values for
989 <h3 class='title'
><a name='CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer Operation
</a></h3>
991 <p>The CUPS-Add-Modify-Printer operation (
0x4003) adds a new printer or
992 modifies an existing printer on the system.
994 <h4>CUPS-Add-Modify-Printer Request
</h4>
996 <p>The following groups of attributes are supplied as part of the
997 CUPS-Add-Modify-Printer request:
999 <p>Group
1: Operation Attributes
1003 <dt>Natural Language and Character Set:
1005 <dd>The
"attributes-charset" and
"attributes-natural-language"
1006 attributes as described in section
3.1.4.1 of the IPP Model and
1009 <dt>"printer-uri" (uri):
1011 <dd>The client MUST supply a URI for the specified printer.
1015 <p>Group
2: Printer Object Attributes
1019 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
1021 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1023 <dt>"job-sheets-default" (
1setOf name(
127)):
<span
1024 class='info'
>CUPS
1.1.7</span>
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.
1031 <dt>"device-uri" (uri):
1033 <dd>The client OPTIONALLY supplies a device URI for the
1036 <dt>"port-monitor" (name(
127)):
1038 <dd>The client OPTIONALLY supplies a port monitor name for the
1041 <dt>"ppd-name" (name(
127)):
1043 <dd>The client OPTIONALLY supplies a PPD name for the specified
1046 <dt>"printer-is-accepting-jobs" (boolean):
1048 <dd>The client OPTIONALLY supplies this boolean attribute
1049 indicating whether or not the printer object should accept new jobs.
1051 <dt>"printer-info" (text(
127)):
1053 <dd>The client OPTIONALLY supplies this attribute indicating the
1054 printer information string.
1056 <dt>"printer-location" (text(
127)):
1058 <dd>The client OPTIONALLY supplies this attribute indicating a
1059 textual location of the printer.
1061 <dt>"printer-more-info" (uri):
1063 <dd>The client OPTIONALLY supplies this attribute indicating a
1064 URI for additional printer information.
1066 <dt>"printer-state" (type2 enum):
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.
1072 <dt>"printer-state-message" (text(MAX)):
1074 <dd>The client OPTIONALLY supplies this attribute indicating a
1075 textual reason for the current printer state.
1077 <dt>"requesting-user-name-allowed" (
1setof name(
127) | delete)
1079 <br>"requesting-user-name-denied" (
1setof name(
127) | delete):
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
1088 <p>The CUPS-Add-Modify-Printer request can optionally be followed by a PPD
1089 file 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
1091 the request with a local CUPS PPD file.
1093 <h4>CUPS-Add-Modify-Printer Response
</h4>
1095 <p>The following groups of attributes are send as part of the
1096 CUPS-Add-Modify-Printer Response:
1098 <p>Group
1: Operation Attributes
1104 <dd>The standard response status message.
1106 <dt>Natural Language and Character Set:
1108 <dd>The
"attributes-charset" and
"attributes-natural-language"
1109 attributes as described in section
3.1.4.2 of the IPP Model and
1114 <h3 class='title'
><a name='CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer Operation
</a></h3>
1116 <p>The CUPS-Delete-Printer operation (
0x4004) removes an existing
1117 printer from the system.
1119 <h4>CUPS-Delete-Printer Request
</h4>
1121 <p>The following groups of attributes are supplied as part of the
1122 CUPS-Delete-Printer request:
1124 <p>Group
1: Operation Attributes
1128 <dt>Natural Language and Character Set:
1130 <dd>The
"attributes-charset" and
"attributes-natural-language"
1131 attributes as described in section
3.1.4.1 of the IPP Model and
1134 <dt>"printer-uri" (uri):
1136 <dd>The client MUST supply a URI for the specified printer.
1140 <h4>CUPS-Delete-Printer Response
</h4>
1142 <p>The following groups of attributes are send as part of the
1143 CUPS-Delete-Printer Response:
1145 <p>Group
1: Operation Attributes
1151 <dd>The standard response status message.
1153 <dt>Natural Language and Character Set:
1155 <dd>The
"attributes-charset" and
"attributes-natural-language"
1156 attributes as described in section
3.1.4.2 of the IPP Model and
1161 <h3 class='title'
><a name='CUPS_GET_CLASSES'
>CUPS-Get-Classes Operation
</a></h3>
1163 <p>The CUPS-Get-Classes operation (
0x4005) returns the printer
1164 attributes for every printer class known to the system. This may
1165 include printer classes that are not served directly by the server.
1167 <h4>CUPS-Get-Classes Request
</h4>
1169 <p>The following groups of attributes are supplied as part of the
1170 CUPS-Get-Classes request:
1172 <p>Group
1: Operation Attributes
1176 <dt>Natural Language and Character Set:
1178 <dd>The
"attributes-charset" and
"attributes-natural-language"
1179 attributes as described in section
3.1.4.1 of the IPP Model and
1182 <dt>"first-printer-name" (name(
127)):
<span class='info'
>CUPS
1.2</span>
1184 <dd>The client OPTIONALLY supplies this attribute to
1185 select the first printer that is returned.
1187 <dt>"limit" (integer (
1:MAX)):
1189 <dd>The client OPTIONALLY supplies this attribute limiting the
1190 number of printer classes that are returned.
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.
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.
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"
1205 <dt>"requested-attributes" (
1setOf keyword) :
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'.
1212 <dt>"requested-user-name" (name(
127)) :
<span class='info'
>CUPS
1.2</span>
1214 <dd>The client OPTIONALLY supplies a user name that is used to filter
1215 the returned printers.
1219 <h4>CUPS-Get-Classes Response
</h4>
1221 <p>The following groups of attributes are send as part of the
1222 CUPS-Get-Classes Response:
1224 <p>Group
1: Operation Attributes
1230 <dd>The standard response status message.
1232 <dt>Natural Language and Character Set:
1234 <dd>The
"attributes-charset" and
"attributes-natural-language"
1235 attributes as described in section
3.1.4.2 of the IPP Model and
1240 <p>Group
2: Printer Class Object Attributes
1244 <dt>The set of requested attributes and their current values for
1249 <h3 class='title'
><a name='CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class Operation
</a></h3>
1251 <p>The CUPS-Add-Modify-Class operation (
0x4006) adds a new printer class or
1252 modifies and existing printer class on the system.
1254 <h4>CUPS-Add-Modify-Class Request
</h4>
1256 <p>The following groups of attributes are supplied as part of the
1257 CUPS-Add-Modify-Class request:
1259 <p>Group
1: Operation Attributes
1263 <dt>Natural Language and Character Set:
1265 <dd>The
"attributes-charset" and
"attributes-natural-language"
1266 attributes as described in section
3.1.4.1 of the IPP Model and
1269 <dt>"printer-uri" (uri):
1271 <dd>The client MUST supply a URI for the specified printer class.
1275 <p>Group
2: Printer Object Attributes
1279 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
1281 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1283 <dt>"member-uris" (
1setof uri):
1285 <dd>The client OPTIONALLY supplies the
"member-uris" set
1286 specifying the printers and printer classes that are part of the class.
1288 <dt>"printer-is-accepting-jobs" (boolean):
1290 <dd>The client OPTIONALLY supplies this boolean attribute
1291 indicating whether or not the class object should accept new jobs.
1293 <dt>"printer-info" (text(
127)):
1295 <dd>The client OPTIONALLY supplies this attribute indicating the
1296 printer information string.
1298 <dt>"printer-location" (text(
127)):
1300 <dd>The client OPTIONALLY supplies this attribute indicating a
1301 textual location of the class.
1303 <dt>"printer-more-info" (uri):
1305 <dd>The client OPTIONALLY supplies this attribute indicating a
1306 URI for additional class information.
1308 <dt>"printer-state" (type2 enum):
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.
1314 <dt>"printer-state-message" (text(MAX)):
1316 <dd>The client OPTIONALLY supplies this attribute indicating a
1317 textual reason for the current class state.
1319 <dt>"requesting-user-name-allowed" (
1setof name(
127))
1321 <br>"requesting-user-name-denied" (
1setof name(
127)):
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
1330 <h4>CUPS-Add-Modify-Class Response
</h4>
1332 <p>The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
1334 <p>Group
1: Operation Attributes
1340 <dd>The standard response status message.
1342 <dt>Natural Language and Character Set:
1344 <dd>The
"attributes-charset" and
"attributes-natural-language"
1345 attributes as described in section
3.1.4.2 of the IPP Model and
1350 <h3 class='title'
><a name='CUPS_DELETE_CLASS'
>CUPS-Delete-Class Operation
</a></h3>
1352 <p>The CUPS-Delete-Class operation (
0x4007) removes an existing printer
1353 class from the system.
1355 <h4>CUPS-Delete-Class Request
</h4>
1357 <p>The following groups of attributes are supplied as part of the
1358 CUPS-Delete-Class request:
1360 <p>Group
1: Operation Attributes
1364 <dt>Natural Language and Character Set:
1366 <dd>The
"attributes-charset" and
"attributes-natural-language"
1367 attributes as described in section
3.1.4.1 of the IPP Model and
1370 <dt>"printer-uri" (uri):
1372 <dd>The client MUST supply a URI for the specified printer class.
1376 <h4>CUPS-Delete-Class Response
</h4>
1378 <p>The following groups of attributes are send as part of the
1379 CUPS-Delete-Class Response:
1381 <p>Group
1: Operation Attributes
1387 <dd>The standard response status message.
1389 <dt>Natural Language and Character Set:
1391 <dd>The
"attributes-charset" and
"attributes-natural-language"
1392 attributes as described in section
3.1.4.2 of the IPP Model and
1397 <h3 class='title'
><a name='CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs Operation
</a></h3>
1399 <p>The CUPS-Accept-Jobs operation (
0x4008) sets the
1400 "printer-is-accepting-jobs" attribute to true for the specified printer
1403 <h4>CUPS-Accept-Jobs Request
</h4>
1405 <p>The following groups of attributes are supplied as part of the
1406 CUPS-Accept-Jobs request:
1408 <p>Group
1: Operation Attributes
1412 <dt>Natural Language and Character Set:
1414 <dd>The
"attributes-charset" and
"attributes-natural-language"
1415 attributes as described in section
3.1.4.1 of the IPP Model and
1418 <dt>"printer-uri" (uri):
1420 <dd>The client MUST supply a URI for the specified printer or printer class.
1424 <h4>CUPS-Accept-Jobs Response
</h4>
1426 <p>The following groups of attributes are send as part of the
1427 CUPS-Accept-Jobs Response:
1429 <p>Group
1: Operation Attributes
1435 <dd>The standard response status message.
1437 <dt>Natural Language and Character Set:
1439 <dd>The
"attributes-charset" and
"attributes-natural-language"
1440 attributes as described in section
3.1.4.2 of the IPP Model and
1445 <h3 class='title'
><a name='CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs Operation
</a></h3>
1447 <p>The CUPS-Reject-Jobs operation (
0x4009) sets
1448 the
"printer-is-accepting-jobs" attribute to false for the specified
1449 printer or printer class.
1451 <h4>CUPS-Reject-Jobs Request
</h4>
1453 <p>The following groups of attributes are supplied as part of the
1454 CUPS-Reject-Jobs request:
1456 <p>Group
1: Operation Attributes
1460 <dt>Natural Language and Character Set:
1462 <dd>The
"attributes-charset" and
"attributes-natural-language"
1463 attributes as described in section
3.1.4.1 of the IPP Model and
1466 <dt>"printer-uri" (uri):
1468 <dd>The client MUST supply a URI for the specified printer or printer class.
1472 <p>Group
2: Printer Object Attributes
1476 <dt>"printer-state-message" (text(MAX)):
1478 <dd>The client OPTIONALLY supplies this attribute indicating a
1479 textual reason for the current printer state.
1483 <h4>CUPS-Reject-Jobs Response
</h4>
1485 <p>The following groups of attributes are send as part of the
1486 CUPS-Reject-Jobs Response:
1488 <p>Group
1: Operation Attributes
1494 <dd>The standard response status message.
1496 <dt>Natural Language and Character Set:
1498 <dd>The
"attributes-charset" and
"attributes-natural-language"
1499 attributes as described in section
3.1.4.2 of the IPP Model and
1504 <h3 class='title'
><a name='CUPS_SET_DEFAULT'
>CUPS-Set-Default Operation
</a></h3>
1506 <p>The CUPS-Set-Default operation (
0x400A) sets the default printer
1507 destination for all clients when a resource name of
"/printers" is
1510 <h4>CUPS-Set-Default Request
</h4>
1512 <p>The following groups of attributes are supplied as part of the
1513 CUPS-Set-Default request:
1515 <p>Group
1: Operation Attributes
1519 <dt>Natural Language and Character Set:
1521 <dd>The
"attributes-charset" and
"attributes-natural-language"
1522 attributes as described in section
3.1.4.1 of the IPP Model and
1525 <dt>"printer-uri" (uri):
1527 <dd>The client MUST supply a URI for the specified printer or
1532 <h4>CUPS-Set-Default Response
</h4>
1534 <p>The following groups of attributes are send as part of the
1535 CUPS-Set-Default Response:
1537 <p>Group
1: Operation Attributes
1543 <dd>The standard response status message.
1545 <dt>Natural Language and Character Set:
1547 <dd>The
"attributes-charset" and
"attributes-natural-language"
1548 attributes as described in section
3.1.4.2 of the IPP Model and
1553 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_DEVICES'
>CUPS-Get-Devices Operation
</a></h3>
1555 <p>The CUPS-Get-Devices operation (
0x400B) returns all of the
1556 supported device-uri's for the server.
</p>
1558 <h4>CUPS-Get-Devices Request
</h4>
1560 <p>The following groups of attributes are supplied as part of the
1561 CUPS-Get-Devices request:
1563 <p>Group
1: Operation Attributes
1567 <dt>Natural Language and Character Set:
1569 <dd>The
"attributes-charset" and
"attributes-natural-language"
1570 attributes as described in section
3.1.4.1 of the IPP Model and
1573 <dt>"device-class" (type1 keyword):
1575 <dd>The client OPTIONALLY supplies a device class keyword to select
1576 which devices are returned.
1578 <dt>"exclude-schemes" (
1setOf name) :
<span class='info'
>CUPS
1.4</span>
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,
1582 the server responds with devices of all schemes specified by
1583 the
"include-schemes" attribute.
1585 <dt>"include-schemes" (
1setOf name) :
<span class='info'
>CUPS
1.4</span>
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.
1592 <dt>"limit" (integer (
1:MAX)):
1594 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1595 devices that are returned.
1597 <dt>"requested-attributes" (
1setOf keyword) :
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'.
1604 <dt>"timeout" (integer (
1:MAX)) :
<span class='info'
>CUPS
1.4</span>
1606 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1607 devices that are returned.
1611 <h4>CUPS-Get-Devices Response
</h4>
1613 <p>The following groups of attributes are send as part of the
1614 CUPS-Get-Devices Response:
1616 <p>Group
1: Operation Attributes
1622 <dd>The standard response status message.
1624 <dt>Natural Language and Character Set:
1626 <dd>The
"attributes-charset" and
"attributes-natural-language"
1627 attributes as described in section
3.1.4.2 of the IPP Model and
1632 <p>Group
2: Device Object Attributes
1636 <dt>The set of requested attributes and their current values for
1641 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_PPDS'
>CUPS-Get-PPDs Operation
</a></h3>
1643 <p>The CUPS-Get-PPDs operation (
0x400C) returns all of the
1644 locally available PPD files on the system.
</p>
1646 <h4>CUPS-Get-PPDs Request
</h4>
1648 <p>The following groups of attributes are supplied as part of the
1649 CUPS-Get-PPDs request:
1651 <p>Group
1: Operation Attributes
1655 <dt>Natural Language and Character Set:
1657 <dd>The
"attributes-charset" and
"attributes-natural-language"
1658 attributes as described in section
3.1.4.1 of the IPP Model and
1661 <dt>"exclude-schemes" (
1setOf name) :
<span class='info'
>CUPS
1.4</span>
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.
1668 <dt>"include-schemes" (
1setOf name) :
<span class='info'
>CUPS
1.4</span>
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.
1675 <dt>"limit" (integer (
1:MAX)):
1677 <dd>The client OPTIONALLY supplies this attribute limiting the number of PPDs that are returned.
1679 <dt>"ppd-make" (text(
127)):
1681 <dd>The client OPTIONALLY supplies a printer manufacturer to select which PPDs are returned.
1683 <dt>"ppd-make-and-model" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1685 <dd>The client OPTIONALLY supplies a make and model to select which PPDs are returned.
1687 <dt>"ppd-model-number" (integer):
<span class='info'
>CUPS
1.3</span>
1689 <dd>The client OPTIONALLY supplies a model number to select which PPDs are returned.
1691 <dt>"ppd-natural-language" (naturalLanguage):
<span class='info'
>CUPS
1.3</span>
1693 <dd>The client OPTIONALLY supplies a language to select which PPDs are returned.
1695 <dt>"ppd-product" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1697 <dd>The client OPTIONALLY supplies a PostScript product string to select which PPDs are returned.
1699 <dt>"ppd-psversion" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1701 <dd>The client OPTIONALLY supplies a PostScript version string to select which PPDs are returned.
1703 <dt>"ppd-type" (type1 keyword):
<span class='info'
>CUPS
1.3</span>
1705 <dd>The client OPTIONALLY supplies a driver type to select which PPDs are returned.
1707 <dt>"requested-attributes" (
1setOf keyword) :
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.
1713 <h4>CUPS-Get-PPDs Response
</h4>
1715 <p>The following groups of attributes are send as part of the
1716 CUPS-Get-PPDs Response:
1718 <p>Group
1: Operation Attributes
1724 <dd>The standard response status message.
1726 <dt>Natural Language and Character Set:
1728 <dd>The
"attributes-charset" and
"attributes-natural-language"
1729 attributes as described in section
3.1.4.2 of the IPP Model and
1734 <p>Group
2: PPD Attributes
1738 <dt>The set of requested attributes and their current values for each
1743 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_MOVE_JOB'
>CUPS-Move-Job Operation
</a></h3>
1745 <p>The CUPS-Move-Job operation (
0x400D) moves an active print job or all print
1746 jobs for a printer to a different printer.
</p>
1748 <h4>CUPS-Move-Job Request
</h4>
1750 <p>The following groups of attributes are supplied as part of the
1751 CUPS-Move-Job request:
1753 <p>Group
1: Operation Attributes
1757 <dt>Natural Language and Character Set:
1759 <dd>The
"attributes-charset" and
"attributes-natural-language"
1760 attributes as described in section
3.1.4.1 of the IPP Model and
1763 <dt>"printer-uri" (uri)
1765 <dt>"printer-uri" (uri) and
"job-id" (integer)
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.
1774 <p>Group
2: Job Template Attributes
1778 <dt>"job-printer-uri" (uri)
1780 <dd>The client MUST supply a URI for a printer on the same server.
1784 <h4>CUPS-Move-Job Response
</h4>
1786 <p>The following groups of attributes are send as part of the
1787 CUPS-Move-Job Response:
1789 <p>Group
1: Operation Attributes
1795 <dd>The standard response status message.
1797 <dt>Natural Language and Character Set:
1799 <dd>The
"attributes-charset" and
"attributes-natural-language"
1800 attributes as described in section
3.1.4.2 of the IPP Model and
1805 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a name='CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job Operation
</a></h3>
1807 <p>The CUPS-Authenticate-Job operation (
0x400E) authenticates a print job for
1808 printing, releasing the job if it is held. Typically this is used when printing
1809 to a remote server. The authentication information is passed in the HTTP
1810 request; the HTTP connection is normally encrypted for this type of request.
</p>
1812 <h4>CUPS-Authenticate-Job Request
</h4>
1814 <p>The following groups of attributes are supplied as part of the
1815 CUPS-Authenticate-Job request:
1817 <p>Group
1: Operation Attributes
1821 <dt>Natural Language and Character Set:
1823 <dd>The
"attributes-charset" and
"attributes-natural-language"
1824 attributes as described in section
3.1.4.1 of the IPP Model and
1827 <dt>"printer-uri" (uri) and
"job-id" (integer)
1831 <dd>The client MUST supply a URI for the specified printer and
1832 a job ID number, or the job URI.
1836 <p>Group
2: Job Attributes
1840 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
1842 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
1844 <dt>"job-hold-until" (keyword | name(MAX)):
<span class='info'
>CUPS
1.3</span>
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.
1852 <h4>CUPS-Authenticate-Job Response
</h4>
1854 <p>The following groups of attributes are send as part of the
1855 CUPS-Authenticate-Job Response:
1857 <p>Group
1: Operation Attributes
1863 <dd>The standard response status message.
1865 <dt>Natural Language and Character Set:
1867 <dd>The
"attributes-charset" and
"attributes-natural-language"
1868 attributes as described in section
3.1.4.2 of the IPP Model and
1873 <p>Group
2: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
1877 <dt>auth-info-required (
1setOf Type2 keyword)
1879 <dd>The required authentication information.
1883 <h3 class='title'
><span class='info'
>CUPS
1.3</span><a name='CUPS_GET_PPD'
>CUPS-Get-PPD Operation
</a></h3>
1885 <p>The CUPS-Get-PPD operation (
0x400F) gets a PPD file from the
1886 server. The PPD file can be specified using a
<tt>ppd-name
</tt>
1887 returned by
<a href='#CUPS_GET_PPDS'
><tt>CUPS-Get-PPDs
</tt></a>
1888 or using the
<tt>printer-uri
</tt> for a queue.
</p>
1890 <p>If the PPD file is found,
<tt>successful-ok
</tt> is returned with
1891 the PPD file following the response data.
</p>
1893 <p>If the PPD file cannot be served by the local server because
1894 the
<tt>printer-uri
</tt> attribute points to an external printer,
1895 a
<tt>cups-see-other
</tt> status is returned with the correct
1898 <p>If the PPD file does not exist,
<tt>client-error-not-found
</tt> is
1901 <h4>CUPS-Get-PPD Request
</h4>
1903 <p>The following group of attributes is supplied as part of the
1904 CUPS-Get-PPD request:
1906 <p>Group
1: Operation Attributes
1910 <dt>Natural Language and Character Set:
1912 <dd>The
"attributes-charset" and
"attributes-natural-language"
1913 attributes as described in section
3.1.4.1 of the IPP Model and
1916 <dt>"printer-uri" (uri)
1918 <br>"ppd-name" (name(
255)):
1920 <dd>The client MUST supply a printer URI or PPD name.
1924 <h4>CUPS-Get-PPD Response
</h4>
1926 <p>The following group of attributes is sent as part of the
1927 CUPS-Get-PPD Response:
1929 <p>Group
1: Operation Attributes
1935 <dd>The standard response status message.
1937 <dt>Natural Language and Character Set:
1939 <dd>The
"attributes-charset" and
"attributes-natural-language"
1940 attributes as described in section
3.1.4.2 of the IPP Model and
1943 <dt>"printer-uri" (uri):
1945 <dd>The printer that provides the actual PPD file when
1946 the status code is cups-see-other (
0x280)
1950 <p>If the status code is
<tt>successful-ok
</tt>, the PPD file follows
1951 the end of the IPP response.
</p>
1953 <h3 class='title'
><span class='info'
>CUPS
1.4</span><a name='CUPS_GET_DOCUMENT'
>CUPS-Get-Document Operation
</a></h3>
1955 <p>The CUPS-Get-Document operation (
0x4027) gets a document file from a
1956 job 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>
1958 and
<tt>job-id
</tt> identifying the job.
</p>
1960 <p>If the document file is found,
<tt>successful-ok
</tt> is returned with
1961 the document file following the response data.
</p>
1963 <p>If the document file does not exist,
<tt>client-error-not-found
</tt> is
1966 <p>If the requesting user does not have access to the document file,
1967 <tt>client-error-not-authorized
</tt> is returned.
1969 <h4>CUPS-Get-Document Request
</h4>
1971 <p>The following group of attributes is supplied as part of the
1972 CUPS-Get-Document request:
1974 <p>Group
1: Operation Attributes
1978 <dt>Natural Language and Character Set:
1980 <dd>The
"attributes-charset" and
"attributes-natural-language"
1981 attributes as described in section
3.1.4.1 of the IPP Model and
1984 <dt>"printer-uri" (uri) and
"job-id" (integer)
1986 <br>"job-uri" (uri):
1988 <dd>The client MUST supply a printer URI and job ID or job URI.
1990 <dt>"document-number" (integer(
1:MAX)):
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.
2001 <h4>CUPS-Get-Document Response
</h4>
2003 <p>The following group of attributes is sent as part of the
2004 CUPS-Get-Document Response:
2006 <p>Group
1: Operation Attributes
2012 <dd>The standard response status message.
2014 <dt>Natural Language and Character Set:
2016 <dd>The
"attributes-charset" and
"attributes-natural-language"
2017 attributes as described in section
3.1.4.2 of the IPP Model and
2020 <dt>"document-format" (mimeType):
2022 <dd>The format of the document file.
2024 <dt>"document-number" (integer(
1:MAX)):
2026 <dd>The requested document number.
2028 <dt>"document-name" (name(MAX)):
2030 <dd>The name that was supplied with the document, if any.
2034 <p>If the status code is
<tt>successful-ok
</tt>, the document file follows
2035 the end of the IPP response.
</p>
2038 <h2 class='title'
><a name='ATTRIBUTES'
>Attributes
</a></h2>
2040 <p>CUPS provides many extension attributes to support multiple
2041 devices, PPD files, standard job filters, printers, and printer
2044 <h3 class='title'
><a name='DEVICE_ATTRIBUTES'
>Device Attributes
</a></h3>
2046 <p>Device attributes are returned by the CUPS-Get-Devices
2047 operation and enumerate all of the available hardware devices and
2048 network protocols that are supported by the server.
</p>
2050 <h4><a name=
"device-class">device-class (type2 keyword)
</a></h4>
2052 <p>The device-class attribute specifies the class of device and can be
2053 one of the following:
2057 <li>"file" - a disk file.
2059 <li>"direct" - a parallel or fixed-rate serial data port,
2060 currently used for Centronics, IEEE-
1284, and USB printer
2063 <li>"serial" - a variable-rate serial port.
2065 <li>"network" - a network connection, typically via AppSocket,
2066 HTTP, IPP, LPD, or SMB/CIFS protocols.
2070 <h4><a name=
"device-id">device-id (text(
127))
</a><span class=
"info">CUPS
1.2</span></h4>
2072 <p>The device-id attribute specifies the IEEE-
1284 device ID
2073 string for the device.
</p>
2075 <h4><a name=
"device-info">device-info (text(
127))
</a></h4>
2077 <p>The device-info attribute specifies a human-readable string describing
2078 the device, e.g.
"Parallel Port #1".
2080 <h4><a name=
"device-location">device-location (text(
127))
</a><span class=
"info">CUPS
1.4</span></h4>
2082 <p>The device-location attribute specifies the physical location of the
2085 <h4><a name=
"device-make-and-model">device-make-and-model (text(
127))
</a></h4>
2087 <p>The device-make-and-model attribute specifies a device
2088 identification string provided by the printer connected to the device.
2089 If the device or printer does not support identification then this
2090 attribute contains the string
"unknown".
2092 <h4><a name=
"device-uri">device-uri (uri)
</a></h4>
2094 <p>The device-uri attribute specifies a unique identifier for the
2095 device. The actual format of the device-uri string depends on the value
2096 of the device-class attribute:
2100 <li>"file" - The device-uri will be of the form
2101 "file:///path/to/filename".
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
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).
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").
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.
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.
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.
2138 <h3 class='title'
><a name='JOB_TEMPLATE_ATTRIBUTES'
>Job Template Attributes
</a></h3>
2140 <h4><a name=
"auth-info">auth-info (
1setOf text(MAX))
</a><span class=
"info">CUPS
1.3</span></h4>
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.
2144 <h4><a name=
"blackplot">blackplot (boolean)
</a></h4>
2146 <p>The blackplot attribute specifies whether HP-GL/
2 plot files should be
2147 rendered entirely in black ink (blackplot=true) or using the colors and shades
2148 specified in the file (blackplot=false). The default value is false.
2150 <h4><a name=
"brightness">brightness (integer(
0:
200))
</a><span class=
"info">Deprecated
</span></h4>
2152 <p>The brightness attribute specifies the overall brightness of the printed
2153 output in percent. A brightness of
100 is normal, while
200 is twice as
2154 bright and
50 is half as bright. The default value is
100.
2156 <p>Brightness is applied to the Cyan, Magenta, Yellow, and Black values using
2157 the function
"f(x) = brightness / 100 * x".
2159 <blockquote><b>Note:
</b>
2161 <p>This attribute is deprecated and will be removed from a future CUPS
2166 <h4><a name=
"columns">columns (integer(
1:
4))
</a> <span class='info'
>Deprecated
</span></h4>
2168 <p>The columns attribute specifies the number of columns to generate when
2169 printing text files. The default value is
1.
2171 <h4><a name=
"cpi">cpi (type2 enum)
</a></h4>
2173 <p>The cpi attribute specifies the number of characters per inch when
2174 printing text files. Only the values
10,
12, and
17 are currently
2175 supported. The default value is
10.
2177 <h4><a name=
"document-count">document-count (integer(
1:MAX))
</a></h4>
2179 <p>The document-count attribute specifies the number of documents that
2180 are present in the job.
2182 <h4><a name=
"fit-to-page">fit-to-page (boolean)
</a><span class=
"info">CUPS
1.4</span></h4>
2184 <p>The fit-to-page attribute specifies whether to scale documents to fit on the
2185 selected media (fit-to-page=true) or use the physical size specified in the
2186 document (fit-to-page=false). The default value is false.
2188 <h4><a name=
"fitplot">fitplot (boolean)
</a><span class=
"info">Deprecated
</span></h4>
2190 <p>The fitplot attribute specifies whether to scale HP-GL/
2 plot files to
2191 fit on the selected media (fitplot=true) or use the physical scale specified
2192 in the plot file (fitplot=false). The default value is false.
2194 <h4><a name=
"gamma">gamma (integer(
1:
10000))
</a><span class=
"info">Deprecated
</span></h4>
2196 <p>The gamma attribute specifies the luminance correction for the output.
2197 A value of
1000 specifies no correction, while values of
2000 and
500 will
2198 generate lighter and darker output, respectively. The default value is
2201 <p>Gamma is applied to the Red, Green, and Blue values (or luminance for
2202 grayscale output) using the function
"f(x) = x<sup>(1000/gamma)</sup>".
2204 <blockquote><b>Note:
</b>
2206 <p>This attribute is deprecated and will be removed from a future CUPS
2211 <h4><a name=
"hue">hue (integer(-
180:
180))
</a><span class=
"info">Deprecated
</span></h4>
2213 <p>The hue attribute specifies a color hue rotation when printing image
2214 files. The default value is
0.
2216 <blockquote><b>Note:
</b>
2218 <p>This attribute is deprecated and will be removed from a future CUPS
2223 <h4><a name=
"job-billing">job-billing (text(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2225 <p>The job-billing attribute provides a text value to associate with a job
2226 for billing purposes.
2228 <h4><a name=
"job-hold-until">job-hold-until (keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2230 <p>The job-hold-until attribute specifies a hold time. In addition to the
2231 standard 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
2233 Universal Coordinated Time (UTC) and
<i>not
</i> in the local time zone. If the
2234 specified time is less than the current time, the job is held until the
2237 <h4><a name=
"job-media-progress">job-media-progress (integer(
0:
100))
</a><span class='info'
>CUPS
1.4</span></h4>
2239 <p>The job-media-progress attribute specifies the percentage of completion of
2240 the current page. It is only valid when the job-state attribute has the
2241 "processing" value (
5).
</p>
2243 <h4><a name=
"job-printer-state-message">job-printer-state-message (text(MAX))
</a><span class='info'
>CUPS
1.3</span></h4>
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>
2247 <h4><a name=
"job-printer-state-reasons">job-printer-state-reasons (
1setOf type2 keyword)
</a><span class='info'
>CUPS
1.3</span></h4>
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>
2251 <h4><a name=
"job-sheets">job-sheets (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2253 <p>The job-sheets attribute specifies one or two banner files that are printed
2254 before and after a job. The reserved value of
"none" disables banner printing.
2255 The default value is stored in the job-sheets-default attribute.
2257 <p>If only one value is supplied, the banner file is printed before the job.
2258 If two values are supplied, the first value is used as the starting banner
2259 file and the second as the ending banner file.
2261 <h4><a name=
"job-originating-host-name">job-originating-host-name (name(MAX))
</a></h4>
2263 <p><i>(CUPS
1.1.5 and higher)
</i>
2265 <p>The job-originating-host-name attribute specifies the host
2266 from which the job was queued. The value will be the hostname or
2267 IP address of the client depending on whether hostname
2268 resolution is enabled. The localhost address (
127.0.0.1) is
2269 <b>always
</b> resolved to the name
"localhost".
2271 <p>This attribute is read-only.
2273 <h4><a name=
"lpi">lpi (type2 enum)
</a></h4>
2275 <p>The lpi attribute specifies the number of lines per inch when
2276 printing text files. Only the values
6 and
8 are currently supported.
2277 The default value is
6.
2279 <h4><a name=
"mirror">mirror (boolean)
</a></h4>
2281 <p>The mirror attribute specifies whether pages are mirrored on
2282 their X axis, which is useful for printing transfer images on
2283 special media. The default value is false.
2285 <h4><a name=
"natural-scaling">natural-scaling (integer(
1:
1000))
</a><span class='info'
>CUPS
1.1.9</span></h4>
2286 <p>The natural-scaling attribute specifies the scaling of image files with
2287 respect to the natural image size. A value of
100 specifies that the image
2288 file should exactly the natural size, while
50 is half the natural size
2289 and
200 is twice the natural size. The default value is
100.
2291 <p>The ppi option can be used to override the natural resolution of the
2292 image, which controls the natural size.
2294 <h4><a name=
"number-up-layout">number-up-layout (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2295 <p>The number-up-layout attribute specifies the order each input
2296 page is placed on each output page. The following keywords are
2301 <li><CODE>btlr
</CODE> - Bottom to top, left to right
</li>
2303 <li><CODE>btrl
</CODE> - Bottom to top, right to left
</li>
2305 <li><CODE>lrbt
</CODE> - Left to right, bottom to top
</li>
2307 <li><CODE>lrtb
</CODE> - Left to right, top to bottom (default)
</li>
2309 <li><CODE>rlbt
</CODE> - Right to left, bottom to top
</li>
2311 <li><CODE>rltb
</CODE> - Right to left, top to bottom
</li>
2313 <li><CODE>tblr
</CODE> - Top to bottom, left to right
</li>
2315 <li><CODE>tbrl
</CODE> - Top to bottom, right to left
</li>
2319 <h4><a name=
"page-border">page-border (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2320 <p>The page-border attribute specifies whether a border is
2321 draw around each page. The following keywords are presently
2326 <li><CODE>double
</CODE> - Two hairline borders are drawn
</li>
2328 <li><CODE>double-thick
</CODE> - Two
1pt borders are drawn
</li>
2330 <li><CODE>none
</CODE> - No border is drawn (default)
</li>
2332 <li><CODE>single
</CODE> - A single hairline border is drawn
</li>
2334 <li><CODE>single-thick
</CODE> - A single
1pt border is drawn
</li>
2338 <h4><a name=
"page-bottom">page-bottom (integer(
0:MAX))
</a></h4>
2340 <p>The page-bottom attribute specifies the bottom margin in points (
72 points
2341 equals
1 inch). The default value is the device physical margin.
2343 <h4><a name=
"page-label">page-label (text(MAX))
</a><span class='info'
>CUPS
1.1.7</span></h4>
2344 <p>The page-label attribute provides a text value to place in
2345 the header and footer on each page. If a classification level is
2346 set on the server, then this classification is printed before
2349 <h4><a name=
"page-left">page-left (integer(
0:MAX))
</a></h4>
2351 <p>The page-left attribute specifies the left margin in points (
72 points
2352 equals
1 inch). The default value is the device physical margin.
2354 <h4><a name=
"page-right">page-right (integer(
0:MAX))
</a></h4>
2356 <p>The page-right attribute specifies the right margin in points (
72 points
2357 equals
1 inch). The default value is the device physical margin.
2359 <h4><a name=
"page-set">page-set (type2 keyword)
</a></h4>
2361 <p>The page-set attribute specifies which pages to print in a file. The
2362 supported keywords are
"all",
"even", and
"odd". The default value is
2365 <h4><a name=
"page-top">page-top (integer(
0:MAX))
</a></h4>
2367 <p>The page-top attribute specifies the top margin in points (
72 points
2368 equals
1 inch). The default value is the device physical margin.
2370 <h4><a name=
"penwidth">penwidth (integer(
0:MAX))
</a></h4>
2372 <p>The penwidth attribute specifies the default pen width in micrometers
2373 when printing HP-GL/
2 plot files. The default value is
1000 (
1 millimeter).
2375 <h4><a name=
"position">position (type2 keyword)
</a></h4>
2377 <p>The position attribute specifies the location of image files on the
2378 media. The following keyword values are recognized:
2382 <li><CODE>center
</CODE> - Center the image on the page (default)
2384 <li><CODE>top
</CODE> - Print the image centered at the top of the page
2386 <li><CODE>left
</CODE> - Print the image centered on the left of page
2388 <li><CODE>right
</CODE> - Print the image centered on the right of the page
2390 <li><CODE>top-left
</CODE> - Print the image at the top left corner of
2393 <li><CODE>top-right
</CODE> - Print the image at the top right corner of
2396 <li><CODE>bottom
</CODE> - Print the image centered at the bottom of
2399 <li><CODE>bottom-left
</CODE> - Print the image at the bottom left
2402 <li><CODE>bottom-right
</CODE> - Print the image at the bottom right
2407 <h4><a name=
"ppi">ppi (integer(
1:MAX))
</a></h4>
2409 <p>The ppi attribute specifies the resolution of an image file in pixels
2410 per inch. The default value is the resolution included with the file or
2411 128 if no resolution information is available.
2413 <h4><a name=
"prettyprint">prettyprint (boolean)
</a></h4>
2415 <p>The prettyprint attribute specifies whether text files should be printed
2416 with a shaded header and keyword highlighting (prettyprint=true) or without
2417 additional formatting (prettyprint=false). The default value is false.
2419 <h4><a name=
"saturation">saturation (integer(
0:
200))
</a><span class=
"info">Deprecated
</span></h4>
2421 <p>The saturation attribute specifies the color saturation when
2422 printing image files. A saturation of
100 is normal, while values of
50
2423 and
200 will be half and twice as colorful, respectively. The default
2426 <blockquote><b>Note:
</b>
2428 <p>This attribute is deprecated and will be removed from a future CUPS
2433 <h4><a name=
"scaling">scaling (integer(
1:
1000))
</a></h4>
2435 <p>The scaling attribute specifies the scaling of image files with
2436 respect to the selected media. A value of
100 specifies that the image
2437 file should fit
100% of the page, or as much as possible given the
2438 image dimensions. The default value is unspecified.
2440 <p>The scaling attribute overrides the ppi attribute if specified.
2442 <h4><a name=
"wrap">wrap (boolean)
</a></h4>
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
2448 <h3 class='title'
><a name='PPD_ATTRIBUTES'
>PPD Attributes
</a></h3>
2450 <h4><a name=
"ppd-device-id">ppd-device-id (text(
127))
</a></h4>
2452 <p>The ppd-device-id attribute specifies the IEEE-
1284 device ID
2453 string for the device described by the PPD file.
</p>
2455 <h4><a name=
"ppd-make">ppd-make (text(
127))
</a></h4>
2457 <p>The ppd-make attribute specifies the manufacturer of the printer
2458 (the Manufacturer attribute in the PPD file). If the manufacturer
2459 is not specified in the PPD file then an educated guess is made using
2460 the NickName attribute in the PPD file.
2462 <h4><a name=
"ppd-make-and-model">ppd-make-and-model (text(
127))
</a></h4>
2464 <p>The ppd-make-and-model attribute specifies the manufacturer and model
2465 name of the PPD file (the NickName attribute in the PPD file). If the
2466 make and model is not specified in the PPD file then the ModelName or
2467 ShortNickName attributes are used instead.
2469 <h4><a name=
"ppd-model-number">ppd-model-number (integer)
</a><span class=
"info">CUPS
1.3</span></h4>
2471 <p>The ppd-model-number attribute provides the
<tt>cupsModelNumber
</tt> value from the PPD file.
2473 <h4><a name=
"ppd-name">ppd-name (name(
255))
</a></h4>
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.
2477 <h4><a name=
"ppd-natural-language">ppd-natural-language (
1setOf naturalLanguage)
</a></h4>
2479 <p>The ppd-natural-language attribute specifies the language encoding
2480 of the PPD file (the LanguageVersion attribute in the PPD file). If the
2481 language is unknown or undefined then
"en" (English) is assumed.
2483 <h4><a name=
"ppd-product">ppd-product (
1setOf text(
127))
</a></h4>
2485 <p>The ppd-product attribute specifies the Product attribute values in the PPD file.
2487 <h4><a name=
"ppd-psversion">ppd-psversion (
1setOf text(
127))
</a><span class=
"info">CUPS
1.3</span></h4>
2489 <p>The ppd-product attribute specifies the PSVersion attribute values in the PPD file.
2491 <h4><a name=
"ppd-type">ppd-type (type1 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2493 <p>The ppd-type attribute specifies the type of driver described by the PPD file:
</p>
2497 <li><tt>fax
</tt> - A facsimile or multi-function device
</li>
2499 <li><tt>pdf
</tt> - A PDF printer
</li>
2501 <li><tt>postscript
</tt> - A PostScript printer (no filters)
</li>
2503 <li><tt>raster
</tt> - A CUPS raster driver
</li>
2505 <li><tt>unknown
</tt> - An unknown or hybrid driver
</li>
2510 <h3 class='title'
><a name='PRINTER_ATTRIBUTES'
>Printer Attributes
</a></h3>
2512 <h4><a name=
"auth-info-required">auth-info-required (
1setOf type2 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2514 <p>The auth-info-required attribute specifies the authentication information that is required for printing a job. The following keywords are recognized:
</p>
2518 <li><tt>domain
</tt> - A domain name is required.
</li>
2520 <li><tt>none
</tt> - No authentication is required - this keyword can only appear by itself.
</li>
2522 <li><tt>password
</tt> - A password is required.
</li>
2524 <li><tt>username
</tt> - A username is required.
</li>
2528 <h4><a name=
"job-k-limit">job-k-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2530 <p>The job-k-limit attribute specifies the maximum number of kilobytes that
2531 may be printed by a user, including banner files. The default value of
0
2532 specifies that there is no limit.
2534 <h4><a name=
"job-page-limit">job-page-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2536 <p>The job-page-limit attribute specifies the maximum number of pages that
2537 may be printed by a user, including banner files. The default value of
0
2538 specifies that there is no limit.
2540 <h4><a name=
"job-quota-period">job-quota-period (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2542 <p>The job-quota-period attribute specifies the time period used for quota
2543 calculations, in seconds. The default value of
0 specifies that the limits
2544 apply to all jobs that have been printed by a user that are still known to
2547 <h4><a name=
"job-sheets-supported">job-sheets-supported (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2549 <p>The job-sheets-supported attribute specifies the available banner files.
2550 There will always be at least one banner file available called
"none".
2552 <h4><a name=
"marker-change-time">marker-change-time (integer)
</a><span class='info'
>CUPS
1.3</span></h4>
2554 <p>The marker-change-time attribute specifies the printer-up-time value when
2555 the last change to the marker-colors, marker-levels, marker-message,
2556 marker-names, or marker-types attributes was made.
</p>
2558 <h4><a name=
"marker-colors">marker-colors (
1setof name(MAX))
</a><span class='info'
>CUPS
1.3</span></h4>
2560 <p>The marker-colors attribute specifies the color(s) for each supply in the
2561 printer. It is only available when the driver provides supply levels. The
2562 color is either
"none" or one or more hex-encoded sRGB colors of the form
2565 <h4><a name=
"marker-high-levels">marker-high-levels (
1setof integer(
0:
100))
</a><span class='info'
>CUPS
1.4</span></h4>
2567 <p>The marker-high-levels attribute specifies the supply levels that indicate
2568 a near-full condition. A value of
100 should be used for supplies that are
2569 consumed/emptied, e.g. ink cartridges.
</p>
2571 <h4><a name=
"marker-levels">marker-levels (
1setof integer(-
1:
100))
</a><span class='info'
>CUPS
1.3</span></h4>
2573 <p>The marker-levels attribute specifies the current supply levels for the
2574 printer. It is only available when the driver provides supply levels. A
2575 value of -
1 indicates the level is unknown, while values from
0 to
100
2576 indicate the corresponding percentage.
</p>
2578 <h4><a name=
"marker-low-levels">marker-low-levels (
1setof integer(
0:
100))
</a><span class='info'
>CUPS
1.4</span></h4>
2580 <p>The marker-low-levels attribute specifies the supply levels that indicate
2581 a near-empty condition. A value of
0 should be used for supplies that are
2582 filled, e.g. waste ink tanks.
</p>
2584 <h4><a name=
"marker-message">marker-message (text(MAX))
</a><span class='info'
>CUPS
1.4</span></h4>
2586 <p>The marker-message attribute provides a human-readable status message
2587 for the current supply levels, e.g.
"12 pages of ink remaining." It is only
2588 available when the driver provides supply levels.
</p>
2590 <h4><a name=
"marker-names">marker-names (
1setof name(MAX))
</a><span class='info'
>CUPS
1.3</span></h4>
2592 <p>The marker-names attribute specifies the name(s) for each supply in the
2593 printer. It is only available when the driver provides supply levels.
</p>
2595 <h4><a name=
"marker-types">marker-types (
1setof type3 keyword)
</a><span class='info'
>CUPS
1.3</span></h4>
2597 <p>The marker-types attribute specifies the type(s) of each supply in the
2598 printer. It is only available when the driver provides supply levels. The
2599 following (RFC
3805) types are currently supported:
</p>
2603 <li><tt>toner
</tt></li>
2605 <li><tt>wasteToner
</tt></li>
2607 <li><tt>ink
</tt></li>
2609 <li><tt>inkCartridge
</tt></li>
2611 <li><tt>inkRibbon
</tt></li>
2613 <li><tt>wasteInk
</tt></li>
2615 <li><tt>opc
</tt></li>
2617 <li><tt>developer
</tt></li>
2619 <li><tt>fuserOil
</tt></li>
2621 <li><tt>solidWax
</tt></li>
2623 <li><tt>ribbonWax
</tt></li>
2625 <li><tt>wasteWax
</tt></li>
2627 <li><tt>fuser
</tt></li>
2629 <li><tt>coronaWire
</tt></li>
2631 <li><tt>fuserOilWick
</tt></li>
2633 <li><tt>cleanerUnit
</tt></li>
2635 <li><tt>fuserCleaningPad
</tt></li>
2637 <li><tt>transferUnit
</tt></li>
2639 <li><tt>tonerCartridge
</tt></li>
2641 <li><tt>fuserOiler
</tt></li>
2643 <li><tt>water
</tt></li>
2645 <li><tt>wasteWater
</tt></li>
2647 <li><tt>bindingSupply
</tt></li>
2649 <li><tt>bandingSupply
</tt></li>
2651 <li><tt>stichingWire
</tt></li>
2653 <li><tt>shrinkWrap
</tt></li>
2655 <li><tt>paperWrap
</tt></li>
2657 <li><tt>staples
</tt></li>
2659 <li><tt>inserts
</tt></li>
2661 <li><tt>covers
</tt></li>
2665 <h4><a name=
"port-monitor">port-monitor
" (name(127))</a></h4>
2667 <p>The port-monitor attribute specifies the port monitor to use when printing
2668 to this printer. The default port monitor is "none
".
2670 <h4><a name="port-monitor-supported
">port-monitor-supported" (
1setOf name(
127))
</a></h4>
2672 <p>The port-monitor-supported attribute specifies the available port monitors.
2674 <h4><a name=
"printer-commands">printer-commands (
1setOf Type3 keyword)
</a><span class='info'
>CUPS
1.4</span></h4>
2676 <p>The printer-commands attribute specifies the commands that are supported
2677 by the CUPS command file filter. The keyword
"none" indicates that no commands
2680 <h4><a name=
"printer-dns-sd-name">printer-dns-sd-name (name(MAX) | noValue)
</a><span class='info'
>CUPS
1.4</span></h4>
2682 <p>The printer-dns-sd-name attribute specifies the registered DNS-SD service
2683 name for the printer. If the printer is not being shared using this protocol,
2684 printer-dns-sd-name will have the noValue value.
</p>
2686 <h4><a name=
"printer-state-reasons">printer-state-reasons (
1setOf type2 keyword)
</a></h4>
2688 <p>The printer-state-reasons attribute provides additional persistent state
2689 information for a printer. In addition to the keywords defined in RFC
2911,
2690 CUPS supports vendor-specific keywords with a domain prefix (
"com.vendor.foo")
2691 and the following CUPS-specific keywords:
</p>
2695 <li><tt>cups-insecure-filter-warning
</tt> - a filter or backend (or the
2696 directory containing the filter or backend) has insecure file
2697 permissions. CUPS will not execute programs with world write permissions
2698 or setuid programs. When run as root (the default), CUPS also does not
2699 execute programs that are not owned by root.
2700 <span class='info'
>CUPS
1.4</span></li>
2702 <li><tt>cups-missing-filter-warning
</tt> - a filter or backend is not
2703 installed.
<span class='info'
>CUPS
1.4</span></li>
2707 <h4><a name=
"printer-type">printer-type (type2 enum)
</a></h4>
2709 <p>The printer-type attribute specifies printer type and
2710 capability bits for the printer or class. The default value is
2711 computed from internal state information and the PPD file for the
2712 printer. The following bits are defined:
</p>
2714 <div class='table'
><table align='center' border='
1' width='
80%'
2715 summary='Printer Type Bits'
>
2719 <th>Description
</th>
2725 <td>Is a printer class.
</td>
2729 <td>Is a remote destination.
</td>
2733 <td>Can print in black.
</td>
2737 <td>Can print in color.
</td>
2741 <td>Can print on both sides of the page in hardware.
</td>
2745 <td>Can staple output.
</td>
2749 <td>Can do fast copies in hardware.
</td>
2753 <td>Can do fast copy collation in hardware.
</td>
2757 <td>Can punch output.
</td>
2761 <td>Can cover output.
</td>
2765 <td>Can bind output.
</td>
2769 <td>Can sort output.
</td>
2773 <td>Can handle media up to US-Legal/A4.
</td>
2777 <td>Can handle media from US-Legal/A4 to ISO-C/A2.
</td>
2781 <td>Can handle media larger than ISO-C/A2.
</td>
2785 <td>Can handle user-defined media sizes.
</td>
2789 <td>Is an implicit (server-generated) class.
</td>
2793 <td>Is the a default printer on the network.
</td>
2797 <td>Is a facsimile device.
</td>
2801 <td>Is rejecting jobs.
</td>
2805 <td>Delete this queue.
</td>
2809 <td>Queue is not shared.
</td>
2813 <td>Queue requires authentication.
</td>
2817 <td>Queue supports CUPS command files.
</td>
2821 <td>Queue was automatically discovered and added.
</td>
2825 <td>Queue is a scanner with no printing capabilities.
</td>
2829 <td>Queue is a printer with scanning capabilities.
</td>
2834 <h4>printer-type-mask (type2 enum)
<span class='info'
>CUPS
1.1</span></h4>
2836 <p>The printer-type-mask attribute is used to choose printers or classes with
2837 the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined
2838 identically to the printer-type attribute and default to all
1's.
2840 <h4>requesting-user-name-allowed (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2842 <p>The requesting-user-name-allowed attribute lists all of the users that are
2843 allowed to access a printer or class. Either this attribute or the
2844 requesting-user-name-denied attribute will be defined, but not both.
2846 <h4>requesting-user-name-denied (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2848 <p>The requesting-user-name-denied attribute lists all of the users that are
2849 not allowed to access a printer or class. Either this attribute or the
2850 requesting-user-name-allowed attribute will be defined, but not both.
2852 <h3 class='title'
><a name='CLASS_ATTRIBUTES'
>Printer Class Attributes
</a></h3>
2854 <h4>member-names (
1setof name(
127))
</h4>
2856 <p>The member-names attribute specifies each of the printer-name attributes of
2857 the member printers and classes. Each name corresponds to the same element of
2858 the member-uris attribute.
2860 <h4>member-uris (
1setof uri)
</h4>
2862 <p>The member-uris attribute specifies each of the printer-uri attributes of
2863 the member printers and classes. Each URI corresponds to the same element of
2864 the member-names attribute.