1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
3 <!-- SECTION: Specifications -->
5 <title>CUPS Implementation of IPP
</title>
6 <meta name='keywords' content='Programming, Internet Printing Protocol'
>
12 CUPS IPP specification for the Common UNIX Printing System (CUPS).
14 Copyright 2007-2008 by Apple Inc.
15 Copyright 1997-2007 by Easy Software Products.
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
24 Attn: CUPS Licensing Information
25 Easy Software Products
26 44141 Airport View Drive, Suite 204
27 Hollywood, Maryland 20636 USA
30 EMail: cups-info@cups.org
31 WWW: http://www.cups.org
34 <h2 class='title'
><a name='INTRODUCTION'
>Introduction
</a></h2>
36 <p>CUPS
1.1 implements IPP/
1.1 and the operations and attributes
37 defined in the
"IPP: Job and Printer Set Operations",
"IPP/1.1:
38 Output-bin Attribute Extension", and
"IPP/1.1: finishings
39 'fold',' trim', and 'bale' attribute values extension"
42 <p>CUPS also provides
16 new operations and many new attributes
43 to support multiple IPP printers and printer classes on a single
46 <h3 class='title'
><a name='IPP_URIS'
>IPP URIs
</a></h3>
48 <p>CUPS supports the
"http",
"https", and
"ipp" schemes. The
49 following resource names are used:
</p>
53 <dt><tt>scheme://hostname:port/
</tt></dt>
55 <dd>Can be used for all
"get" operations and for server
58 <dt><tt>scheme://hostname:port/admin/
</tt></dt>
60 <dd>Used for all administrative operations.
</dd>
62 <dt><tt>scheme://hostname:port/classes/name
</tt></dt>
64 <dd>Specifies a printer class.
</dd>
66 <dt><tt>scheme://hostname:port/jobs/id
</tt></dt>
68 <dd>Specifies a job.
</dd>
70 <dt><tt>scheme://hostname:port/printers/name
</tt></dt>
72 <dd>Specifies a printer.
</dd>
76 <p>So a typical printer URI would be
77 "ipp://foo.bar.com/printers/LaserJet". In addition, the CUPS
78 server also supports normal browser access via
79 "http://hostname:port/" and
"https://hostname:port/".
</p>
81 <h3 class='title'
><a name='IPP_OPERATIONS'
>CUPS IPP Operations
</a></h3>
83 <p>CUPS provides
16 extension operations in addition to most of the
84 standard IPP and registered extension operations:
86 <div class='table'
><table align='center' border='
1' width='
80%'
87 summary='Supported Operations'
>
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>
98 <td><a href='#PRINT_JOB'
>Print-Job
</a></td>
101 <td>Print a file.
</td>
104 <td>Validate-Job
</td>
107 <td>Validate job attributes.
</td>
110 <td><a href='#CREATE_JOB'
>Create-Job
</a></td>
113 <td>Create a print job.
</td>
116 <td>Send-Document
</td>
119 <td>Send a file for a print job.
</td>
122 <td><a href='#CANCEL_JOB'
>Cancel-Job
</a></td>
125 <td>Cancel a print job.
</td>
128 <td>Get-Job-Attributes
</td>
131 <td>Get job attributes.
</td>
137 <td>Get all jobs.
</td>
140 <td>Get-Printer-Attributes
</td>
143 <td>Get printer attributes.
</td>
149 <td>Hold a job for printing.
</td>
155 <td>Release a job for printing.
</td>
161 <td>Restarts a print job.
</td>
164 <td>Pause-Printer
</td>
167 <td>Pause printing on a printer.
</td>
170 <td>Resume-Printer
</td>
173 <td>Resume printing on a printer.
</td>
176 <td><a href='#PURGE_JOBS'
>Purge-Jobs
</a></td>
179 <td>Purge all jobs.
</td>
182 <td><a href='#SET_JOB_ATTRIBUTES'
>Set-Job-Attributes
</a></td>
185 <td>Set attributes for a pending or held job.
</td>
188 <td><a href='#CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></td>
191 <td>Creates a subscription associated with a printer or the server.
</td>
194 <td>Create-Job-Subscription
</td>
197 <td>Creates a subscription associated with a job.
</td>
200 <td>Get-Subscription-Attributes
</td>
203 <td>Gets the attributes for a subscription.
</td>
206 <td>Get-Subscriptions
</td>
209 <td>Gets the attributes for zero or more subscriptions.
</td>
212 <td>Renew-Subscription
</td>
215 <td>Renews a subscription.
</td>
218 <td>Cancel-Subscription
</td>
221 <td>Cancels a subscription.
</td>
224 <td>Get-Notifications
</td>
227 <td>Get notification events for
<tt>ippget
</tt> subscriptions.
</td>
230 <td>Enable-Printer
</td>
233 <td>Accepts jobs on a printer.
</td>
236 <td>Disable-Printer
</td>
239 <td>Rejects jobs on a printer.
</td>
242 <td><a href='#CUPS_GET_DEFAULT'
>CUPS-Get-Default
</a></td>
245 <td>Get the default destination.
</td>
248 <td><a href='#CUPS_GET_PRINTERS'
>CUPS-Get-Printers
</a></td>
251 <td>Get all of the available printers.
</td>
254 <td><a href='#CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer
</a></td>
257 <td>Add or modify a printer.
</td>
260 <td><a href='#CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer
</a></td>
263 <td>Delete a printer.
</td>
266 <td><a href='#CUPS_GET_CLASSES'
>CUPS-Get-Classes
</a></td>
269 <td>Get all of the available printer classes.
</td>
272 <td><a href='#CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class
</a></td>
275 <td>Add or modify a printer class.
</td>
278 <td><a href='#CUPS_DELETE_CLASS'
>CUPS-Delete-Class
</a></td>
281 <td>Delete a printer class.
</td>
284 <td><a href='#CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs
</a></td>
287 <td>Accept jobs on a printer or printer class.
</td>
290 <td><a href='#CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs
</a></td>
293 <td>Reject jobs on a printer or printer class.
</td>
296 <td><a href='#CUPS_SET_DEFAULT'
>CUPS-Set-Default
</a></td>
299 <td>Set the default destination.
</td>
302 <td><a href='#CUPS_GET_DEVICES'
>CUPS-Get-Devices
</a></td>
305 <td>Get all of the available devices.
</td>
308 <td><a href='#CUPS_GET_PPDS'
>CUPS-Get-PPDs
</a></td>
311 <td>Get all of the available PPDs.
</td>
314 <td><a href='#CUPS_MOVE_JOB'
>CUPS-Move-Job
</a></td>
317 <td>Move a job to a different printer.
</td>
320 <td><a href='#CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job
</a></td>
323 <td>Authenticate a job for printing.
</td>
326 <td><a href='#CUPS_GET_PPD'
>CUPS-Get-PPD
</a></td>
329 <td>Get a PPD file.
</td>
332 <td><a href='#CUPS_GET_DOCUMENT'
>CUPS-Get-Document
</a></td>
335 <td>Get a document file from a job.
</td>
340 <h2 class='title'
><a name='OPERATIONS'
>Operations
</a></h2>
342 <p>The following sections describe the operations supported by CUPS.
343 In the interest of brevity, operations which use only the standard
344 IPP attributes are not described.
346 <h3 class='title'
><a name='PRINT_JOB'
>Print-Job Operation
</a></h3>
348 <p>The Print-Job operation (
0x0002) prints a file.
350 <h4>Print-Job Request
</h4>
352 <p>The following groups of attributes are supplied as part of the
355 <p>Group
1: Operation Attributes
359 <dt>Natural Language and Character Set:
361 <dd>The
"attributes-charset" and
"attributes-natural-language"
362 attributes as described in section
3.1.4.1 of the IPP Model and
365 <dt>"printer-uri" (uri):
367 <dd>The client MUST supply a URI for the specified printer.
371 <p>Group
2: Job Template Attributes
375 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
377 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
379 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
381 <dd>The client OPTIONALLY supplies a billing string that is logged
382 with the page accounting information.
384 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
393 <blockquote><b>Note:
</b> Standard IPP only allows
394 specification of a single job-sheets attribute
397 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
404 <blockquote><b>Note:
</b> Standard IPP only allows
405 specification of a single media attribute
408 <dt>Other Job Template Attributes
412 <p>The Print-Job request is followed by a file to be printed.
414 <h4>Print-Job Response
</h4>
416 <p>The following groups of attributes are send as part of the Print-Job
419 <p>Group
1: Operation Attributes
425 <dd>The standard response status message.
427 <dt>Natural Language and Character Set:
429 <dd>The
"attributes-charset" and
"attributes-natural-language"
430 attributes as described in section
3.1.4.2 of the IPP Model and
435 <p>Group
2: Job Attributes
439 <dt>Standard Job Attributes
443 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
447 <dt>auth-info-required (
1setOf Type2 keyword)
449 <dd>The required authentication information.
453 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CREATE_JOB'
>Create-Job Operation
</a></h3>
455 <p>The Create-Job operation (
0x0005) creates a new, empty print job.
457 <h4>Create-Job Request
</h4>
459 <p>The following groups of attributes are supplied as part of the
462 <p>Group
1: Operation Attributes
466 <dt>Natural Language and Character Set:
468 <dd>The
"attributes-charset" and
"attributes-natural-language"
469 attributes as described in section
3.1.4.1 of the IPP Model and
472 <dt>"printer-uri" (uri):
474 <dd>The client MUST supply a URI for the specified printer.
478 <p>Group
2: Job Template Attributes
482 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
484 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
486 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
488 <dd>The client OPTIONALLY supplies a billing string that is logged
489 with the page accounting information.
491 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
500 <blockquote><b>Note:
</b> Standard IPP only allows
501 specification of a single job-sheets attribute
504 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
511 <blockquote><b>Note:
</b> Standard IPP only allows
512 specification of a single media attribute
515 <dt>Standard Job Template Attributes
519 <h4>Create-Job Response
</h4>
521 <p>The following groups of attributes are send as part of the
524 <p>Group
1: Operation Attributes
530 <dd>The standard response status message.
532 <dt>Natural Language and Character Set:
534 <dd>The
"attributes-charset" and
"attributes-natural-language"
535 attributes as described in section
3.1.4.2 of the IPP Model and
540 <p>Group
2: Job Attributes
544 <dt>Standard Job Attributes
548 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
552 <dt>auth-info-required (
1setOf Type2 keyword)
554 <dd>The required authentication information.
558 <h3 class='title'
><a name='CANCEL_JOB'
>Set-Job-Attributes Operation
</a></h3>
560 <p>The Cancel-Job operation (
0x0008) cancels the specified job. CUPS
1.4 adds
561 a new
<tt>purge-job (boolean)
</tt> attribute that allows you to purge both
562 active and completed jobs, removing all history and document files for the
565 <h4>Cancel-Job Request
</h4>
567 <p>The following groups of attributes are supplied as part of the
568 Set-Job-Attributes request:
570 <p>Group
1: Operation Attributes
574 <dt>Natural Language and Character Set:
576 <dd>The
"attributes-charset" and
"attributes-natural-language"
577 attributes as described in section
3.1.4.1 of the IPP Model and
580 <dt>"printer-uri" (uri) and
"job-id" (integer)
584 <dd>The client MUST supply a URI for the specified printer and
585 a job ID number, or the job URI.
587 <dt><span class=
"info">CUPS
1.4</span>"purge-job" (boolean):
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.
595 <h4>Cancel-Job Response
</h4>
597 <p>The following groups of attributes are send as part of the Cancel-Job
600 <p>Group
1: Operation Attributes
606 <dd>The standard response status message.
608 <dt>Natural Language and Character Set:
610 <dd>The
"attributes-charset" and
"attributes-natural-language"
611 attributes as described in section
3.1.4.2 of the IPP Model and
616 <h3 class='title'
><a name='PURGE_JOBS'
>Purge-Jobs Operation
</a></h3>
618 <p>The Purge-Jobs operation (
0x0012) cancels all of the jobs on a
619 given destination and optionally removes all history and document
620 files for the jobs as well.
622 <h4>Purge-Jobs Request
</h4>
624 <p>The following groups of attributes are supplied as part of the
627 <p>Group
1: Operation Attributes
631 <dt>Natural Language and Character Set:
633 <dd>The
"attributes-charset" and
"attributes-natural-language"
634 attributes as described in section
3.1.4.1 of the IPP Model and
637 <dt>"printer-uri" (uri):
639 <dd>The client MUST supply a URI for the specified printer or
640 "ipp://.../printers" for all printers and classes.
642 <dt><span class=
"info">CUPS
1.2</span>"purge-jobs" (boolean):
644 <dd>The client OPTIONALLY supplies this attribute to specify
645 whether the jobs are purged (true) or just canceled (false).
650 <h4>Purge-Jobs Response
</h4>
652 <p>The following groups of attributes are send as part of the Purge-Jobs
655 <p>Group
1: Operation Attributes
661 <dd>The standard response status message.
663 <dt>Natural Language and Character Set:
665 <dd>The
"attributes-charset" and
"attributes-natural-language"
666 attributes as described in section
3.1.4.2 of the IPP Model and
671 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='SET_JOB_ATTRIBUTES'
>Set-Job-Attributes Operation
</a></h3>
673 <p>The Set-Job-Attributes operation (
0x0014) changes the attributes of
674 an active (not completed) job.
676 <h4>Set-Job-Attributes Request
</h4>
678 <p>The following groups of attributes are supplied as part of the
679 Set-Job-Attributes request:
681 <p>Group
1: Operation Attributes
685 <dt>Natural Language and Character Set:
687 <dd>The
"attributes-charset" and
"attributes-natural-language"
688 attributes as described in section
3.1.4.1 of the IPP Model and
691 <dt>"printer-uri" (uri) and
"job-id" (integer)
695 <dd>The client MUST supply a URI for the specified printer and
696 a job ID number, or the job URI.
700 <p>Group
2: Job Template Attributes
704 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
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.
713 <blockquote><b>Note:
</b> Standard IPP only allows
714 specification of a single job-sheets attribute
717 <dt>"media" (
1setof type3 keyword | name(MAX)):
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.
724 <blockquote><b>Note:
</b> Standard IPP only allows
725 specification of a single media attribute
728 <dt>Other Job Template Attributes
732 <h4>Set-Job-Attributes Response
</h4>
734 <p>The following groups of attributes are send as part of the Set-Job-Attributes
737 <p>Group
1: Operation Attributes
743 <dd>The standard response status message.
745 <dt>Natural Language and Character Set:
747 <dd>The
"attributes-charset" and
"attributes-natural-language"
748 attributes as described in section
3.1.4.2 of the IPP Model and
753 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a
754 name='CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></h3>
756 <p>The Create-Printer-Subscription operation (
0x0016) creates a
757 subscription for printer or server event notifications. CUPS
758 provides several additional events in addition to the standard
759 events in the IPP notifications specification.
</p>
761 <h4>Create-Printer-Subscription Request
</h4>
763 <p>The following groups of attributes are supplied as part of the
766 <p>Group
1: Operation Attributes
</p>
770 <dt>Natural Language and Character Set:
772 <dd>The
"attributes-charset" and
"attributes-natural-language"
773 attributes as described in section
3.1.4.1 of the IPP Model and
776 <dt>"printer-uri" (uri):
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.
783 <dt>"notify-events" (
1setOf keyword):
785 <dd>The events to monitor. In addition to the standard
786 events, CUPS adds the following keywords:
789 <li><tt>printer-added
</tt> - Get notified
790 whenever a printer or class is added
</li>
792 <li><tt>printer-deleted
</tt> - Get notified
793 whenever a printer or class is deleted
</li>
795 <li><tt>printer-modified
</tt> - Get notified
796 whenever a printer or class is modified
</li>
798 <li><tt>server-audit
</tt> - Get notified when a
799 security condition occurs
</li>
801 <li><tt>server-restarted
</tt> - Get notified when
802 the server is restarted
</li>
804 <li><tt>server-started
</tt> - Get notified when
805 the server is started
</li>
807 <li><tt>server-stopped
</tt> - Get notified when
808 the server is stopped
</li>
814 <h4>Create-Printer-Subscription Response
</h4>
816 <p>The following groups of attributes are send as part of the
819 <p>Group
1: Operation Attributes
</p>
825 <dd>The standard response status message.
827 <dt>Natural Language and Character Set:
829 <dd>The
"attributes-charset" and
"attributes-natural-language"
830 attributes as described in section
3.1.4.2 of the IPP Model and
835 <p>Group
2: Subscription Object Attributes
</p>
839 <dt>"subscription-id" (integer):
841 <dd>The subscription number.
845 <h3 class='title'
><a name='CUPS_GET_DEFAULT'
>CUPS-Get-Default Operation
</a></h3>
847 <p>The CUPS-Get-Default operation (
0x4001) returns the default printer
850 <h4>CUPS-Get-Default Request
</h4>
852 <p>The following groups of attributes are supplied as part of the
853 CUPS-Get-Default request:
855 <p>Group
1: Operation Attributes
859 <dt>Natural Language and Character Set:
861 <dd>The
"attributes-charset" and
"attributes-natural-language"
862 attributes as described in section
3.1.4.1 of the IPP Model and
865 <dt>"requested-attributes" (
1setOf keyword) :
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
875 <h4>CUPS-Get-Default Response
</h4>
877 <p>The following groups of attributes are send as part of the
878 CUPS-Get-Default Response:
880 <p>Group
1: Operation Attributes
886 <dd>The standard response status message.
888 <dt>Natural Language and Character Set:
890 <dd>The
"attributes-charset" and
"attributes-natural-language"
891 attributes as described in section
3.1.4.2 of the IPP Model and
896 <p>Group
2: Printer Object Attributes
900 <dt>The set of requested attributes and their current values.
904 <h3 class='title'
><a name='CUPS_GET_PRINTERS'
>CUPS-Get-Printers Operation
</a></h3>
906 <p>The CUPS-Get-Printers operation (
0x4002) returns the printer
907 attributes for every printer known to the system. This may include
908 printers that are not served directly by the server.
910 <h4>CUPS-Get-Printers Request
</h4>
912 <p>The following groups of attributes are supplied as part of the
913 CUPS-Get-Printers request:
915 <p>Group
1: Operation Attributes
919 <dt>Natural Language and Character Set:
921 <dd>The
"attributes-charset" and
"attributes-natural-language"
922 attributes as described in section
3.1.4.1 of the IPP Model and
925 <dt>"limit" (integer (
1:MAX)):
927 <dd>The client OPTIONALLY supplies this attribute limiting the
928 number of printers that are returned.
930 <dt>"printer-info" (text(
127)):
<span class='info'
>CUPS
1.1</span>
932 <dd>The client OPTIONALLY supplies this attribute to
933 select which printers are returned.
935 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
937 <dd>The client OPTIONALLY supplies this attribute to
938 select which printers are returned.
940 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
942 <dd>The client OPTIONALLY supplies a printer type enumeration to
943 select which printers are returned.
945 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
947 <dd>The client OPTIONALLY supplies a printer type mask
948 enumeration to select which bits are used in the
"printer-type"
951 <dt>"requested-attributes" (
1setOf keyword) :
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
961 <h4>CUPS-Get-Printers Response
</h4>
963 <p>The following groups of attributes are send as part of the
964 CUPS-Get-Printers Response:
966 <p>Group
1: Operation Attributes
972 <dd>The standard response status message.
974 <dt>Natural Language and Character Set:
976 <dd>The
"attributes-charset" and
"attributes-natural-language"
977 attributes as described in section
3.1.4.2 of the IPP Model and
982 <p>Group
2: Printer Object Attributes
986 <dt>The set of requested attributes and their current values for
991 <h3 class='title'
><a name='CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer Operation
</a></h3>
993 <p>The CUPS-Add-Modify-Printer operation (
0x4003) adds a new printer or
994 modifies an existing printer on the system.
996 <h4>CUPS-Add-Modify-Printer Request
</h4>
998 <p>The following groups of attributes are supplied as part of the
999 CUPS-Add-Modify-Printer request:
1001 <p>Group
1: Operation Attributes
1005 <dt>Natural Language and Character Set:
1007 <dd>The
"attributes-charset" and
"attributes-natural-language"
1008 attributes as described in section
3.1.4.1 of the IPP Model and
1011 <dt>"printer-uri" (uri):
1013 <dd>The client MUST supply a URI for the specified printer.
1017 <p>Group
2: Printer Object Attributes
1021 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
1023 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1025 <dt>"job-sheets-default" (
1setOf name(
127)):
<span
1026 class='info'
>CUPS
1.1.7</span>
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.
1033 <dt>"device-uri" (uri):
1035 <dd>The client OPTIONALLY supplies a device URI for the
1038 <dt>"port-monitor" (name(
127)):
1040 <dd>The client OPTIONALLY supplies a port monitor name for the
1043 <dt>"ppd-name" (name(
127)):
1045 <dd>The client OPTIONALLY supplies a PPD name for the specified
1048 <dt>"printer-is-accepting-jobs" (boolean):
1050 <dd>The client OPTIONALLY supplies this boolean attribute
1051 indicating whether or not the printer object should accept new jobs.
1053 <dt>"printer-info" (text(
127)):
1055 <dd>The client OPTIONALLY supplies this attribute indicating the
1056 printer information string.
1058 <dt>"printer-location" (text(
127)):
1060 <dd>The client OPTIONALLY supplies this attribute indicating a
1061 textual location of the printer.
1063 <dt>"printer-more-info" (uri):
1065 <dd>The client OPTIONALLY supplies this attribute indicating a
1066 URI for additional printer information.
1068 <dt>"printer-state" (type2 enum):
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.
1074 <dt>"printer-state-message" (text(MAX)):
1076 <dd>The client OPTIONALLY supplies this attribute indicating a
1077 textual reason for the current printer state.
1079 <dt>"requesting-user-name-allowed" (
1setof name(
127) | delete)
1081 <br>"requesting-user-name-denied" (
1setof name(
127) | delete):
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
1090 <p>The CUPS-Add-Modify-Printer request can optionally be followed by a PPD
1091 file 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
1093 the request with a local CUPS PPD file.
1095 <h4>CUPS-Add-Modify-Printer Response
</h4>
1097 <p>The following groups of attributes are send as part of the
1098 CUPS-Add-Modify-Printer Response:
1100 <p>Group
1: Operation Attributes
1106 <dd>The standard response status message.
1108 <dt>Natural Language and Character Set:
1110 <dd>The
"attributes-charset" and
"attributes-natural-language"
1111 attributes as described in section
3.1.4.2 of the IPP Model and
1116 <h3 class='title'
><a name='CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer Operation
</a></h3>
1118 <p>The CUPS-Delete-Printer operation (
0x4004) removes an existing
1119 printer from the system.
1121 <h4>CUPS-Delete-Printer Request
</h4>
1123 <p>The following groups of attributes are supplied as part of the
1124 CUPS-Delete-Printer request:
1126 <p>Group
1: Operation Attributes
1130 <dt>Natural Language and Character Set:
1132 <dd>The
"attributes-charset" and
"attributes-natural-language"
1133 attributes as described in section
3.1.4.1 of the IPP Model and
1136 <dt>"printer-uri" (uri):
1138 <dd>The client MUST supply a URI for the specified printer.
1142 <h4>CUPS-Delete-Printer Response
</h4>
1144 <p>The following groups of attributes are send as part of the
1145 CUPS-Delete-Printer Response:
1147 <p>Group
1: Operation Attributes
1153 <dd>The standard response status message.
1155 <dt>Natural Language and Character Set:
1157 <dd>The
"attributes-charset" and
"attributes-natural-language"
1158 attributes as described in section
3.1.4.2 of the IPP Model and
1163 <h3 class='title'
><a name='CUPS_GET_CLASSES'
>CUPS-Get-Classes Operation
</a></h3>
1165 <p>The CUPS-Get-Classes operation (
0x4005) returns the printer
1166 attributes for every printer class known to the system. This may
1167 include printer classes that are not served directly by the server.
1169 <h4>CUPS-Get-Classes Request
</h4>
1171 <p>The following groups of attributes are supplied as part of the
1172 CUPS-Get-Classes request:
1174 <p>Group
1: Operation Attributes
1178 <dt>Natural Language and Character Set:
1180 <dd>The
"attributes-charset" and
"attributes-natural-language"
1181 attributes as described in section
3.1.4.1 of the IPP Model and
1184 <dt>"limit" (integer (
1:MAX)):
1186 <dd>The client OPTIONALLY supplies this attribute limiting the
1187 number of printer classes that are returned.
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.
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.
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.
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"
1206 <dt>"requested-attributes" (
1setOf keyword) :
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'.
1215 <h4>CUPS-Get-Classes Response
</h4>
1217 <p>The following groups of attributes are send as part of the
1218 CUPS-Get-Classes Response:
1220 <p>Group
1: Operation Attributes
1226 <dd>The standard response status message.
1228 <dt>Natural Language and Character Set:
1230 <dd>The
"attributes-charset" and
"attributes-natural-language"
1231 attributes as described in section
3.1.4.2 of the IPP Model and
1236 <p>Group
2: Printer Class Object Attributes
1240 <dt>The set of requested attributes and their current values for
1245 <h3 class='title'
><a name='CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class Operation
</a></h3>
1247 <p>The CUPS-Add-Modify-Class operation (
0x4006) adds a new printer class or
1248 modifies and existing printer class on the system.
1250 <h4>CUPS-Add-Modify-Class Request
</h4>
1252 <p>The following groups of attributes are supplied as part of the
1253 CUPS-Add-Modify-Class request:
1255 <p>Group
1: Operation Attributes
1259 <dt>Natural Language and Character Set:
1261 <dd>The
"attributes-charset" and
"attributes-natural-language"
1262 attributes as described in section
3.1.4.1 of the IPP Model and
1265 <dt>"printer-uri" (uri):
1267 <dd>The client MUST supply a URI for the specified printer class.
1271 <p>Group
2: Printer Object Attributes
1275 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
1277 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1279 <dt>"member-uris" (
1setof uri):
1281 <dd>The client OPTIONALLY supplies the
"member-uris" set
1282 specifying the printers and printer classes that are part of the class.
1284 <dt>"printer-is-accepting-jobs" (boolean):
1286 <dd>The client OPTIONALLY supplies this boolean attribute
1287 indicating whether or not the class object should accept new jobs.
1289 <dt>"printer-info" (text(
127)):
1291 <dd>The client OPTIONALLY supplies this attribute indicating the
1292 printer information string.
1294 <dt>"printer-location" (text(
127)):
1296 <dd>The client OPTIONALLY supplies this attribute indicating a
1297 textual location of the class.
1299 <dt>"printer-more-info" (uri):
1301 <dd>The client OPTIONALLY supplies this attribute indicating a
1302 URI for additional class information.
1304 <dt>"printer-state" (type2 enum):
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.
1310 <dt>"printer-state-message" (text(MAX)):
1312 <dd>The client OPTIONALLY supplies this attribute indicating a
1313 textual reason for the current class state.
1315 <dt>"requesting-user-name-allowed" (
1setof name(
127))
1317 <br>"requesting-user-name-denied" (
1setof name(
127)):
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
1326 <h4>CUPS-Add-Modify-Class Response
</h4>
1328 <p>The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
1330 <p>Group
1: Operation Attributes
1336 <dd>The standard response status message.
1338 <dt>Natural Language and Character Set:
1340 <dd>The
"attributes-charset" and
"attributes-natural-language"
1341 attributes as described in section
3.1.4.2 of the IPP Model and
1346 <h3 class='title'
><a name='CUPS_DELETE_CLASS'
>CUPS-Delete-Class Operation
</a></h3>
1348 <p>The CUPS-Delete-Class operation (
0x4007) removes an existing printer
1349 class from the system.
1351 <h4>CUPS-Delete-Class Request
</h4>
1353 <p>The following groups of attributes are supplied as part of the
1354 CUPS-Delete-Class request:
1356 <p>Group
1: Operation Attributes
1360 <dt>Natural Language and Character Set:
1362 <dd>The
"attributes-charset" and
"attributes-natural-language"
1363 attributes as described in section
3.1.4.1 of the IPP Model and
1366 <dt>"printer-uri" (uri):
1368 <dd>The client MUST supply a URI for the specified printer class.
1372 <h4>CUPS-Delete-Class Response
</h4>
1374 <p>The following groups of attributes are send as part of the
1375 CUPS-Delete-Class Response:
1377 <p>Group
1: Operation Attributes
1383 <dd>The standard response status message.
1385 <dt>Natural Language and Character Set:
1387 <dd>The
"attributes-charset" and
"attributes-natural-language"
1388 attributes as described in section
3.1.4.2 of the IPP Model and
1393 <h3 class='title'
><a name='CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs Operation
</a></h3>
1395 <p>The CUPS-Accept-Jobs operation (
0x4008) sets the
1396 "printer-is-accepting-jobs" attribute to true for the specified printer
1399 <h4>CUPS-Accept-Jobs Request
</h4>
1401 <p>The following groups of attributes are supplied as part of the
1402 CUPS-Accept-Jobs request:
1404 <p>Group
1: Operation Attributes
1408 <dt>Natural Language and Character Set:
1410 <dd>The
"attributes-charset" and
"attributes-natural-language"
1411 attributes as described in section
3.1.4.1 of the IPP Model and
1414 <dt>"printer-uri" (uri):
1416 <dd>The client MUST supply a URI for the specified printer or printer class.
1420 <h4>CUPS-Accept-Jobs Response
</h4>
1422 <p>The following groups of attributes are send as part of the
1423 CUPS-Accept-Jobs Response:
1425 <p>Group
1: Operation Attributes
1431 <dd>The standard response status message.
1433 <dt>Natural Language and Character Set:
1435 <dd>The
"attributes-charset" and
"attributes-natural-language"
1436 attributes as described in section
3.1.4.2 of the IPP Model and
1441 <h3 class='title'
><a name='CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs Operation
</a></h3>
1443 <p>The CUPS-Reject-Jobs operation (
0x4009) sets
1444 the
"printer-is-accepting-jobs" attribute to false for the specified
1445 printer or printer class.
1447 <h4>CUPS-Reject-Jobs Request
</h4>
1449 <p>The following groups of attributes are supplied as part of the
1450 CUPS-Reject-Jobs request:
1452 <p>Group
1: Operation Attributes
1456 <dt>Natural Language and Character Set:
1458 <dd>The
"attributes-charset" and
"attributes-natural-language"
1459 attributes as described in section
3.1.4.1 of the IPP Model and
1462 <dt>"printer-uri" (uri):
1464 <dd>The client MUST supply a URI for the specified printer or printer class.
1468 <p>Group
2: Printer Object Attributes
1472 <dt>"printer-state-message" (text(MAX)):
1474 <dd>The client OPTIONALLY supplies this attribute indicating a
1475 textual reason for the current printer state.
1479 <h4>CUPS-Reject-Jobs Response
</h4>
1481 <p>The following groups of attributes are send as part of the
1482 CUPS-Reject-Jobs Response:
1484 <p>Group
1: Operation Attributes
1490 <dd>The standard response status message.
1492 <dt>Natural Language and Character Set:
1494 <dd>The
"attributes-charset" and
"attributes-natural-language"
1495 attributes as described in section
3.1.4.2 of the IPP Model and
1500 <h3 class='title'
><a name='CUPS_SET_DEFAULT'
>CUPS-Set-Default Operation
</a></h3>
1502 <p>The CUPS-Set-Default operation (
0x400A) sets the default printer
1503 destination for all clients when a resource name of
"/printers" is
1506 <h4>CUPS-Set-Default Request
</h4>
1508 <p>The following groups of attributes are supplied as part of the
1509 CUPS-Set-Default request:
1511 <p>Group
1: Operation Attributes
1515 <dt>Natural Language and Character Set:
1517 <dd>The
"attributes-charset" and
"attributes-natural-language"
1518 attributes as described in section
3.1.4.1 of the IPP Model and
1521 <dt>"printer-uri" (uri):
1523 <dd>The client MUST supply a URI for the specified printer or
1528 <h4>CUPS-Set-Default Response
</h4>
1530 <p>The following groups of attributes are send as part of the
1531 CUPS-Set-Default Response:
1533 <p>Group
1: Operation Attributes
1539 <dd>The standard response status message.
1541 <dt>Natural Language and Character Set:
1543 <dd>The
"attributes-charset" and
"attributes-natural-language"
1544 attributes as described in section
3.1.4.2 of the IPP Model and
1549 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_DEVICES'
>CUPS-Get-Devices Operation
</a></h3>
1551 <p>The CUPS-Get-Devices operation (
0x400B) returns all of the
1552 supported device-uri's for the server.
</p>
1554 <h4>CUPS-Get-Devices Request
</h4>
1556 <p>The following groups of attributes are supplied as part of the
1557 CUPS-Get-Devices request:
1559 <p>Group
1: Operation Attributes
1563 <dt>Natural Language and Character Set:
1565 <dd>The
"attributes-charset" and
"attributes-natural-language"
1566 attributes as described in section
3.1.4.1 of the IPP Model and
1569 <dt>"device-class" (type1 keyword):
1571 <dd>The client OPTIONALLY supplies a device class keyword to select
1572 which devices are returned.
1574 <dt>"exclude-schemes" (
1setOf name) :
<span class='info'
>CUPS
1.4</span>
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.
1580 <dt>"limit" (integer (
1:MAX)):
1582 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1583 devices that are returned.
1585 <dt>"requested-attributes" (
1setOf keyword) :
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'.
1592 <dt>"timeout" (integer (
1:MAX)) :
<span class='info'
>CUPS
1.4</span>
1594 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1595 devices that are returned.
1599 <h4>CUPS-Get-Devices Response
</h4>
1601 <p>The following groups of attributes are send as part of the
1602 CUPS-Get-Devices Response:
1604 <p>Group
1: Operation Attributes
1610 <dd>The standard response status message.
1612 <dt>Natural Language and Character Set:
1614 <dd>The
"attributes-charset" and
"attributes-natural-language"
1615 attributes as described in section
3.1.4.2 of the IPP Model and
1620 <p>Group
2: Device Object Attributes
1624 <dt>The set of requested attributes and their current values for
1629 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_PPDS'
>CUPS-Get-PPDs Operation
</a></h3>
1631 <p>The CUPS-Get-PPDs operation (
0x400C) returns all of the
1632 locally available PPD files on the system.
</p>
1634 <h4>CUPS-Get-PPDs Request
</h4>
1636 <p>The following groups of attributes are supplied as part of the
1637 CUPS-Get-PPDs request:
1639 <p>Group
1: Operation Attributes
1643 <dt>Natural Language and Character Set:
1645 <dd>The
"attributes-charset" and
"attributes-natural-language"
1646 attributes as described in section
3.1.4.1 of the IPP Model and
1649 <dt>"limit" (integer (
1:MAX)):
1651 <dd>The client OPTIONALLY supplies this attribute limiting the number of PPDs that are returned.
1653 <dt>"ppd-make" (text(
127)):
1655 <dd>The client OPTIONALLY supplies a printer manufacturer to select which PPDs are returned.
1657 <dt>"ppd-make-and-model" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1659 <dd>The client OPTIONALLY supplies a make and model to select which PPDs are returned.
1661 <dt>"ppd-model-number" (integer):
<span class='info'
>CUPS
1.3</span>
1663 <dd>The client OPTIONALLY supplies a model number to select which PPDs are returned.
1665 <dt>"ppd-natural-language" (naturalLanguage):
<span class='info'
>CUPS
1.3</span>
1667 <dd>The client OPTIONALLY supplies a language to select which PPDs are returned.
1669 <dt>"ppd-product" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1671 <dd>The client OPTIONALLY supplies a PostScript product string to select which PPDs are returned.
1673 <dt>"ppd-psversion" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1675 <dd>The client OPTIONALLY supplies a PostScript version string to select which PPDs are returned.
1677 <dt>"ppd-type" (type1 keyword):
<span class='info'
>CUPS
1.3</span>
1679 <dd>The client OPTIONALLY supplies a driver type to select which PPDs are returned.
1681 <dt>"requested-attributes" (
1setOf keyword) :
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.
1687 <h4>CUPS-Get-PPDs Response
</h4>
1689 <p>The following groups of attributes are send as part of the
1690 CUPS-Get-PPDs Response:
1692 <p>Group
1: Operation Attributes
1698 <dd>The standard response status message.
1700 <dt>Natural Language and Character Set:
1702 <dd>The
"attributes-charset" and
"attributes-natural-language"
1703 attributes as described in section
3.1.4.2 of the IPP Model and
1708 <p>Group
2: PPD Attributes
1712 <dt>The set of requested attributes and their current values for each
1717 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_MOVE_JOB'
>CUPS-Move-Job Operation
</a></h3>
1719 <p>The CUPS-Move-Job operation (
0x400D) moves an active print job
1720 to a different printer.
</p>
1722 <h4>CUPS-Move-Job Request
</h4>
1724 <p>The following groups of attributes are supplied as part of the
1725 CUPS-Move-Job request:
1727 <p>Group
1: Operation Attributes
1731 <dt>Natural Language and Character Set:
1733 <dd>The
"attributes-charset" and
"attributes-natural-language"
1734 attributes as described in section
3.1.4.1 of the IPP Model and
1737 <dt>"printer-uri" (uri) and
"job-id" (integer)
1741 <dd>The client MUST supply a URI for the specified printer and
1742 a job ID number, or the job URI.
1746 <p>Group
2: Job Template Attributes
1750 <dt>"job-printer-uri" (uri)
1752 <dd>The client MUST supply a URI for a printer on the same server.
1756 <h4>CUPS-Move-Job Response
</h4>
1758 <p>The following groups of attributes are send as part of the
1759 CUPS-Move-Job Response:
1761 <p>Group
1: Operation Attributes
1767 <dd>The standard response status message.
1769 <dt>Natural Language and Character Set:
1771 <dd>The
"attributes-charset" and
"attributes-natural-language"
1772 attributes as described in section
3.1.4.2 of the IPP Model and
1777 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a name='CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job Operation
</a></h3>
1779 <p>The CUPS-Authenticate-Job operation (
0x400E) authenticate a
1780 print job for printing. Typically this is used when printing to a
1781 remote server. The authentication information is passed in the
1784 <h4>CUPS-Authenticate-Job Request
</h4>
1786 <p>The following groups of attributes are supplied as part of the
1787 CUPS-Authenticate-Job request:
1789 <p>Group
1: Operation Attributes
1793 <dt>Natural Language and Character Set:
1795 <dd>The
"attributes-charset" and
"attributes-natural-language"
1796 attributes as described in section
3.1.4.1 of the IPP Model and
1799 <dt>"printer-uri" (uri) and
"job-id" (integer)
1803 <dd>The client MUST supply a URI for the specified printer and
1804 a job ID number, or the job URI.
1808 <p>Group
2: Job Attributes
1812 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
1814 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
1818 <h4>CUPS-Authenticate-Job Response
</h4>
1820 <p>The following groups of attributes are send as part of the
1821 CUPS-Authenticate-Job Response:
1823 <p>Group
1: Operation Attributes
1829 <dd>The standard response status message.
1831 <dt>Natural Language and Character Set:
1833 <dd>The
"attributes-charset" and
"attributes-natural-language"
1834 attributes as described in section
3.1.4.2 of the IPP Model and
1839 <p>Group
2: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
1843 <dt>auth-info-required (
1setOf Type2 keyword)
1845 <dd>The required authentication information.
1849 <h3 class='title'
><span class='info'
>CUPS
1.3</span><a name='CUPS_GET_PPD'
>CUPS-Get-PPD Operation
</a></h3>
1851 <p>The CUPS-Get-PPD operation (
0x400F) gets a PPD file from the
1852 server. The PPD file can be specified using a
<tt>ppd-name
</tt>
1853 returned by
<a href='#CUPS_GET_PPDS'
><tt>CUPS-Get-PPDs
</tt></a>
1854 or using the
<tt>printer-uri
</tt> for a queue.
</p>
1856 <p>If the PPD file is found,
<tt>successful-ok
</tt> is returned with
1857 the PPD file following the response data.
</p>
1859 <p>If the PPD file cannot be served by the local server because
1860 the
<tt>printer-uri
</tt> attribute points to an external printer,
1861 a
<tt>cups-see-other
</tt> status is returned with the correct
1864 <p>If the PPD file does not exist,
<tt>client-error-not-found
</tt> is
1867 <h4>CUPS-Get-PPD Request
</h4>
1869 <p>The following group of attributes is supplied as part of the
1870 CUPS-Get-PPD request:
1872 <p>Group
1: Operation Attributes
1876 <dt>Natural Language and Character Set:
1878 <dd>The
"attributes-charset" and
"attributes-natural-language"
1879 attributes as described in section
3.1.4.1 of the IPP Model and
1882 <dt>"printer-uri" (uri)
1884 <br>"ppd-name" (name(
255)):
1886 <dd>The client MUST supply a printer URI or PPD name.
1890 <h4>CUPS-Get-PPD Response
</h4>
1892 <p>The following group of attributes is sent as part of the
1893 CUPS-Get-PPD Response:
1895 <p>Group
1: Operation Attributes
1901 <dd>The standard response status message.
1903 <dt>Natural Language and Character Set:
1905 <dd>The
"attributes-charset" and
"attributes-natural-language"
1906 attributes as described in section
3.1.4.2 of the IPP Model and
1909 <dt>"printer-uri" (uri):
1911 <dd>The printer that provides the actual PPD file when
1912 the status code is cups-see-other (
0x280)
1916 <p>If the status code is
<tt>successful-ok
</tt>, the PPD file follows
1917 the end of the IPP response.
</p>
1919 <h3 class='title'
><span class='info'
>CUPS
1.4</span><a name='CUPS_GET_DOCUMENT'
>CUPS-Get-Document Operation
</a></h3>
1921 <p>The CUPS-Get-Document operation (
0x4027) gets a document file from a
1922 job 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>
1924 and
<tt>job-id
</tt> identifying the job.
</p>
1926 <p>If the document file is found,
<tt>successful-ok
</tt> is returned with
1927 the document file following the response data.
</p>
1929 <p>If the document file does not exist,
<tt>client-error-not-found
</tt> is
1932 <p>If the requesting user does not have access to the document file,
1933 <tt>client-error-not-authorized
</tt> is returned.
1935 <h4>CUPS-Get-Document Request
</h4>
1937 <p>The following group of attributes is supplied as part of the
1938 CUPS-Get-Document request:
1940 <p>Group
1: Operation Attributes
1944 <dt>Natural Language and Character Set:
1946 <dd>The
"attributes-charset" and
"attributes-natural-language"
1947 attributes as described in section
3.1.4.1 of the IPP Model and
1950 <dt>"printer-uri" (uri) and
"job-id" (integer)
1952 <br>"job-uri" (uri):
1954 <dd>The client MUST supply a printer URI and job ID or job URI.
1956 <dt>"document-number" (integer(
1:MAX)):
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.
1967 <h4>CUPS-Get-Document Response
</h4>
1969 <p>The following group of attributes is sent as part of the
1970 CUPS-Get-Document Response:
1972 <p>Group
1: Operation Attributes
1978 <dd>The standard response status message.
1980 <dt>Natural Language and Character Set:
1982 <dd>The
"attributes-charset" and
"attributes-natural-language"
1983 attributes as described in section
3.1.4.2 of the IPP Model and
1986 <dt>"document-format" (mimeType):
1988 <dd>The format of the document file.
1990 <dt>"document-number" (integer(
1:MAX)):
1992 <dd>The requested document number.
1994 <dt>"document-name" (name(MAX)):
1996 <dd>The name that was supplied with the document, if any.
2000 <p>If the status code is
<tt>successful-ok
</tt>, the document file follows
2001 the end of the IPP response.
</p>
2004 <h2 class='title'
><a name='ATTRIBUTES'
>Attributes
</a></h2>
2006 <p>CUPS provides many extension attributes to support multiple
2007 devices, PPD files, standard job filters, printers, and printer
2010 <h3 class='title'
><a name='DEVICE_ATTRIBUTES'
>Device Attributes
</a></h3>
2012 <p>Device attributes are returned by the CUPS-Get-Devices
2013 operation and enumerate all of the available hardware devices and
2014 network protocols that are supported by the server.
</p>
2016 <h4><a name=
"device-class">device-class (type2 keyword)
</a></h4>
2018 <p>The device-class attribute specifies the class of device and can be
2019 one of the following:
2023 <li>"file" - a disk file.
2025 <li>"direct" - a parallel or fixed-rate serial data port,
2026 currently used for Centronics, IEEE-
1284, and USB printer
2029 <li>"serial" - a variable-rate serial port.
2031 <li>"network" - a network connection, typically via AppSocket,
2032 HTTP, IPP, LPD, or SMB/CIFS protocols.
2036 <h4><a name=
"device-id">device-id (text(
127))
</a><span class=
"info">CUPS
1.2</span></h4>
2038 <p>The device-id attribute specifies the IEEE-
1284 device ID
2039 string for the device.
</p>
2041 <h4><a name=
"device-info">device-info (text(
127))
</a></h4>
2043 <p>The device-info attribute specifies a human-readable string describing
2044 the device, e.g.
"Parallel Port #1".
2046 <h4><a name=
"device-location">device-location (text(
127))
</a><span class=
"info">CUPS
1.4</span></h4>
2048 <p>The device-location attribute specifies the physical location of the
2051 <h4><a name=
"device-make-and-model">device-make-and-model (text(
127))
</a></h4>
2053 <p>The device-make-and-model attribute specifies a device
2054 identification string provided by the printer connected to the device.
2055 If the device or printer does not support identification then this
2056 attribute contains the string
"unknown".
2058 <h4><a name=
"device-uri">device-uri (uri)
</a></h4>
2060 <p>The device-uri attribute specifies a unique identifier for the
2061 device. The actual format of the device-uri string depends on the value
2062 of the device-class attribute:
2066 <li>"file" - The device-uri will be of the form
2067 "file:///path/to/filename".
2069 <li>"direct" - The device-uri will be of the form
2070 "scheme:/dev/filename" or
"scheme://vendor/identifier",
2071 where scheme may be
"parallel" or
"usb" in the current
2074 <li>"serial" - The device-uri will be of the form
2075 "serial:/dev/filename?baud=value+parity=value+flow=value".
2076 The baud value is the data rate in bits per second; the
2077 supported values depend on the underlying hardware.
2078 The parity value can be one of
"none",
"even", or
"odd".
2079 The flow value can be one of
"none",
"soft" (XON/XOFF
2080 handshaking),
"hard" or
"rts/cts" (RTS/CTS handshaking),
2081 or
"dtrdsr" (DTR/DSR handshaking).
2083 <p>The URI returned by CUPS-Get-Devices will contain the
2084 maximum baud rate supported by the device and the best
2085 type of flow control available (
"soft" or
"hard").
2087 <li>"network" - The device-uri will be of the form
2088 "scheme://[username:password@]hostname[:port]/[resource]",
2089 where scheme may be
"http",
"https",
"ipp",
"lpd",
"smb", or
2090 "socket" in the current implementation.
2092 <p>The URI returned by CUPS-Get-Devices will only contain
2093 the scheme name (
"scheme"). It is up to the client
2094 application to add the appropriate host and other
2095 information when adding a new printer.
2097 <p>The URI returned by Get-Printer-Attributes and
2098 CUPS-Get-Printers has any username and password information
2099 stripped; the information is still stored and used by the
2100 server internally to perform any needed authentication.
2104 <h3 class='title'
><a name='JOB_TEMPLATE_ATTRIBUTES'
>Job Template Attributes
</a></h3>
2106 <h4><a name=
"auth-info">auth-info (
1setOf text(MAX))
</a><span class=
"info">CUPS
1.3</span></h4>
2108 <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.
2110 <h4><a name=
"blackplot">blackplot (boolean)
</a></h4>
2112 <p>The blackplot attribute specifies whether HP-GL/
2 plot files should be
2113 rendered entirely in black ink (blackplot=true) or using the colors and shades
2114 specified in the file (blackplot=false). The default value is false.
2116 <h4><a name=
"brightness">brightness (integer(
0:
200))
</a><span class=
"info">Deprecated
</span></h4>
2118 <p>The brightness attribute specifies the overall brightness of the printed
2119 output in percent. A brightness of
100 is normal, while
200 is twice as
2120 bright and
50 is half as bright. The default value is
100.
2122 <p>Brightness is applied to the Cyan, Magenta, Yellow, and Black values using
2123 the function
"f(x) = brightness / 100 * x".
2125 <blockquote><b>Note:
</b>
2127 <p>This attribute is deprecated and will be removed from a future CUPS
2132 <h4><a name=
"columns">columns (integer(
1:
4))
</a></h4>
2134 <p>The columns attribute specifies the number of columns to generate when
2135 printing text files. The default value is
1.
2137 <h4><a name=
"cpi">cpi (type2 enum)
</a></h4>
2139 <p>The cpi attribute specifies the number of characters per inch when
2140 printing text files. Only the values
10,
12, and
17 are currently
2141 supported. The default value is
10.
2143 <h4><a name=
"document-count">document-count (integer(
1:MAX))
</a></h4>
2145 <p>The document-count attribute specifies the number of documents that
2146 are present in the job.
2148 <h4><a name=
"fitplot">fitplot (boolean)
</a></h4>
2150 <p>The fitplot attribute specifies whether to scale HP-GL/
2 plot files to
2151 fit on the selected media (fitplot=true) or use the physical scale specified
2152 in the plot file (fitplot=false). The default value is false.
2154 <h4><a name=
"gamma">gamma (integer(
1:
10000))
</a><span class=
"info">Deprecated
</span></h4>
2156 <p>The gamma attribute specifies the luminance correction for the output.
2157 A value of
1000 specifies no correction, while values of
2000 and
500 will
2158 generate lighter and darker output, respectively. The default value is
2161 <p>Gamma is applied to the Red, Green, and Blue values (or luminance for
2162 grayscale output) using the function
"f(x) = x<sup>(1000/gamma)</sup>".
2164 <blockquote><b>Note:
</b>
2166 <p>This attribute is deprecated and will be removed from a future CUPS
2171 <h4><a name=
"hue">hue (integer(-
180:
180))
</a><span class=
"info">Deprecated
</span></h4>
2173 <p>The hue attribute specifies a color hue rotation when printing image
2174 files. The default value is
0.
2176 <blockquote><b>Note:
</b>
2178 <p>This attribute is deprecated and will be removed from a future CUPS
2183 <h4><a name=
"job-billing">job-billing (text(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2185 <p>The job-billing attribute provides a text value to associate with a job
2186 for billing purposes.
2188 <h4><a name=
"job-hold-until">job-hold-until (keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2190 <p>The job-hold-until attribute specifies a hold time. In addition to the
2191 standard IPP/
1.1 keyword names, CUPS supports name values of the form
2192 "HH:MM" and
"HH:MM:SS" that specify a hold time. The hold time is in
2193 Universal Coordinated Time (UTC) and
<i>not
</i> in the local time zone. If the
2194 specified time is less than the current time, the job is held until the
2197 <h4><a name=
"job-printer-state-message">job-printer-state-message (text(MAX))
</a><span class='info'
>CUPS
1.3</span></h4>
2199 <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>
2201 <h4><a name=
"job-printer-state-reasons">job-printer-state-reasons (
1setOf type2 keyword)
</a><span class='info'
>CUPS
1.3</span></h4>
2203 <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>
2205 <h4><a name=
"job-sheets">job-sheets (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2207 <p>The job-sheets attribute specifies one or two banner files that are printed
2208 before and after a job. The reserved value of
"none" disables banner printing.
2209 The default value is stored in the job-sheets-default attribute.
2211 <p>If only one value is supplied, the banner file is printed before the job.
2212 If two values are supplied, the first value is used as the starting banner
2213 file and the second as the ending banner file.
2215 <h4><a name=
"job-originating-host-name">job-originating-host-name (name(MAX))
</a></h4>
2217 <p><i>(CUPS
1.1.5 and higher)
</i>
2219 <p>The job-originating-host-name attribute specifies the host
2220 from which the job was queued. The value will be the hostname or
2221 IP address of the client depending on whether hostname
2222 resolution is enabled. The localhost address (
127.0.0.1) is
2223 <b>always
</b> resolved to the name
"localhost".
2225 <p>This attribute is read-only.
2227 <h4><a name=
"lpi">lpi (type2 enum)
</a></h4>
2229 <p>The lpi attribute specifies the number of lines per inch when
2230 printing text files. Only the values
6 and
8 are currently supported.
2231 The default value is
6.
2233 <h4><a name=
"mirror">mirror (boolean)
</a></h4>
2235 <p>The mirror attribute specifies whether pages are mirrored on
2236 their X axis, which is useful for printing transfer images on
2237 special media. The default value is false.
2239 <h4><a name=
"natural-scaling">natural-scaling (integer(
1:
1000))
</a><span class='info'
>CUPS
1.1.9</span></h4>
2240 <p>The natural-scaling attribute specifies the scaling of image files with
2241 respect to the natural image size. A value of
100 specifies that the image
2242 file should exactly the natural size, while
50 is half the natural size
2243 and
200 is twice the natural size. The default value is
100.
2245 <p>The ppi option can be used to override the natural resolution of the
2246 image, which controls the natural size.
2248 <h4><a name=
"number-up-layout">number-up-layout (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2249 <p>The number-up-layout attribute specifies the order each input
2250 page is placed on each output page. The following keywords are
2255 <li><CODE>btlr
</CODE> - Bottom to top, left to right
</li>
2257 <li><CODE>btrl
</CODE> - Bottom to top, right to left
</li>
2259 <li><CODE>lrbt
</CODE> - Left to right, bottom to top
</li>
2261 <li><CODE>lrtb
</CODE> - Left to right, top to bottom (default)
</li>
2263 <li><CODE>rlbt
</CODE> - Right to left, bottom to top
</li>
2265 <li><CODE>rltb
</CODE> - Right to left, top to bottom
</li>
2267 <li><CODE>tblr
</CODE> - Top to bottom, left to right
</li>
2269 <li><CODE>tbrl
</CODE> - Top to bottom, right to left
</li>
2273 <h4><a name=
"page-border">page-border (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2274 <p>The page-border attribute specifies whether a border is
2275 draw around each page. The following keywords are presently
2280 <li><CODE>double
</CODE> - Two hairline borders are drawn
</li>
2282 <li><CODE>double-thick
</CODE> - Two
1pt borders are drawn
</li>
2284 <li><CODE>none
</CODE> - No border is drawn (default)
</li>
2286 <li><CODE>single
</CODE> - A single hairline border is drawn
</li>
2288 <li><CODE>single-thick
</CODE> - A single
1pt border is drawn
</li>
2292 <h4><a name=
"page-bottom">page-bottom (integer(
0:MAX))
</a></h4>
2294 <p>The page-bottom attribute specifies the bottom margin in points (
72 points
2295 equals
1 inch). The default value is the device physical margin.
2297 <h4><a name=
"page-label">page-label (text(MAX))
</a><span class='info'
>CUPS
1.1.7</span></h4>
2298 <p>The page-label attribute provides a text value to place in
2299 the header and footer on each page. If a classification level is
2300 set on the server, then this classification is printed before
2303 <h4><a name=
"page-left">page-left (integer(
0:MAX))
</a></h4>
2305 <p>The page-left attribute specifies the left margin in points (
72 points
2306 equals
1 inch). The default value is the device physical margin.
2308 <h4><a name=
"page-right">page-right (integer(
0:MAX))
</a></h4>
2310 <p>The page-right attribute specifies the right margin in points (
72 points
2311 equals
1 inch). The default value is the device physical margin.
2313 <h4><a name=
"page-set">page-set (type2 keyword)
</a></h4>
2315 <p>The page-set attribute specifies which pages to print in a file. The
2316 supported keywords are
"all",
"even", and
"odd". The default value is
2319 <h4><a name=
"page-top">page-top (integer(
0:MAX))
</a></h4>
2321 <p>The page-top attribute specifies the top margin in points (
72 points
2322 equals
1 inch). The default value is the device physical margin.
2324 <h4><a name=
"penwidth">penwidth (integer(
0:MAX))
</a></h4>
2326 <p>The penwidth attribute specifies the default pen width in micrometers
2327 when printing HP-GL/
2 plot files. The default value is
1000 (
1 millimeter).
2329 <h4><a name=
"position">position (type2 keyword)
</a></h4>
2331 <p>The position attribute specifies the location of image files on the
2332 media. The following keyword values are recognized:
2336 <li><CODE>center
</CODE> - Center the image on the page (default)
2338 <li><CODE>top
</CODE> - Print the image centered at the top of the page
2340 <li><CODE>left
</CODE> - Print the image centered on the left of page
2342 <li><CODE>right
</CODE> - Print the image centered on the right of the page
2344 <li><CODE>top-left
</CODE> - Print the image at the top left corner of
2347 <li><CODE>top-right
</CODE> - Print the image at the top right corner of
2350 <li><CODE>bottom
</CODE> - Print the image centered at the bottom of
2353 <li><CODE>bottom-left
</CODE> - Print the image at the bottom left
2356 <li><CODE>bottom-right
</CODE> - Print the image at the bottom right
2361 <h4><a name=
"ppi">ppi (integer(
1:MAX))
</a></h4>
2363 <p>The ppi attribute specifies the resolution of an image file in pixels
2364 per inch. The default value is the resolution included with the file or
2365 128 if no resolution information is available.
2367 <h4><a name=
"prettyprint">prettyprint (boolean)
</a></h4>
2369 <p>The prettyprint attribute specifies whether text files should be printed
2370 with a shaded header and keyword highlighting (prettyprint=true) or without
2371 additional formatting (prettyprint=false). The default value is false.
2373 <h4><a name=
"saturation">saturation (integer(
0:
200))
</a><span class=
"info">Deprecated
</span></h4>
2375 <p>The saturation attribute specifies the color saturation when
2376 printing image files. A saturation of
100 is normal, while values of
50
2377 and
200 will be half and twice as colorful, respectively. The default
2380 <blockquote><b>Note:
</b>
2382 <p>This attribute is deprecated and will be removed from a future CUPS
2387 <h4><a name=
"scaling">scaling (integer(
1:
1000))
</a></h4>
2389 <p>The scaling attribute specifies the scaling of image files with
2390 respect to the selected media. A value of
100 specifies that the image
2391 file should fit
100% of the page, or as much as possible given the
2392 image dimensions. The default value is unspecified.
2394 <p>The scaling attribute overrides the ppi attribute if specified.
2396 <h4><a name=
"wrap">wrap (boolean)
</a></h4>
2398 <p>The wrap attribute specifies whether long lines should be wrapped
2399 (wrap=true) or not (wrap=false) when printing text files. The default
2402 <h3 class='title'
><a name='PPD_ATTRIBUTES'
>PPD Attributes
</a></h3>
2404 <h4><a name=
"ppd-device-id">ppd-device-id (text(
127))
</a></h4>
2406 <p>The ppd-device-id attribute specifies the IEEE-
1284 device ID
2407 string for the device described by the PPD file.
</p>
2409 <h4><a name=
"ppd-make">ppd-make (text(
127))
</a></h4>
2411 <p>The ppd-make attribute specifies the manufacturer of the printer
2412 (the Manufacturer attribute in the PPD file). If the manufacturer
2413 is not specified in the PPD file then an educated guess is made using
2414 the NickName attribute in the PPD file.
2416 <h4><a name=
"ppd-make-and-model">ppd-make-and-model (text(
127))
</a></h4>
2418 <p>The ppd-make-and-model attribute specifies the manufacturer and model
2419 name of the PPD file (the NickName attribute in the PPD file). If the
2420 make and model is not specified in the PPD file then the ModelName or
2421 ShortNickName attributes are used instead.
2423 <h4><a name=
"ppd-model-number">ppd-model-number (integer)
</a><span class=
"info">CUPS
1.3</span></h4>
2425 <p>The ppd-model-number attribute provides the
<tt>cupsModelNumber
</tt> value from the PPD file.
2427 <h4><a name=
"ppd-name">ppd-name (name(
255))
</a></h4>
2429 <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.
2431 <h4><a name=
"ppd-natural-language">ppd-natural-language (
1setOf naturalLanguage)
</a></h4>
2433 <p>The ppd-natural-language attribute specifies the language encoding
2434 of the PPD file (the LanguageVersion attribute in the PPD file). If the
2435 language is unknown or undefined then
"en" (English) is assumed.
2437 <h4><a name=
"ppd-product">ppd-product (
1setOf text(
127))
</a></h4>
2439 <p>The ppd-product attribute specifies the Product attribute values in the PPD file.
2441 <h4><a name=
"ppd-psversion">ppd-psversion (
1setOf text(
127))
</a><span class=
"info">CUPS
1.3</span></h4>
2443 <p>The ppd-product attribute specifies the PSVersion attribute values in the PPD file.
2445 <h4><a name=
"ppd-type">ppd-type (type1 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2447 <p>The ppd-type attribute specifies the type of driver described by the PPD file:
</p>
2451 <li><tt>fax
</tt> - A facsimile or multi-function device
</li>
2453 <li><tt>pdf
</tt> - A PDF printer
</li>
2455 <li><tt>postscript
</tt> - A PostScript printer (no filters)
</li>
2457 <li><tt>raster
</tt> - A CUPS raster driver
</li>
2459 <li><tt>unknown
</tt> - An unknown or hybrid driver
</li>
2464 <h3 class='title'
><a name='PRINTER_ATTRIBUTES'
>Printer Attributes
</a></h3>
2466 <h4><a name=
"auth-info-required">auth-info-required (
1setOf type2 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2468 <p>The auth-info-required attribute specifies the authentication information that is required for printing a job. The following keywords are recognized:
</p>
2472 <li><tt>domain
</tt> - A domain name is required.
</li>
2474 <li><tt>none
</tt> - No authentication is required - this keyword can only appear by itself.
</li>
2476 <li><tt>password
</tt> - A password is required.
</li>
2478 <li><tt>username
</tt> - A username is required.
</li>
2482 <h4><a name=
"job-k-limit">job-k-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2484 <p>The job-k-limit attribute specifies the maximum number of kilobytes that
2485 may be printed by a user, including banner files. The default value of
0
2486 specifies that there is no limit.
2488 <h4><a name=
"job-page-limit">job-page-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2490 <p>The job-page-limit attribute specifies the maximum number of pages that
2491 may be printed by a user, including banner files. The default value of
0
2492 specifies that there is no limit.
2494 <h4><a name=
"job-quota-period">job-quota-period (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2496 <p>The job-quota-period attribute specifies the time period used for quota
2497 calculations, in seconds. The default value of
0 specifies that the limits
2498 apply to all jobs that have been printed by a user that are still known to
2501 <h4><a name=
"job-sheets-supported">job-sheets-supported (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2503 <p>The job-sheets-supported attribute specifies the available banner files.
2504 There will always be at least one banner file available called
"none".
2506 <h4><a name=
"marker-change-time">marker-change-time (integer)
</a></h4>
2508 <p>The marker-change-time attribute specifies the printer-up-time value when
2509 the last change to the marker-colors, marker-levels, marker-message,
2510 marker-names, or marker-types attributes was made.
</p>
2512 <h4><a name=
"marker-colors">marker-colors (
1setof name(MAX))
</a></h4>
2514 <p>The marker-colors attribute specifies the color(s) for each supply in the
2515 printer. It is only available when the driver provides supply levels. The
2516 color is either
"none" or one or more hex-encoded sRGB colors of the form
2519 <h4><a name=
"marker-levels">marker-levels (
1setof integer(-
1:
100))
</a></h4>
2521 <p>The marker-levels attribute specifies the current supply levels for the
2522 printer. It is only available when the driver provides supply levels. A
2523 value of -
1 indicates the level is unknown, while values from
0 to
100
2524 indicate the corresponding percentage.
</p>
2526 <h4><a name=
"marker-message">marker-message (text(MAX))
</a></h4>
2528 <p>The marker-message attribute provides a human-readable status message
2529 for the current supply levels, e.g.
"12 pages of ink remaining." It is only
2530 available when the driver provides supply levels.
</p>
2532 <h4><a name=
"marker-names">marker-names (
1setof name(MAX))
</a></h4>
2534 <p>The marker-names attribute specifies the name(s) for each supply in the
2535 printer. It is only available when the driver provides supply levels.
</p>
2537 <h4><a name=
"marker-types">marker-types (
1setof type3 keyword)
</a></h4>
2539 <p>The marker-types attribute specifies the type(s) of each supply in the
2540 printer. It is only available when the driver provides supply levels. The
2541 following (RFC
3805) types are currently supported:
</p>
2545 <li><tt>toner
</tt></li>
2547 <li><tt>wasteToner
</tt></li>
2549 <li><tt>ink
</tt></li>
2551 <li><tt>inkCartridge
</tt></li>
2553 <li><tt>inkRibbon
</tt></li>
2555 <li><tt>wasteInk
</tt></li>
2557 <li><tt>opc
</tt></li>
2559 <li><tt>developer
</tt></li>
2561 <li><tt>fuserOil
</tt></li>
2563 <li><tt>solidWax
</tt></li>
2565 <li><tt>ribbonWax
</tt></li>
2567 <li><tt>wasteWax
</tt></li>
2569 <li><tt>fuser
</tt></li>
2571 <li><tt>coronaWire
</tt></li>
2573 <li><tt>fuserOilWick
</tt></li>
2575 <li><tt>cleanerUnit
</tt></li>
2577 <li><tt>fuserCleaningPad
</tt></li>
2579 <li><tt>transferUnit
</tt></li>
2581 <li><tt>tonerCartridge
</tt></li>
2583 <li><tt>fuserOiler
</tt></li>
2585 <li><tt>water
</tt></li>
2587 <li><tt>wasteWater
</tt></li>
2589 <li><tt>bindingSupply
</tt></li>
2591 <li><tt>bandingSupply
</tt></li>
2593 <li><tt>stichingWire
</tt></li>
2595 <li><tt>shrinkWrap
</tt></li>
2597 <li><tt>paperWrap
</tt></li>
2599 <li><tt>staples
</tt></li>
2601 <li><tt>inserts
</tt></li>
2603 <li><tt>covers
</tt></li>
2607 <h4><a name=
"port-monitor">port-monitor
" (name(127))</a></h4>
2609 <p>The port-monitor attribute specifies the port monitor to use when printing
2610 to this printer. The default port monitor is "none
".
2612 <h4><a name="port-monitor-supported
">port-monitor-supported" (
1setOf name(
127))
</a></h4>
2614 <p>The port-monitor-supported attribute specifies the available port monitors.
2616 <h4><a name=
"printer-commands">printer-commands (
1setOf Type3 keyword)
</a><span class='info'
>CUPS
1.4</span></h4>
2618 <p>The printer-commands attribute specifies the commands that are supported
2619 by the CUPS command file filter. The keyword
"none" indicates that no commands
2622 <h4><a name=
"printer-dns-sd-name">printer-dns-sd-name (name(MAX) | noValue)
</a><span class='info'
>CUPS
1.4</span></h4>
2624 <p>The printer-dns-sd-name attribute specifies the registered DNS-SD service
2625 name for the printer. If the printer is not being shared using this protocol,
2626 printer-dns-sd-name will have the noValue value.
</p>
2628 <h4><a name=
"printer-type">printer-type (type2 enum)
</a></h4>
2630 <p>The printer-type attribute specifies printer type and
2631 capability bits for the printer or class. The default value is
2632 computed from internal state information and the PPD file for the
2633 printer. The following bits are defined:
</p>
2635 <div class='table'
><table align='center' border='
1' width='
80%'
2636 summary='Printer Type Bits'
>
2640 <th>Description
</th>
2646 <td>Is a printer class.
</td>
2650 <td>Is a remote destination.
</td>
2654 <td>Can print in black.
</td>
2658 <td>Can print in color.
</td>
2662 <td>Can print on both sides of the page in hardware.
</td>
2666 <td>Can staple output.
</td>
2670 <td>Can do fast copies in hardware.
</td>
2674 <td>Can do fast copy collation in hardware.
</td>
2678 <td>Can punch output.
</td>
2682 <td>Can cover output.
</td>
2686 <td>Can bind output.
</td>
2690 <td>Can sort output.
</td>
2694 <td>Can handle media up to US-Legal/A4.
</td>
2698 <td>Can handle media from US-Legal/A4 to ISO-C/A2.
</td>
2702 <td>Can handle media larger than ISO-C/A2.
</td>
2706 <td>Can handle user-defined media sizes.
</td>
2710 <td>Is an implicit (server-generated) class.
</td>
2714 <td>Is the a default printer on the network.
</td>
2718 <td>Is a facsimile device.
</td>
2722 <td>Is rejecting jobs.
</td>
2726 <td>Delete this queue.
</td>
2730 <td>Queue is not shared.
</td>
2734 <td>Queue requires authentication.
</td>
2738 <td>Queue supports CUPS command files.
</td>
2742 <td>Queue was automatically discovered and added.
</td>
2747 <h4>printer-type-mask (type2 enum)
<span class='info'
>CUPS
1.1</span></h4>
2749 <p>The printer-type-mask attribute is used to choose printers or classes with
2750 the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined
2751 identically to the printer-type attribute and default to all
1's.
2753 <h4>requesting-user-name-allowed (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2755 <p>The requesting-user-name-allowed attribute lists all of the users that are
2756 allowed to access a printer or class. Either this attribute or the
2757 requesting-user-name-denied attribute will be defined, but not both.
2759 <h4>requesting-user-name-denied (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2761 <p>The requesting-user-name-denied attribute lists all of the users that are
2762 not allowed to access a printer or class. Either this attribute or the
2763 requesting-user-name-allowed attribute will be defined, but not both.
2765 <h3 class='title'
><a name='CLASS_ATTRIBUTES'
>Printer Class Attributes
</a></h3>
2767 <h4>member-names (
1setof name(
127))
</h4>
2769 <p>The member-names attribute specifies each of the printer-name attributes of
2770 the member printers and classes. Each name corresponds to the same element of
2771 the member-uris attribute.
2773 <h4>member-uris (
1setof uri)
</h4>
2775 <p>The member-uris attribute specifies each of the printer-uri attributes of
2776 the member printers and classes. Each URI corresponds to the same element of
2777 the member-names attribute.