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'
>
10 "$Id: spec-ipp.html 177 2006-06-21 00:20:03Z jlovell $"
12 CUPS IPP specification for the Common UNIX Printing System (CUPS).
14 Copyright 1997-2006 by Easy Software Products.
16 These coded instructions, statements, and computer programs are the
17 property of Easy Software Products and are protected by Federal
18 copyright law. Distribution and use rights are outlined in the file
19 "LICENSE.txt" which should have been included with this file. If this
20 file is missing or damaged please contact Easy Software Products
23 Attn: CUPS Licensing Information
24 Easy Software Products
25 44141 Airport View Drive, Suite 204
26 Hollywood, Maryland 20636 USA
29 EMail: cups-info@cups.org
30 WWW: http://www.cups.org
33 <h2 class='title'
><a name='INTRODUCTION'
>Introduction
</a></h2>
35 <p>CUPS
1.1 implements IPP/
1.1 and the operations and attributes
36 defined in the
"IPP: Job and Printer Set Operations",
"IPP/1.1:
37 Output-bin Attribute Extension", and
"IPP/1.1: finishings
38 'fold',' trim', and 'bale' attribute values extension"
41 <p>CUPS also provides
13 new operations and many new attributes
42 to support multiple IPP printers and printer classes on a single
45 <h3 class='title'
><a name='IPP_URIS'
>IPP URIs
</a></h3>
47 <p>CUPS supports the
"http",
"https", and
"ipp" schemes. The
48 following resource names are used:
</p>
52 <dt><tt>scheme://hostname:port/
</tt></dt>
54 <dd>Can be used for all
"get" operations and for server
57 <dt><tt>scheme://hostname:port/admin/
</tt></dt>
59 <dd>Used for all administrative operations.
</dd>
61 <dt><tt>scheme://hostname:port/classes/name
</tt></dt>
63 <dd>Specifies a printer class.
</dd>
65 <dt><tt>scheme://hostname:port/jobs/id
</tt></dt>
67 <dd>Specifies a job.
</dd>
69 <dt><tt>scheme://hostname:port/printers/name
</tt></dt>
71 <dd>Specifies a printer.
</dd>
75 <p>So a typical printer URI would be
76 "ipp://foo.bar.com/printers/LaserJet". In addition, the CUPS
77 server also supports normal browser access via
78 "http://hostname:port/" and
"https://hostname:port/".
</p>
80 <h3 class='title'
><a name='IPP_OPERATIONS'
>CUPS IPP Operations
</a></h3>
82 <p>CUPS provides
14 extension operations in addition to most of the
83 standard IPP and registered extension operations:
85 <div class='table'
><table align='center' border='
1' width='
80%'
86 summary='Supported Operations'
>
89 <TH VALIGN=
"TOP">Operation Name
</th>
90 <TH VALIGN=
"TOP">CUPS
</th>
91 <TH VALIGN=
"TOP">Code
</th>
92 <TH VALIGN=
"TOP">Brief Description
</th>
97 <td><a href='#PRINT_JOB'
>Print-Job
</a></td>
100 <td>Print a file.
</td>
103 <td>Validate-Job
</td>
106 <td>Validate job attributes.
</td>
109 <td><a href='#CREATE_JOB'
>Create-Job
</a></td>
112 <td>Create a print job.
</td>
115 <td>Send-Document
</td>
118 <td>Send a file for a print job.
</td>
124 <td>Cancel a print job.
</td>
127 <td>Get-Job-Attributes
</td>
130 <td>Get job attributes.
</td>
136 <td>Get all jobs.
</td>
139 <td>Get-Printer-Attributes
</td>
142 <td>Get printer attributes.
</td>
148 <td>Hold a job for printing.
</td>
154 <td>Release a job for printing.
</td>
160 <td>Restarts a print job.
</td>
163 <td>Pause-Printer
</td>
166 <td>Pause printing on a printer.
</td>
169 <td>Resume-Printer
</td>
172 <td>Resume printing on a printer.
</td>
178 <td>Purge all jobs.
</td>
181 <td><a href='#SET_JOB_ATTRIBUTES'
>Set-Job-Attributes
</a></td>
184 <td>Set attributes for a pending or held job.
</td>
187 <td><a href='#CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></td>
190 <td>Creates a subscription associated with a printer or the server.
</td>
193 <td>Create-Job-Subscription
</td>
196 <td>Creates a subscription associated with a job.
</td>
199 <td>Get-Subscription-Attributes
</td>
202 <td>Gets the attributes for a subscription.
</td>
205 <td>Get-Subscriptions
</td>
208 <td>Gets the attributes for zero or more subscriptions.
</td>
211 <td>Renew-Subscription
</td>
214 <td>Renews a subscription.
</td>
217 <td>Cancel-Subscription
</td>
220 <td>Cancels a subscription.
</td>
223 <td>Get-Notifications
</td>
226 <td>Get notification events for
<tt>ippget
</tt> subscriptions.
</td>
229 <td>Enable-Printer
</td>
232 <td>Accepts jobs on a printer.
</td>
235 <td>Disable-Printer
</td>
238 <td>Rejects jobs on a printer.
</td>
241 <td><a href='#CUPS_GET_DEFAULT'
>CUPS-Get-Default
</a></td>
244 <td>Get the default destination.
</td>
247 <td><a href='#CUPS_GET_PRINTERS'
>CUPS-Get-Printers
</a></td>
250 <td>Get all of the available printers.
</td>
253 <td><a href='#CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer
</a></td>
256 <td>Add or modify a printer.
</td>
259 <td><a href='#CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer
</a></td>
262 <td>Delete a printer.
</td>
265 <td><a href='#CUPS_GET_CLASSES'
>CUPS-Get-Classes
</a></td>
268 <td>Get all of the available printer classes.
</td>
271 <td><a href='#CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class
</a></td>
274 <td>Add or modify a printer class.
</td>
277 <td><a href='#CUPS_DELETE_CLASS'
>CUPS-Delete-Class
</a></td>
280 <td>Delete a printer class.
</td>
283 <td><a href='#CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs
</a></td>
286 <td>Accept jobs on a printer or printer class.
</td>
289 <td><a href='#CUPS_REJECT_JOBS'
>CUPS-Reject-Jobs
</a></td>
292 <td>Reject jobs on a printer or printer class.
</td>
295 <td><a href='#CUPS_SET_DEFAULT'
>CUPS-Set-Default
</a></td>
298 <td>Set the default destination.
</td>
301 <td><a href='#CUPS_GET_DEVICES'
>CUPS-Get-Devices
</a></td>
304 <td>Get all of the available devices.
</td>
307 <td><a href='#CUPS_GET_PPDS'
>CUPS-Get-PPDs
</a></td>
310 <td>Get all of the available PPDs.
</td>
313 <td><a href='#CUPS_MOVE_JOB'
>CUPS-Move-Job
</a></td>
316 <td>Move a job to a different printer.
</td>
319 <td><a href='#CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job
</a></td>
322 <td>Authenticate a job for printing.
</td>
327 <h2 class='title'
><a name='OPERATIONS'
>Operations
</a></h2>
329 <p>The following sections describe the operations supported by CUPS.
330 In the interest of brevity, operations which use only the standard
331 IPP attributes are not described.
333 <h3 class='title'
><a name='PRINT_JOB'
>Print-Job Operation
</a></h3>
335 <p>The Print-Job operation (
0x0002) prints a file.
337 <h4>Print-Job Request
</h4>
339 <p>The following groups of attributes are supplied as part of the
342 <p>Group
1: Operation Attributes
346 <dt>Natural Language and Character Set:
348 <dd>The
"attributes-charset" and
"attributes-natural-language"
349 attributes as described in section
3.1.4.1 of the IPP Model and
352 <dt>"printer-uri" (uri):
354 <dd>The client MUST supply a URI for the specified printer.
358 <p>Group
2: Job Template Attributes
362 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
364 <dd>The client OPTIONALLY supplies a billing string that is logged
365 with the page accounting information.
367 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
369 <dd>The client OPTIONALLY supplies one or two banner pages that
370 are printed before and after any files in the print job. The
371 name of
"none" is reserved to indicate that no banner page
372 should be printed. If the client does not specify this
373 attribute then the value of the
"job-sheets-default" printer
374 object attribute is used.
376 <blockquote><b>Note:
</b> Standard IPP only allows
377 specification of a single job-sheets attribute
380 <dt>"media" (
1setof type3 keyword | name(MAX)):
382 <dd>The client OPTIONALLY supplies one or more media attributes
383 specifying the size, type, source, and color of the output
384 media. If the client does not specify this attribute then the
385 value of the
"media-default" printer object attribute is used.
387 <blockquote><b>Note:
</b> Standard IPP only allows
388 specification of a single media attribute
391 <dt>Other Job Template Attributes
395 <p>The Print-Job request is followed by a file to be printed.
397 <h4>Print-Job Response
</h4>
399 <p>The following groups of attributes are send as part of the Print-Job
402 <p>Group
1: Operation Attributes
408 <dd>The standard response status message.
410 <dt>Natural Language and Character Set:
412 <dd>The
"attributes-charset" and
"attributes-natural-language"
413 attributes as described in section
3.1.4.2 of the IPP Model and
418 <p>Group
2: Job Attributes
422 <dt>Standard Job Attributes
426 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CREATE_JOB'
>Create-Job Operation
</a></h3>
428 <p>The Create-Job operation (
0x0005) creates a new, empty print job.
430 <h4>Create-Job Request
</h4>
432 <p>The following groups of attributes are supplied as part of the
435 <p>Group
1: Operation Attributes
439 <dt>Natural Language and Character Set:
441 <dd>The
"attributes-charset" and
"attributes-natural-language"
442 attributes as described in section
3.1.4.1 of the IPP Model and
445 <dt>"printer-uri" (uri):
447 <dd>The client MUST supply a URI for the specified printer.
451 <p>Group
2: Job Template Attributes
455 <dt>"job-billing" (text(MAX)):
<span class='info'
>CUPS
1.1</span>
457 <dd>The client OPTIONALLY supplies a billing string that is logged
458 with the page accounting information.
460 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
462 <dd>The client OPTIONALLY supplies one or two banner pages that
463 are printed before and after any files in the print job. The
464 name of
"none" is reserved to indicate that no banner page
465 should be printed. If the client does not specify this
466 attribute then the value of the
"job-sheets-default" printer
467 object attribute is used.
469 <blockquote><b>Note:
</b> Standard IPP only allows
470 specification of a single job-sheets attribute
473 <dt>"media" (
1setof type3 keyword | name(MAX)):
475 <dd>The client OPTIONALLY supplies one or more media attributes
476 specifying the size, type, source, and color of the output
477 media. If the client does not specify this attribute then the
478 value of the
"media-default" printer object attribute is used.
480 <blockquote><b>Note:
</b> Standard IPP only allows
481 specification of a single media attribute
484 <dt>Standard Job Template Attributes
488 <h4>Create-Job Response
</h4>
490 <p>The following groups of attributes are send as part of the
493 <p>Group
1: Operation Attributes
499 <dd>The standard response status message.
501 <dt>Natural Language and Character Set:
503 <dd>The
"attributes-charset" and
"attributes-natural-language"
504 attributes as described in section
3.1.4.2 of the IPP Model and
509 <p>Group
2: Job Attributes
513 <dt>Standard Job Attributes
517 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='SET_JOB_ATTRIBUTES'
>Set-Job-Attributes Operation
</a></h3>
519 <p>The Set-Job-Attributes operation (
0x0014) changes the attributes of
520 an active (not completed) job.
522 <h4>Set-Job-Attributes Request
</h4>
524 <p>The following groups of attributes are supplied as part of the
525 Set-Job-Attributes request:
527 <p>Group
1: Operation Attributes
531 <dt>Natural Language and Character Set:
533 <dd>The
"attributes-charset" and
"attributes-natural-language"
534 attributes as described in section
3.1.4.1 of the IPP Model and
537 <dt>"printer-uri" (uri) and
"job-id" (integer)
541 <dd>The client MUST supply a URI for the specified printer and
542 a job ID number, or the job URI.
546 <p>Group
2: Job Template Attributes
550 <dt>"job-sheets" (
1setof type3 keyword | name(MAX)):
<span class='info'
>CUPS
1.1</span>
552 <dd>The client OPTIONALLY supplies one or two banner pages that
553 are printed before and after any files in the print job. The
554 name of
"none" is reserved to indicate that no banner page
555 should be printed. If the client does not specify this
556 attribute then the value of the
"job-sheets-default" printer
557 object attribute is used.
559 <blockquote><b>Note:
</b> Standard IPP only allows
560 specification of a single job-sheets attribute
563 <dt>"media" (
1setof type3 keyword | name(MAX)):
565 <dd>The client OPTIONALLY supplies one or more media attributes
566 specifying the size, type, source, and color of the output
567 media. If the client does not specify this attribute then the
568 value of the
"media-default" printer object attribute is used.
570 <blockquote><b>Note:
</b> Standard IPP only allows
571 specification of a single media attribute
574 <dt>Other Job Template Attributes
578 <h4>Set-Job-Attributes Response
</h4>
580 <p>The following groups of attributes are send as part of the Set-Job-Attributes
583 <p>Group
1: Operation Attributes
589 <dd>The standard response status message.
591 <dt>Natural Language and Character Set:
593 <dd>The
"attributes-charset" and
"attributes-natural-language"
594 attributes as described in section
3.1.4.2 of the IPP Model and
599 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a
600 name='CREATE_PRINTER_SUBSCRIPTION'
>Create-Printer-Subscription
</a></h3>
602 <p>The Create-Printer-Subscription operation (
0x0016) creates a
603 subscription for printer or server event notifications. CUPS
604 provides several additional events in addition to the standard
605 events in the IPP notifications specification.
</p>
609 <p>The following groups of attributes are supplied as part of the
612 <p>Group
1: Operation Attributes
</p>
616 <dt>Natural Language and Character Set:
618 <dd>The
"attributes-charset" and
"attributes-natural-language"
619 attributes as described in section
3.1.4.1 of the IPP Model and
622 <dt>"printer-uri" (uri):
625 (
<tt>ipp://server/printers/printername
</tt>), class
626 (
<tt>ipp://server/classes/classname
</tt>), or server
627 (
<tt>ipp://server/
</tt>) URI for event notifications.
629 <dt>"notify-events" (
1setOf keyword):
631 <dd>The events to monitor. In addition to the standard
632 events, CUPS adds the following keywords:
635 <li><tt>printer-added
</tt> - Get notified
636 whenever a printer or class is added
</li>
638 <li><tt>printer-deleted
</tt> - Get notified
639 whenever a printer or class is deleted
</li>
641 <li><tt>printer-modified
</tt> - Get notified
642 whenever a printer or class is modified
</li>
644 <li><tt>server-audit
</tt> - Get notified when a
645 security condition occurs
</li>
647 <li><tt>server-restarted
</tt> - Get notified when
648 the server is restarted
</li>
650 <li><tt>server-started
</tt> - Get notified when
651 the server is started
</li>
653 <li><tt>server-stopped
</tt> - Get notified when
654 the server is stopped
</li>
662 <p>The following groups of attributes are send as part of the
665 <p>Group
1: Operation Attributes
</p>
671 <dd>The standard response status message.
673 <dt>Natural Language and Character Set:
675 <dd>The
"attributes-charset" and
"attributes-natural-language"
676 attributes as described in section
3.1.4.2 of the IPP Model and
681 <p>Group
2: Subscription Object Attributes
</p>
685 <dt>"subscription-id" (integer):
687 <dd>The subscription number.
691 <h3 class='title'
><a name='CUPS_GET_DEFAULT'
>CUPS-Get-Default Operation
</a></h3>
693 <p>The CUPS-Get-Default operation (
0x4001) returns the default printer
696 <h4>CUPS-Get-Default Request
</h4>
698 <p>The following groups of attributes are supplied as part of the
699 CUPS-Get-Default request:
701 <p>Group
1: Operation Attributes
705 <dt>Natural Language and Character Set:
707 <dd>The
"attributes-charset" and
"attributes-natural-language"
708 attributes as described in section
3.1.4.1 of the IPP Model and
711 <dt>"requested-attributes" (
1setOf keyword) :
713 <dd>The client OPTIONALLY supplies a set of attribute names
714 and/or attribute group names in whose values the requester is
715 interested. If the client omits this attribute, the server
716 responds as if this attribute had been supplied with a value of
721 <h4>CUPS-Get-Default Response
</h4>
723 <p>The following groups of attributes are send as part of the
724 CUPS-Get-Default Response:
726 <p>Group
1: Operation Attributes
732 <dd>The standard response status message.
734 <dt>Natural Language and Character Set:
736 <dd>The
"attributes-charset" and
"attributes-natural-language"
737 attributes as described in section
3.1.4.2 of the IPP Model and
742 <p>Group
2: Printer Object Attributes
746 <dt>The set of requested attributes and their current values.
750 <h3 class='title'
><a name='CUPS_GET_PRINTERS'
>CUPS-Get-Printers Operation
</a></h3>
752 <p>The CUPS-Get-Printers operation (
0x4002) returns the printer
753 attributes for every printer known to the system. This may include
754 printers that are not served directly by the server.
756 <h4>CUPS-Get-Printers Request
</h4>
758 <p>The following groups of attributes are supplied as part of the
759 CUPS-Get-Printers request:
761 <p>Group
1: Operation Attributes
765 <dt>Natural Language and Character Set:
767 <dd>The
"attributes-charset" and
"attributes-natural-language"
768 attributes as described in section
3.1.4.1 of the IPP Model and
771 <dt>"limit" (integer (
1:MAX)):
773 <dd>The client OPTIONALLY supplies this attribute limiting the
774 number of printers that are returned.
776 <dt>"printer-info" (text(
127)):
<span class='info'
>CUPS
1.1</span>
778 <dd>The client OPTIONALLY supplies this attribute to
779 select which printers are returned.
781 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
783 <dd>The client OPTIONALLY supplies this attribute to
784 select which printers are returned.
786 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
788 <dd>The client OPTIONALLY supplies a printer type enumeration to
789 select which printers are returned.
791 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
793 <dd>The client OPTIONALLY supplies a printer type mask
794 enumeration to select which bits are used in the
"printer-type"
797 <dt>"requested-attributes" (
1setOf keyword) :
799 <dd>The client OPTIONALLY supplies a set of attribute names
800 and/or attribute group names in whose values the requester is
801 interested. If the client omits this attribute, the server
802 responds as if this attribute had been supplied with a value of
807 <h4>CUPS-Get-Printers Response
</h4>
809 <p>The following groups of attributes are send as part of the
810 CUPS-Get-Printers Response:
812 <p>Group
1: Operation Attributes
818 <dd>The standard response status message.
820 <dt>Natural Language and Character Set:
822 <dd>The
"attributes-charset" and
"attributes-natural-language"
823 attributes as described in section
3.1.4.2 of the IPP Model and
828 <p>Group
2: Printer Object Attributes
832 <dt>The set of requested attributes and their current values for
837 <h3 class='title'
><a name='CUPS_ADD_MODIFY_PRINTER'
>CUPS-Add-Modify-Printer Operation
</a></h3>
839 <p>The CUPS-Add-Modify-Printer operation (
0x4003) adds a new printer or
840 modifies an existing printer on the system.
842 <h4>CUPS-Add-Modify-Printer Request
</h4>
844 <p>The following groups of attributes are supplied as part of the
845 CUPS-Add-Modify-Printer request:
847 <p>Group
1: Operation Attributes
851 <dt>Natural Language and Character Set:
853 <dd>The
"attributes-charset" and
"attributes-natural-language"
854 attributes as described in section
3.1.4.1 of the IPP Model and
857 <dt>"printer-uri" (uri):
859 <dd>The client MUST supply a URI for the specified printer.
863 <p>Group
2: Printer Object Attributes
867 <dt>"job-sheets-default" (
1setOf name(
127)):
<span
868 class='info'
>CUPS
1.1.7</span>
870 <dd>The client OPTIONALLY supplies one or two banner page
871 names that are printed before and after files in a job.
872 The reserved name
"none" is used to specify that no
873 banner page should be printed.
875 <dt>"device-uri" (uri):
877 <dd>The client OPTIONALLY supplies a device URI for the
880 <dt>"ppd-name" (name(
127)):
882 <dd>The client OPTIONALLY supplies a PPD name for the specified
885 <dt>"printer-is-accepting-jobs" (boolean):
887 <dd>The client OPTIONALLY supplies this boolean attribute
888 indicating whether or not the printer object should accept new jobs.
890 <dt>"printer-info" (text(
127)):
892 <dd>The client OPTIONALLY supplies this attribute indicating the
893 printer information string.
895 <dt>"printer-location" (text(
127)):
897 <dd>The client OPTIONALLY supplies this attribute indicating a
898 textual location of the printer.
900 <dt>"printer-more-info" (uri):
902 <dd>The client OPTIONALLY supplies this attribute indicating a
903 URI for additional printer information.
905 <dt>"printer-state" (type2 enum):
907 <dd>The client OPTIONALLY supplies this attribute indicating the
908 initial/current state of the printer. Only the
"idle" and
"stopped"
909 enumerations are recognized.
911 <dt>"printer-state-message" (text(MAX)):
913 <dd>The client OPTIONALLY supplies this attribute indicating a
914 textual reason for the current printer state.
916 <dt>"requesting-user-name-allowed" (
1setof name(
127) | delete)
918 <br>"requesting-user-name-denied" (
1setof name(
127) | delete):
920 <dd>The client OPTIONALLY supplies one of these attributes to
921 specify an access control list for incoming print jobs. To allow
922 all users access to a printer, use the delete tag for the
927 <p>The CUPS-Add-Modify-Printer request can optionally be followed by a PPD
928 file or System V interface script to be used for the printer. The
929 "ppd-name" attribute overrides any file that is attached to the end of
930 the request with a local CUPS PPD file.
932 <h4>CUPS-Add-Modify-Printer Response
</h4>
934 <p>The following groups of attributes are send as part of the
935 CUPS-Add-Modify-Printer Response:
937 <p>Group
1: Operation Attributes
943 <dd>The standard response status message.
945 <dt>Natural Language and Character Set:
947 <dd>The
"attributes-charset" and
"attributes-natural-language"
948 attributes as described in section
3.1.4.2 of the IPP Model and
953 <h3 class='title'
><a name='CUPS_DELETE_PRINTER'
>CUPS-Delete-Printer Operation
</a></h3>
955 <p>The CUPS-Delete-Printer operation (
0x4004) removes an existing
956 printer from the system.
958 <h4>CUPS-Delete-Printer Request
</h4>
960 <p>The following groups of attributes are supplied as part of the
961 CUPS-Delete-Printer request:
963 <p>Group
1: Operation Attributes
967 <dt>Natural Language and Character Set:
969 <dd>The
"attributes-charset" and
"attributes-natural-language"
970 attributes as described in section
3.1.4.1 of the IPP Model and
973 <dt>"printer-uri" (uri):
975 <dd>The client MUST supply a URI for the specified printer.
979 <h4>CUPS-Delete-Printer Response
</h4>
981 <p>The following groups of attributes are send as part of the
982 CUPS-Delete-Printer Response:
984 <p>Group
1: Operation Attributes
990 <dd>The standard response status message.
992 <dt>Natural Language and Character Set:
994 <dd>The
"attributes-charset" and
"attributes-natural-language"
995 attributes as described in section
3.1.4.2 of the IPP Model and
1000 <h3 class='title'
><a name='CUPS_GET_CLASSES'
>CUPS-Get-Classes Operation
</a></h3>
1002 <p>The CUPS-Get-Classes operation (
0x4005) returns the printer
1003 attributes for every printer class known to the system. This may
1004 include printer classes that are not served directly by the server.
1006 <h4>CUPS-Get-Classes Request
</h4>
1008 <p>The following groups of attributes are supplied as part of the
1009 CUPS-Get-Classes request:
1011 <p>Group
1: Operation Attributes
1015 <dt>Natural Language and Character Set:
1017 <dd>The
"attributes-charset" and
"attributes-natural-language"
1018 attributes as described in section
3.1.4.1 of the IPP Model and
1021 <dt>"limit" (integer (
1:MAX)):
1023 <dd>The client OPTIONALLY supplies this attribute limiting the
1024 number of printer classes that are returned.
1026 <dt>"printer-info" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
1027 <dd>The client OPTIONALLY supplies this attribute to
1028 select which printer classes are returned.
1030 <dt>"printer-location" (text(
127)):
<span class='info'
>CUPS
1.1.7</span>
1031 <dd>The client OPTIONALLY supplies this attribute to
1032 select which printer classes are returned.
1034 <dt>"printer-type" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
1035 <dd>The client OPTIONALLY supplies a printer type enumeration to
1036 select which printer classes are returned.
1038 <dt>"printer-type-mask" (type2 enum):
<span class='info'
>CUPS
1.1.7</span>
1039 <dd>The client OPTIONALLY supplies a printer type mask
1040 enumeration to select which bits are used in the
"printer-type"
1043 <dt>"requested-attributes" (
1setOf keyword) :
1045 <dd>The client OPTIONALLY supplies a set of attribute names
1046 and/or attribute group names in whose values the requester is
1047 interested. If the client omits this attribute, the server responds as
1048 if this attribute had been supplied with a value of 'all'.
1052 <h4>CUPS-Get-Classes Response
</h4>
1054 <p>The following groups of attributes are send as part of the
1055 CUPS-Get-Classes Response:
1057 <p>Group
1: Operation Attributes
1063 <dd>The standard response status message.
1065 <dt>Natural Language and Character Set:
1067 <dd>The
"attributes-charset" and
"attributes-natural-language"
1068 attributes as described in section
3.1.4.2 of the IPP Model and
1073 <p>Group
2: Printer Class Object Attributes
1077 <dt>The set of requested attributes and their current values for
1082 <h3 class='title'
><a name='CUPS_ADD_MODIFY_CLASS'
>CUPS-Add-Modify-Class Operation
</a></h3>
1084 <p>The CUPS-Add-Modify-Class operation (
0x4006) adds a new printer class or
1085 modifies and existing printer class on the system.
1087 <h4>CUPS-Add-Modify-Class Request
</h4>
1089 <p>The following groups of attributes are supplied as part of the
1090 CUPS-Add-Modify-Class request:
1092 <p>Group
1: Operation Attributes
1096 <dt>Natural Language and Character Set:
1098 <dd>The
"attributes-charset" and
"attributes-natural-language"
1099 attributes as described in section
3.1.4.1 of the IPP Model and
1102 <dt>"printer-uri" (uri):
1104 <dd>The client MUST supply a URI for the specified printer class.
1108 <p>Group
2: Printer Object Attributes
1112 <dt>"member-uris" (
1setof uri):
1114 <dd>The client OPTIONALLY supplies the
"member-uris" set
1115 specifying the printers and printer classes that are part of the class.
1117 <dt>"printer-is-accepting-jobs" (boolean):
1119 <dd>The client OPTIONALLY supplies this boolean attribute
1120 indicating whether or not the class object should accept new jobs.
1122 <dt>"printer-info" (text(
127)):
1124 <dd>The client OPTIONALLY supplies this attribute indicating the
1125 printer information string.
1127 <dt>"printer-location" (text(
127)):
1129 <dd>The client OPTIONALLY supplies this attribute indicating a
1130 textual location of the class.
1132 <dt>"printer-more-info" (uri):
1134 <dd>The client OPTIONALLY supplies this attribute indicating a
1135 URI for additional class information.
1137 <dt>"printer-state" (type2 enum):
1139 <dd>The client OPTIONALLY supplies this attribute indicating the
1140 initial/current state of the class. Only the
"idle" and
"stopped"
1141 enumerations are recognized.
1143 <dt>"printer-state-message" (text(MAX)):
1145 <dd>The client OPTIONALLY supplies this attribute indicating a
1146 textual reason for the current class state.
1148 <dt>"requesting-user-name-allowed" (
1setof name(
127))
1150 <br>"requesting-user-name-denied" (
1setof name(
127)):
1152 <dd>The client OPTIONALLY supplies one of these attributes to
1153 specify an access control list for incoming print jobs. To allow
1154 all users access to a class, use the delete tag for the
1159 <h4>CUPS-Add-Modify-Class Response
</h4>
1161 <p>The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
1163 <p>Group
1: Operation Attributes
1169 <dd>The standard response status message.
1171 <dt>Natural Language and Character Set:
1173 <dd>The
"attributes-charset" and
"attributes-natural-language"
1174 attributes as described in section
3.1.4.2 of the IPP Model and
1179 <h3 class='title'
><a name='CUPS_DELETE_CLASS'
>CUPS-Delete-Class Operation
</a></h3>
1181 <p>The CUPS-Delete-Class operation (
0x4007) removes an existing printer
1182 class from the system.
1184 <h4>CUPS-Delete-Class Request
</h4>
1186 <p>The following groups of attributes are supplied as part of the
1187 CUPS-Delete-Class request:
1189 <p>Group
1: Operation Attributes
1193 <dt>Natural Language and Character Set:
1195 <dd>The
"attributes-charset" and
"attributes-natural-language"
1196 attributes as described in section
3.1.4.1 of the IPP Model and
1199 <dt>"printer-uri" (uri):
1201 <dd>The client MUST supply a URI for the specified printer class.
1205 <h4>CUPS-Delete-Class Response
</h4>
1207 <p>The following groups of attributes are send as part of the
1208 CUPS-Delete-Class Response:
1210 <p>Group
1: Operation Attributes
1216 <dd>The standard response status message.
1218 <dt>Natural Language and Character Set:
1220 <dd>The
"attributes-charset" and
"attributes-natural-language"
1221 attributes as described in section
3.1.4.2 of the IPP Model and
1226 <h3 class='title'
><a name='CUPS_ACCEPT_JOBS'
>CUPS-Accept-Jobs Operation
</a></h3>
1228 <p>The CUPS-Accept-Jobs operation (
0x4008) sets the
1229 "printer-is-accepting-jobs" attribute to true for the specified printer
1232 <h4>CUPS-Accept-Jobs Request
</h4>
1234 <p>The following groups of attributes are supplied as part of the
1235 CUPS-Accept-Jobs 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 or printer class.
1253 <h4>CUPS-Accept-Jobs Response
</h4>
1255 <p>The following groups of attributes are send as part of the
1256 CUPS-Accept-Jobs 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_REJECT_JOBS'
>CUPS-Reject-Jobs Operation
</a></h3>
1276 <p>The CUPS-Reject-Jobs operation (
0x4009) sets
1277 the
"printer-is-accepting-jobs" attribute to false for the specified
1278 printer or printer class.
1280 <h4>CUPS-Reject-Jobs Request
</h4>
1282 <p>The following groups of attributes are supplied as part of the
1283 CUPS-Reject-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 <p>Group
2: Printer Object Attributes
1305 <dt>"printer-state-message" (text(MAX)):
1307 <dd>The client OPTIONALLY supplies this attribute indicating a
1308 textual reason for the current printer state.
1312 <h4>CUPS-Reject-Jobs Response
</h4>
1314 <p>The following groups of attributes are send as part of the
1315 CUPS-Reject-Jobs Response:
1317 <p>Group
1: Operation Attributes
1323 <dd>The standard response status message.
1325 <dt>Natural Language and Character Set:
1327 <dd>The
"attributes-charset" and
"attributes-natural-language"
1328 attributes as described in section
3.1.4.2 of the IPP Model and
1333 <h3 class='title'
><a name='CUPS_SET_DEFAULT'
>CUPS-Set-Default Operation
</a></h3>
1335 <p>The CUPS-Set-Default operation (
0x400A) sets the default printer
1336 destination for all clients when a resource name of
"/printers" is
1339 <h4>CUPS-Set-Default Request
</h4>
1341 <p>The following groups of attributes are supplied as part of the
1342 CUPS-Set-Default request:
1344 <p>Group
1: Operation Attributes
1348 <dt>Natural Language and Character Set:
1350 <dd>The
"attributes-charset" and
"attributes-natural-language"
1351 attributes as described in section
3.1.4.1 of the IPP Model and
1354 <dt>"printer-uri" (uri):
1356 <dd>The client MUST supply a URI for the specified printer or
1361 <h4>CUPS-Set-Default Response
</h4>
1363 <p>The following groups of attributes are send as part of the
1364 CUPS-Set-Default Response:
1366 <p>Group
1: Operation Attributes
1372 <dd>The standard response status message.
1374 <dt>Natural Language and Character Set:
1376 <dd>The
"attributes-charset" and
"attributes-natural-language"
1377 attributes as described in section
3.1.4.2 of the IPP Model and
1382 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_DEVICES'
>CUPS-Get-Devices Operation
</a></h3>
1384 <p>The CUPS-Get-Devices operation (
0x400B) returns all of the
1385 supported device-uri's for the server.
</p>
1387 <h4>CUPS-Get-Devices Request
</h4>
1389 <p>The following groups of attributes are supplied as part of the
1390 CUPS-Get-Devices 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>"device-class" (type1 keyword):
1404 <dd>The client OPTIONALLY supplies a device class keyword to select
1405 which devices are returned.
1407 <dt>"limit" (integer (
1:MAX)):
1409 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1410 devices that are returned.
1412 <dt>"requested-attributes" (
1setOf keyword) :
1414 <dd>The client OPTIONALLY supplies a set of attribute names and/or
1415 attribute group names in whose values the requester is interested. If
1416 the client omits this attribute, the server responds as if this
1417 attribute had been supplied with a value of 'all'.
1421 <h4>CUPS-Get-Devices Response
</h4>
1423 <p>The following groups of attributes are send as part of the
1424 CUPS-Get-Devices Response:
1426 <p>Group
1: Operation Attributes
1432 <dd>The standard response status message.
1434 <dt>Natural Language and Character Set:
1436 <dd>The
"attributes-charset" and
"attributes-natural-language"
1437 attributes as described in section
3.1.4.2 of the IPP Model and
1442 <p>Group
2: Device Object Attributes
1446 <dt>The set of requested attributes and their current values for
1451 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_GET_PPDS'
>CUPS-Get-PPDs Operation
</a></h3>
1453 <p>The CUPS-Get-PPDs operation (
0x400C) returns all of the
1454 locally available PPD files on the system.
</p>
1456 <h4>CUPS-Get-PPDs Request
</h4>
1458 <p>The following groups of attributes are supplied as part of the
1459 CUPS-Get-PPDs request:
1461 <p>Group
1: Operation Attributes
1465 <dt>Natural Language and Character Set:
1467 <dd>The
"attributes-charset" and
"attributes-natural-language"
1468 attributes as described in section
3.1.4.1 of the IPP Model and
1471 <dt>"limit" (integer (
1:MAX)):
1473 <dd>The client OPTIONALLY supplies this attribute limiting the number of
1474 PPDs that are returned.
1476 <dt>"ppd-make" (text(
127)):
1478 <dd>The client OPTIONALLY supplies a printer manufacturer to select
1479 which PPDs are returned.
1481 <dt>"requested-attributes" (
1setOf keyword) :
1483 <dd>The client OPTIONALLY supplies a set of attribute names and/or
1484 attribute group names in whose values the requester is interested. If
1485 the client omits this attribute, the server responds as if this
1486 attribute had been supplied with a value of 'all'.
1490 <h4>CUPS-Get-PPDs Response
</h4>
1492 <p>The following groups of attributes are send as part of the
1493 CUPS-Get-PPDs Response:
1495 <p>Group
1: Operation Attributes
1501 <dd>The standard response status message.
1503 <dt>Natural Language and Character Set:
1505 <dd>The
"attributes-charset" and
"attributes-natural-language"
1506 attributes as described in section
3.1.4.2 of the IPP Model and
1511 <p>Group
2: PPD Attributes
1515 <dt>The set of requested attributes and their current values for each
1520 <h3 class='title'
><span class='info'
>CUPS
1.1</span><a name='CUPS_MOVE_JOB'
>CUPS-Move-Job Operation
</a></h3>
1522 <p>The CUPS-Move-Job operation (
0x400D) moves an active print job
1523 to a different printer.
</p>
1525 <h4>CUPS-Move-Job Request
</h4>
1527 <p>The following groups of attributes are supplied as part of the
1528 CUPS-Move-Job request:
1530 <p>Group
1: Operation Attributes
1534 <dt>Natural Language and Character Set:
1536 <dd>The
"attributes-charset" and
"attributes-natural-language"
1537 attributes as described in section
3.1.4.1 of the IPP Model and
1540 <dt>"printer-uri" (uri) and
"job-id" (integer)
1544 <dd>The client MUST supply a URI for the specified printer and
1545 a job ID number, or the job URI.
1549 <p>Group
2: Job Template Attributes
1553 <dt>"job-printer-uri" (uri)
1555 <dd>The client MUST supply a URI for a printer on the same server.
1559 <h4>CUPS-Move-Job Response
</h4>
1561 <p>The following groups of attributes are send as part of the
1562 CUPS-Move-Job Response:
1564 <p>Group
1: Operation Attributes
1570 <dd>The standard response status message.
1572 <dt>Natural Language and Character Set:
1574 <dd>The
"attributes-charset" and
"attributes-natural-language"
1575 attributes as described in section
3.1.4.2 of the IPP Model and
1580 <h3 class='title'
><span class='info'
>CUPS
1.2</span><a name='CUPS_AUTHENTICATE_JOB'
>CUPS-Authenticate-Job Operation
</a></h3>
1582 <p>The CUPS-Authenticate-Job operation (
0x400E) authenticate a
1583 print job for printing. Typically this is used when printing to a
1584 remote server. The authentication information is passed in the
1587 <h4>CUPS-Authenticate-Job Request
</h4>
1589 <p>The following groups of attributes are supplied as part of the
1590 CUPS-Authenticate-Job request:
1592 <p>Group
1: Operation Attributes
1596 <dt>Natural Language and Character Set:
1598 <dd>The
"attributes-charset" and
"attributes-natural-language"
1599 attributes as described in section
3.1.4.1 of the IPP Model and
1602 <dt>"printer-uri" (uri) and
"job-id" (integer)
1606 <dd>The client MUST supply a URI for the specified printer and
1607 a job ID number, or the job URI.
1611 <h4>CUPS-Authenticate-Job Response
</h4>
1613 <p>The following groups of attributes are send as part of the
1614 CUPS-Authenticate-Job Response:
1616 <p>Group
1: Operation Attributes
1622 <dd>The standard response status message.
1624 <dt>Natural Language and Character Set:
1626 <dd>The
"attributes-charset" and
"attributes-natural-language"
1627 attributes as described in section
3.1.4.2 of the IPP Model and
1632 <h2 class='title'
><a name='ATTRIBUTES'
>Attributes
</a></h2>
1634 <p>CUPS provides many extension attributes to support multiple
1635 devices, PPD files, standard job filters, printers, and printer
1638 <h3 class='title'
><a name='DEVICE_ATTRIBUTES'
>Device Attributes
</a></h3>
1640 <p>Device attributes are returned by the CUPS-Get-Devices
1641 operation and enumerate all of the available hardware devices and
1642 network protocols that are supported by the server.
</p>
1644 <h4>device-class (type2 keyword)
</h4>
1646 <p>The device-class attribute specifies the class of device and can be
1647 one of the following:
1651 <li>"file" - a disk file.
1653 <li>"direct" - a parallel or fixed-rate serial data port,
1654 currently used for Centronics, IEEE-
1284, and USB printer
1657 <li>"serial" - a variable-rate serial port.
1659 <li>"network" - a network connection, typically via AppSocket,
1660 HTTP, IPP, LPD, or SMB/CIFS protocols.
1664 <h4>device-id (text(
127))
</h4>
1666 <p>The device-id attribute specifies the IEEE-
1284 device ID
1667 string for the device.
</p>
1669 <h4>device-info (text(
127))
</h4>
1671 <p>The device-info attribute specifies a human-readable string describing
1672 the device, e.g.
"Parallel Port #1".
1674 <h4>device-make-and-model (text(
127))
</h4>
1676 <p>The device-makr-and-model attribute specifies a device
1677 identification string provided by the printer connected to the device.
1678 If the device or printer does not support identification then this
1679 attribute contains the string
"unknown".
1681 <h4>device-uri (uri)
</h4>
1683 <p>The device-uri attribute specifies a unique identifier for the
1684 device. The actual format of the device-uri string depends on the value
1685 of the device-class attribute:
1689 <li>"file" - The device-uri will be of the form
1690 "file:///path/to/filename".
1692 <li>"direct" - The device-uri will be of the form
1693 "scheme:/dev/filename" or
"scheme://vendor/identifier",
1694 where scheme may be
"parallel" or
"usb" in the current
1697 <li>"serial" - The device-uri will be of the form
1698 "serial:/dev/filename?baud=value+parity=value+flow=value".
1699 The baud value is the data rate in bits per second; the
1700 supported values depend on the underlying hardware.
1701 The parity value can be one of
"none",
"even", or
"odd".
1702 The flow value can be one of
"none",
"soft" (XON/XOFF
1703 handshaking),
"hard" or
"rts/cts" (RTS/CTS handshaking),
1704 or
"dtrdsr" (DTR/DSR handshaking).
1706 <p>The URI returned by CUPS-Get-Devices will contain the
1707 maximum baud rate supported by the device and the best
1708 type of flow control available (
"soft" or
"hard").
1710 <li>"network" - The device-uri will be of the form
1711 "scheme://[username:password@]hostname[:port]/[resource]",
1712 where scheme may be
"http",
"https",
"ipp",
"lpd",
"smb", or
1713 "socket" in the current implementation.
1715 <p>The URI returned by CUPS-Get-Devices will only contain
1716 the scheme name (
"scheme"). It is up to the client
1717 application to add the appropriate host and other
1718 information when adding a new printer.
1720 <p>The URI returned by Get-Printer-Attributes and
1721 CUPS-Get-Printers has any username and password information
1722 stripped; the information is still stored and used by the
1723 server internally to perform any needed authentication.
1727 <h3 class='title'
><a name='JOB_TEMPLATE_ATTRIBUTES'
>Job Template Attributes
</a></h3>
1729 <h4>blackplot (boolean)
</h4>
1731 <p>The blackplot attribute specifies whether HP-GL/
2 plot files should be
1732 rendered entirely in black ink (blackplot=true) or using the colors and shades
1733 specified in the file (blackplot=false). The default value is false.
1735 <h4>brightness (integer(
0:
200))
</h4>
1737 <p>The brightness attribute specifies the overall brightness of the printed
1738 output in percent. A brightness of
100 is normal, while
200 is twice as
1739 bright and
50 is half as bright. The default value is
100.
1741 <p>Brightness is applied to the Cyan, Magenta, Yellow, and Black values using
1742 the function
"f(x) = brightness / 100 * x".
1744 <h4>columns (integer(
1:
4))
</h4>
1746 <p>The columns attribute specifies the number of columns to generate when
1747 printing text files. The default value is
1.
1749 <h4>cpi (type2 enum)
</h4>
1751 <p>The cpi attribute specifies the number of characters per inch when
1752 printing text files. Only the values
10,
12, and
17 are currently
1753 supported. The default value is
10.
1755 <h4>fitplot (boolean)
</h4>
1757 <p>The fitplot attribute specifies whether to scale HP-GL/
2 plot files to
1758 fit on the selected media (fitplot=true) or use the physical scale specified
1759 in the plot file (fitplot=false). The default value is false.
1761 <h4>gamma (integer(
1:
10000))
</h4>
1763 <p>The gamma attribute specifies the luminance correction for the output.
1764 A value of
1000 specifies no correction, while values of
2000 and
500 will
1765 generate lighter and darker output, respectively. The default value is
1768 <p>Gamma is applied to the Red, Green, and Blue values (or luminance for
1769 grayscale output) using the function
"f(x) = x<SUp>(1000/gamma)</SUp>".
1771 <h4>hue (integer(-
180:
180))
</h4>
1773 <p>The hue attribute specifies a color hue rotation when printing image
1774 files. The default value is
0.
1776 <h4>job-billing (text(MAX))
<span class='info'
>CUPS
1.1</span></h4>
1778 <p>The job-billing attribute provides a text value to associate with a job
1779 for billing purposes.
1781 <h4>job-hold-until (keyword | name(MAX))
<span class='info'
>CUPS
1.1</span></h4>
1783 <p>The job-hold-until attribute specifies a hold time. In addition to the
1784 standard IPP/
1.1 keyword names, CUPS supports name values of the form
1785 "HH:MM" and
"HH:MM:SS" that specify a hold time. The hold time is in
1786 Greenwich Mean Time (GMT) and
<i>not
</i> in the local time zone. If the
1787 specified time is less than the current time, the job is held until the
1790 <h4>job-sheets (
1setof type3 keyword | name(MAX))
<span class='info'
>CUPS
1.1</span></h4>
1792 <p>The job-sheets attribute specifies one or two banner files that are printed
1793 before and after a job. The reserved value of
"none" disables banner printing.
1794 The default value is stored in the job-sheets-default attribute.
1796 <p>If only one value is supplied, the banner file is printed before the job.
1797 If two values are supplied, the first value is used as the starting banner
1798 file and the second as the ending banner file.
1800 <h4>job-originating-host-name (name(MAX))
</h4>
1802 <p><i>(CUPS
1.1.5 and higher)
</i>
1804 <p>The job-originating-host-name attribute specifies the host
1805 from which the job was queued. The value will be the hostname or
1806 IP address of the client depending on whether hostname
1807 resolution is enabled. The localhost address (
127.0.0.1) is
1808 <b>always
</b> resolved to the name
"localhost".
1810 <p>This attribute is read-only.
1812 <h4>lpi (type2 enum)
</h4>
1814 <p>The lpi attribute specifies the number of lines per inch when
1815 printing text files. Only the values
6 and
8 are currently supported.
1816 The default value is
6.
1818 <h4>mirror (boolean)
</h4>
1820 <p>The mirror attribute specifies whether pages are mirrored on
1821 their X axis, which is useful for printing transfer images on
1822 special media. The default value is false.
1824 <h4>natural-scaling (integer(
1:
1000))
<span class='info'
>CUPS
1.1.9</span></h4>
1825 <p>The natural-scaling attribute specifies the scaling of image files with
1826 respect to the natural image size. A value of
100 specifies that the image
1827 file should exactly the natural size, while
50 is half the natural size
1828 and
200 is twice the natural size. The default value is
100.
1830 <p>The ppi option can be used to override the natural resolution of the
1831 image, which controls the natural size.
1833 <h4>number-up-layout (type2 keyword)
<span class='info'
>CUPS
1.1.15</span></h4>
1834 <p>The number-up-layout attribute specifies the order each input
1835 page is placed on each output page. The following keywords are
1840 <li><CODE>btlr
</CODE> - Bottom to top, left to right
</li>
1842 <li><CODE>btrl
</CODE> - Bottom to top, right to left
</li>
1844 <li><CODE>lrbt
</CODE> - Left to right, bottom to top
</li>
1846 <li><CODE>lrtb
</CODE> - Left to right, top to bottom (default)
</li>
1848 <li><CODE>rlbt
</CODE> - Right to left, bottom to top
</li>
1850 <li><CODE>rltb
</CODE> - Right to left, top to bottom
</li>
1852 <li><CODE>tblr
</CODE> - Top to bottom, left to right
</li>
1854 <li><CODE>tbrl
</CODE> - Top to bottom, right to left
</li>
1858 <h4>page-border (type2 keyword)
<span class='info'
>CUPS
1.1.15</span></h4>
1859 <p>The page-border attribute specifies whether a border is
1860 draw around each page. The following keywords are presently
1865 <li><CODE>double
</CODE> - Two hairline borders are drawn
</li>
1867 <li><CODE>double-thick
</CODE> - Two
1pt borders are drawn
</li>
1869 <li><CODE>none
</CODE> - No border is drawn (default)
</li>
1871 <li><CODE>single
</CODE> - A single hairline border is drawn
</li>
1873 <li><CODE>single-thick
</CODE> - A single
1pt border is drawn
</li>
1877 <h4>page-bottom (integer(
0:MAX))
</h4>
1879 <p>The page-bottom attribute specifies the bottom margin in points (
72 points
1880 equals
1 inch). The default value is the device physical margin.
1882 <h4>page-label (text(MAX))
<span class='info'
>CUPS
1.1.7</span></h4>
1883 <p>The page-label attribute provides a text value to place in
1884 the header and footer on each page. If a classification level is
1885 set on the server, then this classification is printed before
1888 <h4>page-left (integer(
0:MAX))
</h4>
1890 <p>The page-left attribute specifies the left margin in points (
72 points
1891 equals
1 inch). The default value is the device physical margin.
1893 <h4>page-right (integer(
0:MAX))
</h4>
1895 <p>The page-right attribute specifies the right margin in points (
72 points
1896 equals
1 inch). The default value is the device physical margin.
1898 <h4>page-set (type2 keyword)
</h4>
1900 <p>The page-set attribute specifies which pages to print in a file. The
1901 supported keywords are
"all",
"even", and
"odd". The default value is
1904 <h4>page-top (integer(
0:MAX))
</h4>
1906 <p>The page-top attribute specifies the top margin in points (
72 points
1907 equals
1 inch). The default value is the device physical margin.
1909 <h4>penwidth (integer(
0:MAX))
</h4>
1911 <p>The penwidth attribute specifies the default pen width in micrometers
1912 when printing HP-GL/
2 plot files. The default value is
1000 (
1 millimeter).
1914 <h4>position (type2 keyword)
</h4>
1916 <p>The position attribute specifies the location of image files on the
1917 media. The following keyword values are recognized:
1921 <li><CODE>center
</CODE> - Center the image on the page (default)
1923 <li><CODE>top
</CODE> - Print the image centered at the top of the page
1925 <li><CODE>left
</CODE> - Print the image centered on the left of page
1927 <li><CODE>right
</CODE> - Print the image centered on the right of the page
1929 <li><CODE>top-left
</CODE> - Print the image at the top left corner of
1932 <li><CODE>top-right
</CODE> - Print the image at the top right corner of
1935 <li><CODE>bottom
</CODE> - Print the image centered at the bottom of
1938 <li><CODE>bottom-left
</CODE> - Print the image at the bottom left
1941 <li><CODE>bottom-right
</CODE> - Print the image at the bottom right
1946 <h4>ppi (integer(
1:MAX))
</h4>
1948 <p>The ppi attribute specifies the resolution of an image file in pixels
1949 per inch. The default value is the resolution included with the file or
1950 128 if no resolution information is available.
1952 <h4>prettyprint (boolean)
</h4>
1954 <p>The prettyprint attribute specifies whether text files should be printed
1955 with a shaded header and keyword highlighting (prettyprint=true) or without
1956 additional formatting (prettyprint=false). The default value is false.
1958 <h4>saturation (integer(
0:
200))
</h4>
1960 <p>The saturation attribute specifies the color saturation when
1961 printing image files. A saturation of
100 is normal, while values of
50
1962 and
200 will be half and twice as colorful, respectively. The default
1965 <h4>scaling (integer(
1:
1000))
</h4>
1967 <p>The scaling attribute specifies the scaling of image files with
1968 respect to the selected media. A value of
100 specifies that the image
1969 file should fit
100% of the page, or as much as possible given the
1970 image dimensions. The default value is unspecified.
1972 <p>The scaling attribute overrides the ppi attribute if specified.
1974 <h4>wrap (boolean)
</h4>
1976 <p>The wrap attribute specifies whether long lines should be wrapped
1977 (wrap=true) or not (wrap=false) when printing text files. The default
1980 <h3 class='title'
><a name='PPD_ATTRIBUTES'
>PPD Attributes
</a></h3>
1982 <h4>ppd-device-id (text(
127))
</h4>
1984 <p>The ppd-device-id attribute specifies the IEEE-
1284 device ID
1985 string for the device described by the PPD file.
</p>
1987 <h4>ppd-natural-language (naturalLanguage)
</h4>
1989 <p>The ppd-natural-language attribute specifies the language encoding
1990 of the PPD file (the LanguageVersion attribute in the PPD file). If the
1991 language is unknown or undefined then
"en" (English) is assumed.
1993 <h4>ppd-make (text(
127))
</h4>
1995 <p>The ppd-make attribute specifies the manufacturer of the printer
1996 (the Manufacturer attribute in the PPD file). If the manufacturer
1997 is not specified in the PPD file then an educated guess is made using
1998 the NickName attribute in the PPD file.
2000 <h4>ppd-make-and-model (text(
127))
</h4>
2002 <p>The ppd-make-and-model attribute specifies the manufacturer and model
2003 name of the PPD file (the NickName attribute in the PPD file). If the
2004 make and model is not specified in the PPD file then the ModelName or
2005 ShortNickName attributes are used instead.
2007 <h4>ppd-name (name(
255))
</h4>
2009 <p>The ppd-name attribute specifies the PPD filename on the server
2010 relative to the model directory. The forward slash (/) is used to
2011 delineate directories.
2013 <h3 class='title'
><a name='PRINTER_ATTRIBUTES'
>Printer Attributes
</a></h3>
2015 <h4>job-k-limit (integer)
<span class='info'
>CUPS
1.1</span></h4>
2017 <p>The job-k-limit attribute specifies the maximum number of kilobytes that
2018 may be printed by a user, including banner files. The default value of
0
2019 specifies that there is no limit.
2021 <h4>job-page-limit (integer)
<span class='info'
>CUPS
1.1</span></h4>
2023 <p>The job-page-limit attribute specifies the maximum number of pages that
2024 may be printed by a user, including banner files. The default value of
0
2025 specifies that there is no limit.
2027 <h4>job-quota-period (integer)
<span class='info'
>CUPS
1.1</span></h4>
2029 <p>The job-quota-period attribute specifies the time period used for quota
2030 calculations, in seconds. The default value of
0 specifies that the limits
2031 apply to all jobs that have been printed by a user that are still known to
2034 <h4>job-sheets-supported (
1setof type3 keyword | name(MAX))
<span class='info'
>CUPS
1.1</span></h4>
2036 <p>The job-sheets-supported attribute specifies the available banner files.
2037 There will always be at least one banner file available called
"none".
2039 <h4>printer-type (type2 enum)
</h4>
2041 <p>The printer-type attribute specifies printer type and
2042 capability bits for the printer or class. The default value is
2043 computed from internal state information and the PPD file for the
2044 printer. The following bits are defined:
</p>
2046 <div class='table'
><table align='center' border='
1' width='
80%'
2047 summary='Printer Type Bits'
>
2051 <th>Description
</th>
2057 <td>Is a printer class.
</td>
2061 <td>Is a remote destination.
</td>
2065 <td>Can print in black.
</td>
2069 <td>Can print in color.
</td>
2073 <td>Can print on both sides of the page in hardware.
</td>
2077 <td>Can staple output.
</td>
2081 <td>Can do fast copies in hardware.
</td>
2085 <td>Can do fast copy collation in hardware.
</td>
2089 <td>Can punch output.
</td>
2093 <td>Can cover output.
</td>
2097 <td>Can bind output.
</td>
2101 <td>Can sort output.
</td>
2105 <td>Can handle media up to US-Legal/A4.
</td>
2109 <td>Can handle media from US-Legal/A4 to ISO-C/A2.
</td>
2113 <td>Can handle media larger than ISO-C/A2.
</td>
2117 <td>Can handle user-defined media sizes.
</td>
2121 <td>Is an implicit (server-generated) class.
</td>
2125 <td>Is the a default printer on the network.
</td>
2129 <td>Is a facsimile device.
</td>
2133 <td>Is rejecting jobs.
</td>
2137 <td>Delete this queue.
</td>
2141 <td>Queue is not shared.
</td>
2145 <td>Queue requires authentication.
</td>
2150 <h4>printer-type-mask (type2 enum)
<span class='info'
>CUPS
1.1</span></h4>
2152 <p>The printer-type-mask attribute is used to choose printers or classes with
2153 the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined
2154 identically to the printer-type attribute and default to all
1's.
2156 <h4>requesting-user-name-allowed (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2158 <p>The requesting-user-name-allowed attribute lists all of the users that are
2159 allowed to access a printer or class. Either this attribute or the
2160 requesting-user-name-denied attribute will be defined, but not both.
2162 <h4>requesting-user-name-denied (
1setof name(
127))
<span class='info'
>CUPS
1.1</span></h4>
2164 <p>The requesting-user-name-denied attribute lists all of the users that are
2165 not allowed to access a printer or class. Either this attribute or the
2166 requesting-user-name-allowed attribute will be defined, but not both.
2168 <h3 class='title'
><a name='CLASS_ATTRIBUTES'
>Printer Class Attributes
</a></h3>
2170 <h4>member-names (
1setof name(
127))
</h4>
2172 <p>The member-names attribute specifies each of the printer-name attributes of
2173 the member printers and classes. Each name corresponds to the same element of
2174 the member-uris attribute.
2176 <h4>member-uris (
1setof uri)
</h4>
2178 <p>The member-uris attribute specifies each of the printer-uri attributes of
2179 the member printers and classes. Each URI corresponds to the same element of
2180 the member-names attribute.