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 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
15 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
14 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>
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>
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>
334 <h2 class='title'
><a name='OPERATIONS'
>Operations
</a></h2>
336 <p>The following sections describe the operations supported by CUPS.
337 In the interest of brevity, operations which use only the standard
338 IPP attributes are not described.
340 <h3 class='title'
><a name='PRINT_JOB'
>Print-Job Operation
</a></h3>
342 <p>The Print-Job operation (
0x0002) prints a file.
344 <h4>Print-Job Request
</h4>
346 <p>The following groups of attributes are supplied as part of the
349 <p>Group
1: Operation Attributes
353 <dt>Natural Language and Character Set:
355 <dd>The
"attributes-charset" and
"attributes-natural-language"
356 attributes as described in section
3.1.4.1 of the IPP Model and
359 <dt>"printer-uri" (uri):
361 <dd>The client MUST supply a URI for the specified printer.
365 <p>Group
2: Job Template Attributes
369 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
371 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
373 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
375 <dd>The client OPTIONALLY supplies a billing string that is logged
376 with the page accounting information.
378 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
380 <dd>The client OPTIONALLY supplies one or two banner pages that
381 are printed before and after any files in the print job. The
382 name of
"none" is reserved to indicate that no banner page
383 should be printed. If the client does not specify this
384 attribute then the value of the
"job-sheets-default" printer
385 object attribute is used.
387 <blockquote><b>Note:
</b> Standard IPP only allows
388 specification of a single job-sheets attribute
391 <dt>"media" (
1setof type3 keyword | name(MAX)):
393 <dd>The client OPTIONALLY supplies one or more media attributes
394 specifying the size, type, source, and color of the output
395 media. If the client does not specify this attribute then the
396 value of the
"media-default" printer object attribute is used.
398 <blockquote><b>Note:
</b> Standard IPP only allows
399 specification of a single media attribute
402 <dt>Other Job Template Attributes
406 <p>The Print-Job request is followed by a file to be printed.
408 <h4>Print-Job Response
</h4>
410 <p>The following groups of attributes are send as part of the Print-Job
413 <p>Group
1: Operation Attributes
419 <dd>The standard response status message.
421 <dt>Natural Language and Character Set:
423 <dd>The
"attributes-charset" and
"attributes-natural-language"
424 attributes as described in section
3.1.4.2 of the IPP Model and
429 <p>Group
2: Job Attributes
433 <dt>Standard Job Attributes
437 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
441 <dt>auth-info-required (
1setOf Type2 keyword)
443 <dd>The required authentication information.
447 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CREATE_JOB'
>Create-Job Operation
</a></h3>
449 <p>The Create-Job operation (
0x0005) creates a new, empty print job.
451 <h4>Create-Job Request
</h4>
453 <p>The following groups of attributes are supplied as part of the
456 <p>Group
1: Operation Attributes
460 <dt>Natural Language and Character Set:
462 <dd>The
"attributes-charset" and
"attributes-natural-language"
463 attributes as described in section
3.1.4.1 of the IPP Model and
466 <dt>"printer-uri" (uri):
468 <dd>The client MUST supply a URI for the specified printer.
472 <p>Group
2: Job Template Attributes
476 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
478 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
480 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
482 <dd>The client OPTIONALLY supplies a billing string that is logged
483 with the page accounting information.
485 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
487 <dd>The client OPTIONALLY supplies one or two banner pages that
488 are printed before and after any files in the print job. The
489 name of
"none" is reserved to indicate that no banner page
490 should be printed. If the client does not specify this
491 attribute then the value of the
"job-sheets-default" printer
492 object attribute is used.
494 <blockquote><b>Note:
</b> Standard IPP only allows
495 specification of a single job-sheets attribute
498 <dt>"media" (
1setof type3 keyword | name(MAX)):
500 <dd>The client OPTIONALLY supplies one or more media attributes
501 specifying the size, type, source, and color of the output
502 media. If the client does not specify this attribute then the
503 value of the
"media-default" printer object attribute is used.
505 <blockquote><b>Note:
</b> Standard IPP only allows
506 specification of a single media attribute
509 <dt>Standard Job Template Attributes
513 <h4>Create-Job Response
</h4>
515 <p>The following groups of attributes are send as part of the
518 <p>Group
1: Operation Attributes
524 <dd>The standard response status message.
526 <dt>Natural Language and Character Set:
528 <dd>The
"attributes-charset" and
"attributes-natural-language"
529 attributes as described in section
3.1.4.2 of the IPP Model and
534 <p>Group
2: Job Attributes
538 <dt>Standard Job Attributes
542 <p>Group
3: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
546 <dt>auth-info-required (
1setOf Type2 keyword)
548 <dd>The required authentication information.
552 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='SET_JOB_ATTRIBUTES'
>Set-Job-Attributes Operation
</a></h3>
554 <p>The Set-Job-Attributes operation (
0x0014) changes the attributes of
555 an active (not completed) job.
557 <h4>Set-Job-Attributes Request
</h4>
559 <p>The following groups of attributes are supplied as part of the
560 Set-Job-Attributes request:
562 <p>Group
1: Operation Attributes
566 <dt>Natural Language and Character Set:
568 <dd>The
"attributes-charset" and
"attributes-natural-language"
569 attributes as described in section
3.1.4.1 of the IPP Model and
572 <dt>"printer-uri" (uri) and
"job-id" (integer)
576 <dd>The client MUST supply a URI for the specified printer and
577 a job ID number, or the job URI.
581 <p>Group
2: Job Template Attributes
585 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
587 <dd>The client OPTIONALLY supplies one or two banner pages that
588 are printed before and after any files in the print job. The
589 name of
"none" is reserved to indicate that no banner page
590 should be printed. If the client does not specify this
591 attribute then the value of the
"job-sheets-default" printer
592 object attribute is used.
594 <blockquote><b>Note:
</b> Standard IPP only allows
595 specification of a single job-sheets attribute
598 <dt>"media" (
1setof type3 keyword | name(MAX)):
600 <dd>The client OPTIONALLY supplies one or more media attributes
601 specifying the size, type, source, and color of the output
602 media. If the client does not specify this attribute then the
603 value of the
"media-default" printer object attribute is used.
605 <blockquote><b>Note:
</b> Standard IPP only allows
606 specification of a single media attribute
609 <dt>Other Job Template Attributes
613 <h4>Set-Job-Attributes Response
</h4>
615 <p>The following groups of attributes are send as part of the Set-Job-Attributes
618 <p>Group
1: Operation Attributes
624 <dd>The standard response status message.
626 <dt>Natural Language and Character Set:
628 <dd>The
"attributes-charset" and
"attributes-natural-language"
629 attributes as described in section
3.1.4.2 of the IPP Model and
634 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a
635 name='CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></h3>
637 <p>The Create-Printer-Subscription operation (
0x0016) creates a
638 subscription for printer or server event notifications. CUPS
639 provides several additional events in addition to the standard
640 events in the IPP notifications specification.
</p>
642 <h4>Create-Printer-Subscription Request
</h4>
644 <p>The following groups of attributes are supplied as part of the
647 <p>Group
1: Operation Attributes
</p>
651 <dt>Natural Language and Character Set:
653 <dd>The
"attributes-charset" and
"attributes-natural-language"
654 attributes as described in section
3.1.4.1 of the IPP Model and
657 <dt>"printer-uri" (uri):
660 (
<tt>ipp://server/printers/printername
</tt>), class
661 (
<tt>ipp://server/classes/classname
</tt>), or server
662 (
<tt>ipp://server/
</tt>) URI for event notifications.
664 <dt>"notify-events" (
1setOf keyword):
666 <dd>The events to monitor. In addition to the standard
667 events, CUPS adds the following keywords:
670 <li><tt>printer-added
</tt> - Get notified
671 whenever a printer or class is added
</li>
673 <li><tt>printer-deleted
</tt> - Get notified
674 whenever a printer or class is deleted
</li>
676 <li><tt>printer-modified
</tt> - Get notified
677 whenever a printer or class is modified
</li>
679 <li><tt>server-audit
</tt> - Get notified when a
680 security condition occurs
</li>
682 <li><tt>server-restarted
</tt> - Get notified when
683 the server is restarted
</li>
685 <li><tt>server-started
</tt> - Get notified when
686 the server is started
</li>
688 <li><tt>server-stopped
</tt> - Get notified when
689 the server is stopped
</li>
695 <h4>Create-Printer-Subscription Response
</h4>
697 <p>The following groups of attributes are send as part of the
700 <p>Group
1: Operation Attributes
</p>
706 <dd>The standard response status message.
708 <dt>Natural Language and Character Set:
710 <dd>The
"attributes-charset" and
"attributes-natural-language"
711 attributes as described in section
3.1.4.2 of the IPP Model and
716 <p>Group
2: Subscription Object Attributes
</p>
720 <dt>"subscription-id" (integer):
722 <dd>The subscription number.
726 <h3 class='title'
><a name='CUPS_GET_DEFAULT'
>CUPS-Get-Default Operation
</a></h3>
728 <p>The CUPS-Get-Default operation (
0x4001) returns the default printer
731 <h4>CUPS-Get-Default Request
</h4>
733 <p>The following groups of attributes are supplied as part of the
734 CUPS-Get-Default request:
736 <p>Group
1: Operation Attributes
740 <dt>Natural Language and Character Set:
742 <dd>The
"attributes-charset" and
"attributes-natural-language"
743 attributes as described in section
3.1.4.1 of the IPP Model and
746 <dt>"requested-attributes" (
1setOf keyword) :
748 <dd>The client OPTIONALLY supplies a set of attribute names
749 and/or attribute group names in whose values the requester is
750 interested. If the client omits this attribute, the server
751 responds as if this attribute had been supplied with a value of
756 <h4>CUPS-Get-Default Response
</h4>
758 <p>The following groups of attributes are send as part of the
759 CUPS-Get-Default Response:
761 <p>Group
1: Operation Attributes
767 <dd>The standard response status message.
769 <dt>Natural Language and Character Set:
771 <dd>The
"attributes-charset" and
"attributes-natural-language"
772 attributes as described in section
3.1.4.2 of the IPP Model and
777 <p>Group
2: Printer Object Attributes
781 <dt>The set of requested attributes and their current values.
785 <h3 class='title'
><a name='CUPS_GET_PRINTERS'
>CUPS-Get-Printers Operation
</a></h3>
787 <p>The CUPS-Get-Printers operation (
0x4002) returns the printer
788 attributes for every printer known to the system. This may include
789 printers that are not served directly by the server.
791 <h4>CUPS-Get-Printers Request
</h4>
793 <p>The following groups of attributes are supplied as part of the
794 CUPS-Get-Printers request:
796 <p>Group
1: Operation Attributes
800 <dt>Natural Language and Character Set:
802 <dd>The
"attributes-charset" and
"attributes-natural-language"
803 attributes as described in section
3.1.4.1 of the IPP Model and
806 <dt>"limit" (integer (
1:MAX)):
808 <dd>The client OPTIONALLY supplies this attribute limiting the
809 number of printers that are returned.
811 <dt>"printer-info" (text(
127)):
<span class='info'
>CUPS
1.1</span>
813 <dd>The client OPTIONALLY supplies this attribute to
814 select which printers are returned.
816 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
818 <dd>The client OPTIONALLY supplies this attribute to
819 select which printers are returned.
821 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
823 <dd>The client OPTIONALLY supplies a printer type enumeration to
824 select which printers are returned.
826 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
828 <dd>The client OPTIONALLY supplies a printer type mask
829 enumeration to select which bits are used in the
"printer-type"
832 <dt>"requested-attributes" (
1setOf keyword) :
834 <dd>The client OPTIONALLY supplies a set of attribute names
835 and/or attribute group names in whose values the requester is
836 interested. If the client omits this attribute, the server
837 responds as if this attribute had been supplied with a value of
842 <h4>CUPS-Get-Printers Response
</h4>
844 <p>The following groups of attributes are send as part of the
845 CUPS-Get-Printers Response:
847 <p>Group
1: Operation Attributes
853 <dd>The standard response status message.
855 <dt>Natural Language and Character Set:
857 <dd>The
"attributes-charset" and
"attributes-natural-language"
858 attributes as described in section
3.1.4.2 of the IPP Model and
863 <p>Group
2: Printer Object Attributes
867 <dt>The set of requested attributes and their current values for
872 <h3 class='title'
><a name='CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer Operation
</a></h3>
874 <p>The CUPS-Add-Modify-Printer operation (
0x4003) adds a new printer or
875 modifies an existing printer on the system.
877 <h4>CUPS-Add-Modify-Printer Request
</h4>
879 <p>The following groups of attributes are supplied as part of the
880 CUPS-Add-Modify-Printer request:
882 <p>Group
1: Operation Attributes
886 <dt>Natural Language and Character Set:
888 <dd>The
"attributes-charset" and
"attributes-natural-language"
889 attributes as described in section
3.1.4.1 of the IPP Model and
892 <dt>"printer-uri" (uri):
894 <dd>The client MUST supply a URI for the specified printer.
898 <p>Group
2: Printer Object Attributes
902 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
904 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
906 <dt>"job-sheets-default" (
1setOf name(
127)):
<span
907 class='info'
>CUPS
1.1.7</span>
909 <dd>The client OPTIONALLY supplies one or two banner page
910 names that are printed before and after files in a job.
911 The reserved name
"none" is used to specify that no
912 banner page should be printed.
914 <dt>"device-uri" (uri):
916 <dd>The client OPTIONALLY supplies a device URI for the
919 <dt>"port-monitor" (name(
127)):
921 <dd>The client OPTIONALLY supplies a port monitor name for the
924 <dt>"ppd-name" (name(
127)):
926 <dd>The client OPTIONALLY supplies a PPD name for the specified
929 <dt>"printer-is-accepting-jobs" (boolean):
931 <dd>The client OPTIONALLY supplies this boolean attribute
932 indicating whether or not the printer object should accept new jobs.
934 <dt>"printer-info" (text(
127)):
936 <dd>The client OPTIONALLY supplies this attribute indicating the
937 printer information string.
939 <dt>"printer-location" (text(
127)):
941 <dd>The client OPTIONALLY supplies this attribute indicating a
942 textual location of the printer.
944 <dt>"printer-more-info" (uri):
946 <dd>The client OPTIONALLY supplies this attribute indicating a
947 URI for additional printer information.
949 <dt>"printer-state" (type2 enum):
951 <dd>The client OPTIONALLY supplies this attribute indicating the
952 initial/current state of the printer. Only the
"idle" and
"stopped"
953 enumerations are recognized.
955 <dt>"printer-state-message" (text(MAX)):
957 <dd>The client OPTIONALLY supplies this attribute indicating a
958 textual reason for the current printer state.
960 <dt>"requesting-user-name-allowed" (
1setof name(
127) | delete)
962 <br>"requesting-user-name-denied" (
1setof name(
127) | delete):
964 <dd>The client OPTIONALLY supplies one of these attributes to
965 specify an access control list for incoming print jobs. To allow
966 all users access to a printer, use the delete tag for the
971 <p>The CUPS-Add-Modify-Printer request can optionally be followed by a PPD
972 file or System V interface script to be used for the printer. The
973 "ppd-name" attribute overrides any file that is attached to the end of
974 the request with a local CUPS PPD file.
976 <h4>CUPS-Add-Modify-Printer Response
</h4>
978 <p>The following groups of attributes are send as part of the
979 CUPS-Add-Modify-Printer Response:
981 <p>Group
1: Operation Attributes
987 <dd>The standard response status message.
989 <dt>Natural Language and Character Set:
991 <dd>The
"attributes-charset" and
"attributes-natural-language"
992 attributes as described in section
3.1.4.2 of the IPP Model and
997 <h3 class='title'
><a name='CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer Operation
</a></h3>
999 <p>The CUPS-Delete-Printer operation (
0x4004) removes an existing
1000 printer from the system.
1002 <h4>CUPS-Delete-Printer Request
</h4>
1004 <p>The following groups of attributes are supplied as part of the
1005 CUPS-Delete-Printer request:
1007 <p>Group
1: Operation Attributes
1011 <dt>Natural Language and Character Set:
1013 <dd>The
"attributes-charset" and
"attributes-natural-language"
1014 attributes as described in section
3.1.4.1 of the IPP Model and
1017 <dt>"printer-uri" (uri):
1019 <dd>The client MUST supply a URI for the specified printer.
1023 <h4>CUPS-Delete-Printer Response
</h4>
1025 <p>The following groups of attributes are send as part of the
1026 CUPS-Delete-Printer Response:
1028 <p>Group
1: Operation Attributes
1034 <dd>The standard response status message.
1036 <dt>Natural Language and Character Set:
1038 <dd>The
"attributes-charset" and
"attributes-natural-language"
1039 attributes as described in section
3.1.4.2 of the IPP Model and
1044 <h3 class='title'
><a name='CUPS_GET_CLASSES'
>CUPS-Get-Classes Operation
</a></h3>
1046 <p>The CUPS-Get-Classes operation (
0x4005) returns the printer
1047 attributes for every printer class known to the system. This may
1048 include printer classes that are not served directly by the server.
1050 <h4>CUPS-Get-Classes Request
</h4>
1052 <p>The following groups of attributes are supplied as part of the
1053 CUPS-Get-Classes request:
1055 <p>Group
1: Operation Attributes
1059 <dt>Natural Language and Character Set:
1061 <dd>The
"attributes-charset" and
"attributes-natural-language"
1062 attributes as described in section
3.1.4.1 of the IPP Model and
1065 <dt>"limit" (integer (
1:MAX)):
1067 <dd>The client OPTIONALLY supplies this attribute limiting the
1068 number of printer classes that are returned.
1070 <dt>"printer-info" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
1071 <dd>The client OPTIONALLY supplies this attribute to
1072 select which printer classes are returned.
1074 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
1075 <dd>The client OPTIONALLY supplies this attribute to
1076 select which printer classes are returned.
1078 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
1079 <dd>The client OPTIONALLY supplies a printer type enumeration to
1080 select which printer classes are returned.
1082 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
1083 <dd>The client OPTIONALLY supplies a printer type mask
1084 enumeration to select which bits are used in the
"printer-type"
1087 <dt>"requested-attributes" (
1setOf keyword) :
1089 <dd>The client OPTIONALLY supplies a set of attribute names
1090 and/or attribute group names in whose values the requester is
1091 interested. If the client omits this attribute, the server responds as
1092 if this attribute had been supplied with a value of 'all'.
1096 <h4>CUPS-Get-Classes Response
</h4>
1098 <p>The following groups of attributes are send as part of the
1099 CUPS-Get-Classes Response:
1101 <p>Group
1: Operation Attributes
1107 <dd>The standard response status message.
1109 <dt>Natural Language and Character Set:
1111 <dd>The
"attributes-charset" and
"attributes-natural-language"
1112 attributes as described in section
3.1.4.2 of the IPP Model and
1117 <p>Group
2: Printer Class Object Attributes
1121 <dt>The set of requested attributes and their current values for
1126 <h3 class='title'
><a name='CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class Operation
</a></h3>
1128 <p>The CUPS-Add-Modify-Class operation (
0x4006) adds a new printer class or
1129 modifies and existing printer class on the system.
1131 <h4>CUPS-Add-Modify-Class Request
</h4>
1133 <p>The following groups of attributes are supplied as part of the
1134 CUPS-Add-Modify-Class request:
1136 <p>Group
1: Operation Attributes
1140 <dt>Natural Language and Character Set:
1142 <dd>The
"attributes-charset" and
"attributes-natural-language"
1143 attributes as described in section
3.1.4.1 of the IPP Model and
1146 <dt>"printer-uri" (uri):
1148 <dd>The client MUST supply a URI for the specified printer class.
1152 <p>Group
2: Printer Object Attributes
1156 <dt>"auth-info-required" (
1setOf type2 keyword):
<span class='info'
>CUPS
1.3</span>
1158 <dd>The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
1160 <dt>"member-uris" (
1setof uri):
1162 <dd>The client OPTIONALLY supplies the
"member-uris" set
1163 specifying the printers and printer classes that are part of the class.
1165 <dt>"printer-is-accepting-jobs" (boolean):
1167 <dd>The client OPTIONALLY supplies this boolean attribute
1168 indicating whether or not the class object should accept new jobs.
1170 <dt>"printer-info" (text(
127)):
1172 <dd>The client OPTIONALLY supplies this attribute indicating the
1173 printer information string.
1175 <dt>"printer-location" (text(
127)):
1177 <dd>The client OPTIONALLY supplies this attribute indicating a
1178 textual location of the class.
1180 <dt>"printer-more-info" (uri):
1182 <dd>The client OPTIONALLY supplies this attribute indicating a
1183 URI for additional class information.
1185 <dt>"printer-state" (type2 enum):
1187 <dd>The client OPTIONALLY supplies this attribute indicating the
1188 initial/current state of the class. Only the
"idle" and
"stopped"
1189 enumerations are recognized.
1191 <dt>"printer-state-message" (text(MAX)):
1193 <dd>The client OPTIONALLY supplies this attribute indicating a
1194 textual reason for the current class state.
1196 <dt>"requesting-user-name-allowed" (
1setof name(
127))
1198 <br>"requesting-user-name-denied" (
1setof name(
127)):
1200 <dd>The client OPTIONALLY supplies one of these attributes to
1201 specify an access control list for incoming print jobs. To allow
1202 all users access to a class, use the delete tag for the
1207 <h4>CUPS-Add-Modify-Class Response
</h4>
1209 <p>The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
1211 <p>Group
1: Operation Attributes
1217 <dd>The standard response status message.
1219 <dt>Natural Language and Character Set:
1221 <dd>The
"attributes-charset" and
"attributes-natural-language"
1222 attributes as described in section
3.1.4.2 of the IPP Model and
1227 <h3 class='title'
><a name='CUPS_DELETE_CLASS'
>CUPS-Delete-Class Operation
</a></h3>
1229 <p>The CUPS-Delete-Class operation (
0x4007) removes an existing printer
1230 class from the system.
1232 <h4>CUPS-Delete-Class Request
</h4>
1234 <p>The following groups of attributes are supplied as part of the
1235 CUPS-Delete-Class request:
1237 <p>Group
1: Operation Attributes
1241 <dt>Natural Language and Character Set:
1243 <dd>The
"attributes-charset" and
"attributes-natural-language"
1244 attributes as described in section
3.1.4.1 of the IPP Model and
1247 <dt>"printer-uri" (uri):
1249 <dd>The client MUST supply a URI for the specified printer class.
1253 <h4>CUPS-Delete-Class Response
</h4>
1255 <p>The following groups of attributes are send as part of the
1256 CUPS-Delete-Class Response:
1258 <p>Group
1: Operation Attributes
1264 <dd>The standard response status message.
1266 <dt>Natural Language and Character Set:
1268 <dd>The
"attributes-charset" and
"attributes-natural-language"
1269 attributes as described in section
3.1.4.2 of the IPP Model and
1274 <h3 class='title'
><a name='CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs Operation
</a></h3>
1276 <p>The CUPS-Accept-Jobs operation (
0x4008) sets the
1277 "printer-is-accepting-jobs" attribute to true for the specified printer
1280 <h4>CUPS-Accept-Jobs Request
</h4>
1282 <p>The following groups of attributes are supplied as part of the
1283 CUPS-Accept-Jobs request:
1285 <p>Group
1: Operation Attributes
1289 <dt>Natural Language and Character Set:
1291 <dd>The
"attributes-charset" and
"attributes-natural-language"
1292 attributes as described in section
3.1.4.1 of the IPP Model and
1295 <dt>"printer-uri" (uri):
1297 <dd>The client MUST supply a URI for the specified printer or printer class.
1301 <h4>CUPS-Accept-Jobs Response
</h4>
1303 <p>The following groups of attributes are send as part of the
1304 CUPS-Accept-Jobs Response:
1306 <p>Group
1: Operation Attributes
1312 <dd>The standard response status message.
1314 <dt>Natural Language and Character Set:
1316 <dd>The
"attributes-charset" and
"attributes-natural-language"
1317 attributes as described in section
3.1.4.2 of the IPP Model and
1322 <h3 class='title'
><a name='CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs Operation
</a></h3>
1324 <p>The CUPS-Reject-Jobs operation (
0x4009) sets
1325 the
"printer-is-accepting-jobs" attribute to false for the specified
1326 printer or printer class.
1328 <h4>CUPS-Reject-Jobs Request
</h4>
1330 <p>The following groups of attributes are supplied as part of the
1331 CUPS-Reject-Jobs request:
1333 <p>Group
1: Operation Attributes
1337 <dt>Natural Language and Character Set:
1339 <dd>The
"attributes-charset" and
"attributes-natural-language"
1340 attributes as described in section
3.1.4.1 of the IPP Model and
1343 <dt>"printer-uri" (uri):
1345 <dd>The client MUST supply a URI for the specified printer or printer class.
1349 <p>Group
2: Printer Object Attributes
1353 <dt>"printer-state-message" (text(MAX)):
1355 <dd>The client OPTIONALLY supplies this attribute indicating a
1356 textual reason for the current printer state.
1360 <h4>CUPS-Reject-Jobs Response
</h4>
1362 <p>The following groups of attributes are send as part of the
1363 CUPS-Reject-Jobs Response:
1365 <p>Group
1: Operation Attributes
1371 <dd>The standard response status message.
1373 <dt>Natural Language and Character Set:
1375 <dd>The
"attributes-charset" and
"attributes-natural-language"
1376 attributes as described in section
3.1.4.2 of the IPP Model and
1381 <h3 class='title'
><a name='CUPS_SET_DEFAULT'
>CUPS-Set-Default Operation
</a></h3>
1383 <p>The CUPS-Set-Default operation (
0x400A) sets the default printer
1384 destination for all clients when a resource name of
"/printers" is
1387 <h4>CUPS-Set-Default Request
</h4>
1389 <p>The following groups of attributes are supplied as part of the
1390 CUPS-Set-Default request:
1392 <p>Group
1: Operation Attributes
1396 <dt>Natural Language and Character Set:
1398 <dd>The
"attributes-charset" and
"attributes-natural-language"
1399 attributes as described in section
3.1.4.1 of the IPP Model and
1402 <dt>"printer-uri" (uri):
1404 <dd>The client MUST supply a URI for the specified printer or
1409 <h4>CUPS-Set-Default Response
</h4>
1411 <p>The following groups of attributes are send as part of the
1412 CUPS-Set-Default Response:
1414 <p>Group
1: Operation Attributes
1420 <dd>The standard response status message.
1422 <dt>Natural Language and Character Set:
1424 <dd>The
"attributes-charset" and
"attributes-natural-language"
1425 attributes as described in section
3.1.4.2 of the IPP Model and
1430 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_DEVICES'
>CUPS-Get-Devices Operation
</a></h3>
1432 <p>The CUPS-Get-Devices operation (
0x400B) returns all of the
1433 supported device-uri's for the server.
</p>
1435 <h4>CUPS-Get-Devices Request
</h4>
1437 <p>The following groups of attributes are supplied as part of the
1438 CUPS-Get-Devices request:
1440 <p>Group
1: Operation Attributes
1444 <dt>Natural Language and Character Set:
1446 <dd>The
"attributes-charset" and
"attributes-natural-language"
1447 attributes as described in section
3.1.4.1 of the IPP Model and
1450 <dt>"device-class" (type1 keyword):
1452 <dd>The client OPTIONALLY supplies a device class keyword to select
1453 which devices are returned.
1455 <dt>"limit" (integer (
1:MAX)):
1457 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1458 devices that are returned.
1460 <dt>"requested-attributes" (
1setOf keyword) :
1462 <dd>The client OPTIONALLY supplies a set of attribute names and/or
1463 attribute group names in whose values the requester is interested. If
1464 the client omits this attribute, the server responds as if this
1465 attribute had been supplied with a value of 'all'.
1469 <h4>CUPS-Get-Devices Response
</h4>
1471 <p>The following groups of attributes are send as part of the
1472 CUPS-Get-Devices Response:
1474 <p>Group
1: Operation Attributes
1480 <dd>The standard response status message.
1482 <dt>Natural Language and Character Set:
1484 <dd>The
"attributes-charset" and
"attributes-natural-language"
1485 attributes as described in section
3.1.4.2 of the IPP Model and
1490 <p>Group
2: Device Object Attributes
1494 <dt>The set of requested attributes and their current values for
1499 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_PPDS'
>CUPS-Get-PPDs Operation
</a></h3>
1501 <p>The CUPS-Get-PPDs operation (
0x400C) returns all of the
1502 locally available PPD files on the system.
</p>
1504 <h4>CUPS-Get-PPDs Request
</h4>
1506 <p>The following groups of attributes are supplied as part of the
1507 CUPS-Get-PPDs request:
1509 <p>Group
1: Operation Attributes
1513 <dt>Natural Language and Character Set:
1515 <dd>The
"attributes-charset" and
"attributes-natural-language"
1516 attributes as described in section
3.1.4.1 of the IPP Model and
1519 <dt>"limit" (integer (
1:MAX)):
1521 <dd>The client OPTIONALLY supplies this attribute limiting the number of PPDs that are returned.
1523 <dt>"ppd-make" (text(
127)):
1525 <dd>The client OPTIONALLY supplies a printer manufacturer to select which PPDs are returned.
1527 <dt>"ppd-make-and-model" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1529 <dd>The client OPTIONALLY supplies a make and model to select which PPDs are returned.
1531 <dt>"ppd-model-number" (integer):
<span class='info'
>CUPS
1.3</span>
1533 <dd>The client OPTIONALLY supplies a model number to select which PPDs are returned.
1535 <dt>"ppd-natural-language" (naturalLanguage):
<span class='info'
>CUPS
1.3</span>
1537 <dd>The client OPTIONALLY supplies a language to select which PPDs are returned.
1539 <dt>"ppd-product" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1541 <dd>The client OPTIONALLY supplies a PostScript product string to select which PPDs are returned.
1543 <dt>"ppd-psversion" (text(
127)):
<span class='info'
>CUPS
1.3</span>
1545 <dd>The client OPTIONALLY supplies a PostScript version string to select which PPDs are returned.
1547 <dt>"ppd-type" (type1 keyword):
<span class='info'
>CUPS
1.3</span>
1549 <dd>The client OPTIONALLY supplies a driver type to select which PPDs are returned.
1551 <dt>"requested-attributes" (
1setOf keyword) :
1553 <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.
1557 <h4>CUPS-Get-PPDs Response
</h4>
1559 <p>The following groups of attributes are send as part of the
1560 CUPS-Get-PPDs Response:
1562 <p>Group
1: Operation Attributes
1568 <dd>The standard response status message.
1570 <dt>Natural Language and Character Set:
1572 <dd>The
"attributes-charset" and
"attributes-natural-language"
1573 attributes as described in section
3.1.4.2 of the IPP Model and
1578 <p>Group
2: PPD Attributes
1582 <dt>The set of requested attributes and their current values for each
1587 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_MOVE_JOB'
>CUPS-Move-Job Operation
</a></h3>
1589 <p>The CUPS-Move-Job operation (
0x400D) moves an active print job
1590 to a different printer.
</p>
1592 <h4>CUPS-Move-Job Request
</h4>
1594 <p>The following groups of attributes are supplied as part of the
1595 CUPS-Move-Job request:
1597 <p>Group
1: Operation Attributes
1601 <dt>Natural Language and Character Set:
1603 <dd>The
"attributes-charset" and
"attributes-natural-language"
1604 attributes as described in section
3.1.4.1 of the IPP Model and
1607 <dt>"printer-uri" (uri) and
"job-id" (integer)
1611 <dd>The client MUST supply a URI for the specified printer and
1612 a job ID number, or the job URI.
1616 <p>Group
2: Job Template Attributes
1620 <dt>"job-printer-uri" (uri)
1622 <dd>The client MUST supply a URI for a printer on the same server.
1626 <h4>CUPS-Move-Job Response
</h4>
1628 <p>The following groups of attributes are send as part of the
1629 CUPS-Move-Job Response:
1631 <p>Group
1: Operation Attributes
1637 <dd>The standard response status message.
1639 <dt>Natural Language and Character Set:
1641 <dd>The
"attributes-charset" and
"attributes-natural-language"
1642 attributes as described in section
3.1.4.2 of the IPP Model and
1647 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a name='CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job Operation
</a></h3>
1649 <p>The CUPS-Authenticate-Job operation (
0x400E) authenticate a
1650 print job for printing. Typically this is used when printing to a
1651 remote server. The authentication information is passed in the
1654 <h4>CUPS-Authenticate-Job Request
</h4>
1656 <p>The following groups of attributes are supplied as part of the
1657 CUPS-Authenticate-Job request:
1659 <p>Group
1: Operation Attributes
1663 <dt>Natural Language and Character Set:
1665 <dd>The
"attributes-charset" and
"attributes-natural-language"
1666 attributes as described in section
3.1.4.1 of the IPP Model and
1669 <dt>"printer-uri" (uri) and
"job-id" (integer)
1673 <dd>The client MUST supply a URI for the specified printer and
1674 a job ID number, or the job URI.
1678 <p>Group
2: Job Attributes
1682 <dt>"auth-info" (
1setOf text(MAX)):
<span class='info'
>CUPS
1.3</span>
1684 <dd>The client OPTIONALLY supplies one or more authentication values as specified by the
"auth-info-required" attribute.
1688 <h4>CUPS-Authenticate-Job Response
</h4>
1690 <p>The following groups of attributes are send as part of the
1691 CUPS-Authenticate-Job Response:
1693 <p>Group
1: Operation Attributes
1699 <dd>The standard response status message.
1701 <dt>Natural Language and Character Set:
1703 <dd>The
"attributes-charset" and
"attributes-natural-language"
1704 attributes as described in section
3.1.4.2 of the IPP Model and
1709 <p>Group
2: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)
1713 <dt>auth-info-required (
1setOf Type2 keyword)
1715 <dd>The required authentication information.
1719 <h3 class='title'
><span class='info'
>CUPS
1.3</span><a name='CUPS_GET_PPD'
>CUPS-Get-PPD Operation
</a></h3>
1721 <p>The CUPS-Get-PPD operation (
0x400F) gets a PPD file from the
1722 server. The PPD file can be specified using a
<tt>ppd-name
</tt>
1723 returned by
<a href='#CUPS_GET_PPDS'
><tt>CUPS-Get-PPDs
</tt></a>
1724 or using the
<tt>printer-uri
</tt> for a queue.
</p>
1726 <p>If the PPD file is found,
<tt>successful-ok
</tt> is returned with
1727 the PPD file following the response data.
</p>
1729 <p>If the PPD file cannot be served by the local server because
1730 the
<tt>printer-uri
</tt> attribute points to an external printer,
1731 a
<tt>cups-see-other
</tt> status is returned with the correct
1734 <p>If the PPD file does not exist,
<tt>client-error-not-found
</tt> is
1737 <h4>CUPS-Get-PPD Request
</h4>
1739 <p>The following group of attributes is supplied as part of the
1740 CUPS-Get-PPD request:
1742 <p>Group
1: Operation Attributes
1746 <dt>Natural Language and Character Set:
1748 <dd>The
"attributes-charset" and
"attributes-natural-language"
1749 attributes as described in section
3.1.4.1 of the IPP Model and
1752 <dt>"printer-uri" (uri)
1754 <br>"ppd-name" (name(
255)):
1756 <dd>The client MUST supply a printer URI or PPD name.
1760 <h4>CUPS-Get-PPD Response
</h4>
1762 <p>The following group of attributes is sent as part of the
1763 CUPS-Get-PPD Response:
1765 <p>Group
1: Operation Attributes
1771 <dd>The standard response status message.
1773 <dt>Natural Language and Character Set:
1775 <dd>The
"attributes-charset" and
"attributes-natural-language"
1776 attributes as described in section
3.1.4.2 of the IPP Model and
1779 <dt>"printer-uri" (uri):
1781 <dd>The printer that provides the actual PPD file when
1782 the status code is cups-see-other (
0x280)
1786 <p>If the status code is
<tt>successful-ok
</tt>, the PPD file follows
1787 the end of the IPP response.
</p>
1790 <h2 class='title'
><a name='ATTRIBUTES'
>Attributes
</a></h2>
1792 <p>CUPS provides many extension attributes to support multiple
1793 devices, PPD files, standard job filters, printers, and printer
1796 <h3 class='title'
><a name='DEVICE_ATTRIBUTES'
>Device Attributes
</a></h3>
1798 <p>Device attributes are returned by the CUPS-Get-Devices
1799 operation and enumerate all of the available hardware devices and
1800 network protocols that are supported by the server.
</p>
1802 <h4><a name=
"device-class">device-class (type2 keyword)
</a></h4>
1804 <p>The device-class attribute specifies the class of device and can be
1805 one of the following:
1809 <li>"file" - a disk file.
1811 <li>"direct" - a parallel or fixed-rate serial data port,
1812 currently used for Centronics, IEEE-
1284, and USB printer
1815 <li>"serial" - a variable-rate serial port.
1817 <li>"network" - a network connection, typically via AppSocket,
1818 HTTP, IPP, LPD, or SMB/CIFS protocols.
1822 <h4><a name=
"device-id">device-id (text(
127))
</a><span class=
"info">CUPS
1.2</span></h4>
1824 <p>The device-id attribute specifies the IEEE-
1284 device ID
1825 string for the device.
</p>
1827 <h4><a name=
"device-info">device-info (text(
127))
</a></h4>
1829 <p>The device-info attribute specifies a human-readable string describing
1830 the device, e.g.
"Parallel Port #1".
1832 <h4><a name=
"device-make-and-model">device-make-and-model (text(
127))
</a></h4>
1834 <p>The device-makr-and-model attribute specifies a device
1835 identification string provided by the printer connected to the device.
1836 If the device or printer does not support identification then this
1837 attribute contains the string
"unknown".
1839 <h4><a name=
"device-uri">device-uri (uri)
</a></h4>
1841 <p>The device-uri attribute specifies a unique identifier for the
1842 device. The actual format of the device-uri string depends on the value
1843 of the device-class attribute:
1847 <li>"file" - The device-uri will be of the form
1848 "file:///path/to/filename".
1850 <li>"direct" - The device-uri will be of the form
1851 "scheme:/dev/filename" or
"scheme://vendor/identifier",
1852 where scheme may be
"parallel" or
"usb" in the current
1855 <li>"serial" - The device-uri will be of the form
1856 "serial:/dev/filename?baud=value+parity=value+flow=value".
1857 The baud value is the data rate in bits per second; the
1858 supported values depend on the underlying hardware.
1859 The parity value can be one of
"none",
"even", or
"odd".
1860 The flow value can be one of
"none",
"soft" (XON/XOFF
1861 handshaking),
"hard" or
"rts/cts" (RTS/CTS handshaking),
1862 or
"dtrdsr" (DTR/DSR handshaking).
1864 <p>The URI returned by CUPS-Get-Devices will contain the
1865 maximum baud rate supported by the device and the best
1866 type of flow control available (
"soft" or
"hard").
1868 <li>"network" - The device-uri will be of the form
1869 "scheme://[username:password@]hostname[:port]/[resource]",
1870 where scheme may be
"http",
"https",
"ipp",
"lpd",
"smb", or
1871 "socket" in the current implementation.
1873 <p>The URI returned by CUPS-Get-Devices will only contain
1874 the scheme name (
"scheme"). It is up to the client
1875 application to add the appropriate host and other
1876 information when adding a new printer.
1878 <p>The URI returned by Get-Printer-Attributes and
1879 CUPS-Get-Printers has any username and password information
1880 stripped; the information is still stored and used by the
1881 server internally to perform any needed authentication.
1885 <h3 class='title'
><a name='JOB_TEMPLATE_ATTRIBUTES'
>Job Template Attributes
</a></h3>
1887 <h4><a name=
"auth-info">auth-info (
1setOf text(MAX))
</a><span class=
"info">CUPS
1.3</span></h4>
1889 <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.
1891 <h4><a name=
"blackplot">blackplot (boolean)
</a></h4>
1893 <p>The blackplot attribute specifies whether HP-GL/
2 plot files should be
1894 rendered entirely in black ink (blackplot=true) or using the colors and shades
1895 specified in the file (blackplot=false). The default value is false.
1897 <h4><a name=
"brightness">brightness (integer(
0:
200))
</a></h4>
1899 <p>The brightness attribute specifies the overall brightness of the printed
1900 output in percent. A brightness of
100 is normal, while
200 is twice as
1901 bright and
50 is half as bright. The default value is
100.
1903 <p>Brightness is applied to the Cyan, Magenta, Yellow, and Black values using
1904 the function
"f(x) = brightness / 100 * x".
1906 <h4><a name=
"columns">columns (integer(
1:
4))
</a></h4>
1908 <p>The columns attribute specifies the number of columns to generate when
1909 printing text files. The default value is
1.
1911 <h4><a name=
"cpi">cpi (type2 enum)
</a></h4>
1913 <p>The cpi attribute specifies the number of characters per inch when
1914 printing text files. Only the values
10,
12, and
17 are currently
1915 supported. The default value is
10.
1917 <h4><a name=
"fitplot">fitplot (boolean)
</a></h4>
1919 <p>The fitplot attribute specifies whether to scale HP-GL/
2 plot files to
1920 fit on the selected media (fitplot=true) or use the physical scale specified
1921 in the plot file (fitplot=false). The default value is false.
1923 <h4><a name=
"gamma">gamma (integer(
1:
10000))
</a></h4>
1925 <p>The gamma attribute specifies the luminance correction for the output.
1926 A value of
1000 specifies no correction, while values of
2000 and
500 will
1927 generate lighter and darker output, respectively. The default value is
1930 <p>Gamma is applied to the Red, Green, and Blue values (or luminance for
1931 grayscale output) using the function
"f(x) = x<SUp>(1000/gamma)</SUp>".
1933 <h4><a name=
"hue">hue (integer(-
180:
180))
</a></h4>
1935 <p>The hue attribute specifies a color hue rotation when printing image
1936 files. The default value is
0.
1938 <h4><a name=
"job-billing">job-billing (text(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
1940 <p>The job-billing attribute provides a text value to associate with a job
1941 for billing purposes.
1943 <h4><a name=
"job-hold-until">job-hold-until (keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
1945 <p>The job-hold-until attribute specifies a hold time. In addition to the
1946 standard IPP/
1.1 keyword names, CUPS supports name values of the form
1947 "HH:MM" and
"HH:MM:SS" that specify a hold time. The hold time is in
1948 Universal Coordinated Time (UTC) and
<i>not
</i> in the local time zone. If the
1949 specified time is less than the current time, the job is held until the
1952 <h4><a name=
"job-printer-state-message">job-printer-state-message (text(MAX))
</a><span class='info'
>CUPS
1.3</span></h4>
1954 <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>
1956 <h4><a name=
"job-printer-state-reasons">job-printer-state-reasons (
1setOf type2 keyword)
</a><span class='info'
>CUPS
1.3</span></h4>
1958 <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>
1960 <h4><a name=
"job-sheets">job-sheets (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
1962 <p>The job-sheets attribute specifies one or two banner files that are printed
1963 before and after a job. The reserved value of
"none" disables banner printing.
1964 The default value is stored in the job-sheets-default attribute.
1966 <p>If only one value is supplied, the banner file is printed before the job.
1967 If two values are supplied, the first value is used as the starting banner
1968 file and the second as the ending banner file.
1970 <h4><a name=
"job-originating-host-name">job-originating-host-name (name(MAX))
</a></h4>
1972 <p><i>(CUPS
1.1.5 and higher)
</i>
1974 <p>The job-originating-host-name attribute specifies the host
1975 from which the job was queued. The value will be the hostname or
1976 IP address of the client depending on whether hostname
1977 resolution is enabled. The localhost address (
127.0.0.1) is
1978 <b>always
</b> resolved to the name
"localhost".
1980 <p>This attribute is read-only.
1982 <h4><a name=
"lpi">lpi (type2 enum)
</a></h4>
1984 <p>The lpi attribute specifies the number of lines per inch when
1985 printing text files. Only the values
6 and
8 are currently supported.
1986 The default value is
6.
1988 <h4><a name=
"mirror">mirror (boolean)
</a></h4>
1990 <p>The mirror attribute specifies whether pages are mirrored on
1991 their X axis, which is useful for printing transfer images on
1992 special media. The default value is false.
1994 <h4><a name=
"natural-scaling">natural-scaling (integer(
1:
1000))
</a><span class='info'
>CUPS
1.1.9</span></h4>
1995 <p>The natural-scaling attribute specifies the scaling of image files with
1996 respect to the natural image size. A value of
100 specifies that the image
1997 file should exactly the natural size, while
50 is half the natural size
1998 and
200 is twice the natural size. The default value is
100.
2000 <p>The ppi option can be used to override the natural resolution of the
2001 image, which controls the natural size.
2003 <h4><a name=
"number-up-layout">number-up-layout (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2004 <p>The number-up-layout attribute specifies the order each input
2005 page is placed on each output page. The following keywords are
2010 <li><CODE>btlr
</CODE> - Bottom to top, left to right
</li>
2012 <li><CODE>btrl
</CODE> - Bottom to top, right to left
</li>
2014 <li><CODE>lrbt
</CODE> - Left to right, bottom to top
</li>
2016 <li><CODE>lrtb
</CODE> - Left to right, top to bottom (default)
</li>
2018 <li><CODE>rlbt
</CODE> - Right to left, bottom to top
</li>
2020 <li><CODE>rltb
</CODE> - Right to left, top to bottom
</li>
2022 <li><CODE>tblr
</CODE> - Top to bottom, left to right
</li>
2024 <li><CODE>tbrl
</CODE> - Top to bottom, right to left
</li>
2028 <h4><a name=
"page-border">page-border (type2 keyword)
</a><span class='info'
>CUPS
1.1.15</span></h4>
2029 <p>The page-border attribute specifies whether a border is
2030 draw around each page. The following keywords are presently
2035 <li><CODE>double
</CODE> - Two hairline borders are drawn
</li>
2037 <li><CODE>double-thick
</CODE> - Two
1pt borders are drawn
</li>
2039 <li><CODE>none
</CODE> - No border is drawn (default)
</li>
2041 <li><CODE>single
</CODE> - A single hairline border is drawn
</li>
2043 <li><CODE>single-thick
</CODE> - A single
1pt border is drawn
</li>
2047 <h4><a name=
"page-bottom">page-bottom (integer(
0:MAX))
</a></h4>
2049 <p>The page-bottom attribute specifies the bottom margin in points (
72 points
2050 equals
1 inch). The default value is the device physical margin.
2052 <h4><a name=
"page-label">page-label (text(MAX))
</a><span class='info'
>CUPS
1.1.7</span></h4>
2053 <p>The page-label attribute provides a text value to place in
2054 the header and footer on each page. If a classification level is
2055 set on the server, then this classification is printed before
2058 <h4><a name=
"page-left">page-left (integer(
0:MAX))
</a></h4>
2060 <p>The page-left attribute specifies the left margin in points (
72 points
2061 equals
1 inch). The default value is the device physical margin.
2063 <h4><a name=
"page-right">page-right (integer(
0:MAX))
</a></h4>
2065 <p>The page-right attribute specifies the right margin in points (
72 points
2066 equals
1 inch). The default value is the device physical margin.
2068 <h4><a name=
"page-set">page-set (type2 keyword)
</a></h4>
2070 <p>The page-set attribute specifies which pages to print in a file. The
2071 supported keywords are
"all",
"even", and
"odd". The default value is
2074 <h4><a name=
"page-top">page-top (integer(
0:MAX))
</a></h4>
2076 <p>The page-top attribute specifies the top margin in points (
72 points
2077 equals
1 inch). The default value is the device physical margin.
2079 <h4><a name=
"penwidth">penwidth (integer(
0:MAX))
</a></h4>
2081 <p>The penwidth attribute specifies the default pen width in micrometers
2082 when printing HP-GL/
2 plot files. The default value is
1000 (
1 millimeter).
2084 <h4><a name=
"position">position (type2 keyword)
</a></h4>
2086 <p>The position attribute specifies the location of image files on the
2087 media. The following keyword values are recognized:
2091 <li><CODE>center
</CODE> - Center the image on the page (default)
2093 <li><CODE>top
</CODE> - Print the image centered at the top of the page
2095 <li><CODE>left
</CODE> - Print the image centered on the left of page
2097 <li><CODE>right
</CODE> - Print the image centered on the right of the page
2099 <li><CODE>top-left
</CODE> - Print the image at the top left corner of
2102 <li><CODE>top-right
</CODE> - Print the image at the top right corner of
2105 <li><CODE>bottom
</CODE> - Print the image centered at the bottom of
2108 <li><CODE>bottom-left
</CODE> - Print the image at the bottom left
2111 <li><CODE>bottom-right
</CODE> - Print the image at the bottom right
2116 <h4><a name=
"ppi">ppi (integer(
1:MAX))
</a></h4>
2118 <p>The ppi attribute specifies the resolution of an image file in pixels
2119 per inch. The default value is the resolution included with the file or
2120 128 if no resolution information is available.
2122 <h4><a name=
"prettyprint">prettyprint (boolean)
</a></h4>
2124 <p>The prettyprint attribute specifies whether text files should be printed
2125 with a shaded header and keyword highlighting (prettyprint=true) or without
2126 additional formatting (prettyprint=false). The default value is false.
2128 <h4><a name=
"saturation">saturation (integer(
0:
200))
</a></h4>
2130 <p>The saturation attribute specifies the color saturation when
2131 printing image files. A saturation of
100 is normal, while values of
50
2132 and
200 will be half and twice as colorful, respectively. The default
2135 <h4><a name=
"scaling">scaling (integer(
1:
1000))
</a></h4>
2137 <p>The scaling attribute specifies the scaling of image files with
2138 respect to the selected media. A value of
100 specifies that the image
2139 file should fit
100% of the page, or as much as possible given the
2140 image dimensions. The default value is unspecified.
2142 <p>The scaling attribute overrides the ppi attribute if specified.
2144 <h4><a name=
"wrap">wrap (boolean)
</a></h4>
2146 <p>The wrap attribute specifies whether long lines should be wrapped
2147 (wrap=true) or not (wrap=false) when printing text files. The default
2150 <h3 class='title'
><a name='PPD_ATTRIBUTES'
>PPD Attributes
</a></h3>
2152 <h4><a name=
"ppd-device-id">ppd-device-id (text(
127))
</a></h4>
2154 <p>The ppd-device-id attribute specifies the IEEE-
1284 device ID
2155 string for the device described by the PPD file.
</p>
2157 <h4><a name=
"ppd-make">ppd-make (text(
127))
</a></h4>
2159 <p>The ppd-make attribute specifies the manufacturer of the printer
2160 (the Manufacturer attribute in the PPD file). If the manufacturer
2161 is not specified in the PPD file then an educated guess is made using
2162 the NickName attribute in the PPD file.
2164 <h4><a name=
"ppd-make-and-model">ppd-make-and-model (text(
127))
</a></h4>
2166 <p>The ppd-make-and-model attribute specifies the manufacturer and model
2167 name of the PPD file (the NickName attribute in the PPD file). If the
2168 make and model is not specified in the PPD file then the ModelName or
2169 ShortNickName attributes are used instead.
2171 <h4><a name=
"ppd-model-number">ppd-model-number (integer)
</a><span class=
"info">CUPS
1.3</span></h4>
2173 <p>The ppd-model-number attribute provides the
<tt>cupsModelNumber
</tt> value from the PPD file.
2175 <h4><a name=
"ppd-name">ppd-name (name(
255))
</a></h4>
2177 <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.
2179 <h4><a name=
"ppd-natural-language">ppd-natural-language (
1setOf naturalLanguage)
</a></h4>
2181 <p>The ppd-natural-language attribute specifies the language encoding
2182 of the PPD file (the LanguageVersion attribute in the PPD file). If the
2183 language is unknown or undefined then
"en" (English) is assumed.
2185 <h4><a name=
"ppd-product">ppd-product (
1setOf text(
127))
</a></h4>
2187 <p>The ppd-product attribute specifies the Product attribute values in the PPD file.
2189 <h4><a name=
"ppd-psversion">ppd-psversion (
1setOf text(
127))
</a><span class=
"info">CUPS
1.3</span></h4>
2191 <p>The ppd-product attribute specifies the PSVersion attribute values in the PPD file.
2193 <h4><a name=
"ppd-type">ppd-type (type1 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2195 <p>The ppd-type attribute specifies the type of driver described by the PPD file:
</p>
2199 <li><tt>fax
</tt> - A facsimile or multi-function device
</li>
2201 <li><tt>pdf
</tt> - A PDF printer
</li>
2203 <li><tt>postscript
</tt> - A PostScript printer (no filters)
</li>
2205 <li><tt>raster
</tt> - A CUPS raster driver
</li>
2207 <li><tt>unknown
</tt> - An unknown or hybrid driver
</li>
2212 <h3 class='title'
><a name='PRINTER_ATTRIBUTES'
>Printer Attributes
</a></h3>
2214 <h4><a name=
"auth-info-required">auth-info-required (
1setOf type2 keyword)
</a><span class=
"info">CUPS
1.3</span></h4>
2216 <p>The auth-info-required attribute specifies the authentication information that is required for printing a job. The following keywords are recognized:
</p>
2220 <li><tt>domain
</tt> - A domain name is required.
</li>
2222 <li><tt>none
</tt> - No authentication is required - this keyword can only appear by itself.
</li>
2224 <li><tt>password
</tt> - A password is required.
</li>
2226 <li><tt>username
</tt> - A username is required.
</li>
2230 <h4><a name=
"job-k-limit">job-k-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2232 <p>The job-k-limit attribute specifies the maximum number of kilobytes that
2233 may be printed by a user, including banner files. The default value of
0
2234 specifies that there is no limit.
2236 <h4><a name=
"job-page-limit">job-page-limit (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2238 <p>The job-page-limit attribute specifies the maximum number of pages that
2239 may be printed by a user, including banner files. The default value of
0
2240 specifies that there is no limit.
2242 <h4><a name=
"job-quota-period">job-quota-period (integer)
</a><span class='info'
>CUPS
1.1</span></h4>
2244 <p>The job-quota-period attribute specifies the time period used for quota
2245 calculations, in seconds. The default value of
0 specifies that the limits
2246 apply to all jobs that have been printed by a user that are still known to
2249 <h4><a name=
"job-sheets-supported">job-sheets-supported (
1setof type3 keyword | name(MAX))
</a><span class='info'
>CUPS
1.1</span></h4>
2251 <p>The job-sheets-supported attribute specifies the available banner files.
2252 There will always be at least one banner file available called
"none".
2254 <h4><a name=
"port-monitor">port-monitor
" (name(127))</a></h4>
2256 <p>The port-monitor attribute specifies the port monitor to use when printing
2257 to this printer. The default port monitor is "none
".
2259 <h4><a name="port-monitor-supported
">port-monitor-supported" (
1setOf name(
127))
</a></h4>
2261 <p>The port-monitor-supported attribute specifies the available port monitors.
2263 <h4><a name=
"printer-type">printer-type (type2 enum)
</a></h4>
2265 <p>The printer-type attribute specifies printer type and
2266 capability bits for the printer or class. The default value is
2267 computed from internal state information and the PPD file for the
2268 printer. The following bits are defined:
</p>
2270 <div class='table'
><table align='center' border='
1' width='
80%'
2271 summary='Printer Type Bits'
>
2275 <th>Description
</th>
2281 <td>Is a printer class.
</td>
2285 <td>Is a remote destination.
</td>
2289 <td>Can print in black.
</td>
2293 <td>Can print in color.
</td>
2297 <td>Can print on both sides of the page in hardware.
</td>
2301 <td>Can staple output.
</td>
2305 <td>Can do fast copies in hardware.
</td>
2309 <td>Can do fast copy collation in hardware.
</td>
2313 <td>Can punch output.
</td>
2317 <td>Can cover output.
</td>
2321 <td>Can bind output.
</td>
2325 <td>Can sort output.
</td>
2329 <td>Can handle media up to US-Legal/A4.
</td>
2333 <td>Can handle media from US-Legal/A4 to ISO-C/A2.
</td>
2337 <td>Can handle media larger than ISO-C/A2.
</td>
2341 <td>Can handle user-defined media sizes.
</td>
2345 <td>Is an implicit (server-generated) class.
</td>
2349 <td>Is the a default printer on the network.
</td>
2353 <td>Is a facsimile device.
</td>
2357 <td>Is rejecting jobs.
</td>
2361 <td>Delete this queue.
</td>
2365 <td>Queue is not shared.
</td>
2369 <td>Queue requires authentication.
</td>
2373 <td>Queue supports CUPS command files.
</td>
2377 <td>Queue was automatically discovered and added.
</td>
2382 <h4>printer-type-mask (type2 enum)
<span class='info'
>CUPS
1.1</span></h4>
2384 <p>The printer-type-mask attribute is used to choose printers or classes with
2385 the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined
2386 identically to the printer-type attribute and default to all
1's.
2388 <h4>requesting-user-name-allowed (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2390 <p>The requesting-user-name-allowed attribute lists all of the users that are
2391 allowed to access a printer or class. Either this attribute or the
2392 requesting-user-name-denied attribute will be defined, but not both.
2394 <h4>requesting-user-name-denied (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2396 <p>The requesting-user-name-denied attribute lists all of the users that are
2397 not allowed to access a printer or class. Either this attribute or the
2398 requesting-user-name-allowed attribute will be defined, but not both.
2400 <h3 class='title'
><a name='CLASS_ATTRIBUTES'
>Printer Class Attributes
</a></h3>
2402 <h4>member-names (
1setof name(
127))
</h4>
2404 <p>The member-names attribute specifies each of the printer-name attributes of
2405 the member printers and classes. Each name corresponds to the same element of
2406 the member-uris attribute.
2408 <h4>member-uris (
1setof uri)
</h4>
2410 <p>The member-uris attribute specifies each of the printer-uri attributes of
2411 the member printers and classes. Each URI corresponds to the same element of
2412 the member-names attribute.