CUPS 1.1 implements IPP/1.1 and the operations and attributes defined in the "IPP: Job and Printer Set Operations", "IPP/1.1: Output-bin Attribute Extension", and "IPP/1.1: finishings 'fold',' trim', and 'bale' attribute values extension" specifications.
CUPS also provides 13 new operations and many new attributes to support multiple IPP printers and printer classes on a single host.
CUPS supports the "http", "https", and "ipp" schemes. The following resource names are used:
So a typical printer URI would be "ipp://foo.bar.com/printers/LaserJet". In addition, the CUPS server also supports normal browser access via "http://hostname:port/" and "https://hostname:port/".
CUPS provides 14 extension operations in addition to most of the standard IPP and registered extension operations:
| Operation Name | CUPS | Code | Brief Description |
|---|---|---|---|
| Print-Job | 1.0 | 0x0002 | Print a file. |
| Validate-Job | 1.0 | 0x0004 | Validate job attributes. |
| Create-Job | 1.1 | 0x0005 | Create a print job. |
| Send-Document | 1.1 | 0x0006 | Send a file for a print job. |
| Cancel-Job | 1.0 | 0x0008 | Cancel a print job. |
| Get-Job-Attributes | 1.0 | 0x0009 | Get job attributes. |
| Get-Jobs | 1.0 | 0x000A | Get all jobs. |
| Get-Printer-Attributes | 1.0 | 0x000B | Get printer attributes. |
| Hold-Job | 1.1 | 0x000C | Hold a job for printing. |
| Release-Job | 1.1 | 0x000D | Release a job for printing. |
| Restart-Job | 1.1 | 0x000E | Restarts a print job. |
| Pause-Printer | 1.0 | 0x0010 | Pause printing on a printer. |
| Resume-Printer | 1.0 | 0x0011 | Resume printing on a printer. |
| Purge-Jobs | 1.0 | 0x0012 | Purge all jobs. |
| Set-Job-Attributes | 1.1 | 0x0014 | Set attributes for a pending or held job. |
| Create-Printer-Subscription | 1.2 | 0x0016 | Creates a subscription associated with a printer or the server. |
| Create-Job-Subscription | 1.2 | 0x0017 | Creates a subscription associated with a job. |
| Get-Subscription-Attributes | 1.2 | 0x0018 | Gets the attributes for a subscription. |
| Get-Subscriptions | 1.2 | 0x0019 | Gets the attributes for zero or more subscriptions. |
| Renew-Subscription | 1.2 | 0x001A | Renews a subscription. |
| Cancel-Subscription | 1.2 | 0x001B | Cancels a subscription. |
| Get-Notifications | 1.2 | 0x001C | Get notification events for ippget subscriptions. |
| Enable-Printer | 1.2 | 0x0022 | Accepts jobs on a printer. |
| Disable-Printer | 1.2 | 0x0023 | Rejects jobs on a printer. |
| CUPS-Get-Default | 1.0 | 0x4001 | Get the default destination. |
| CUPS-Get-Printers | 1.0 | 0x4002 | Get all of the available printers. |
| CUPS-Add-Modify-Printer | 1.0 | 0x4003 | Add or modify a printer. |
| CUPS-Delete-Printer | 1.0 | 0x4004 | Delete a printer. |
| CUPS-Get-Classes | 1.0 | 0x4005 | Get all of the available printer classes. |
| CUPS-Add-Modify-Class | 1.0 | 0x4006 | Add or modify a printer class. |
| CUPS-Delete-Class | 1.0 | 0x4007 | Delete a printer class. |
| CUPS-Accept-Jobs | 1.0 | 0x4008 | Accept jobs on a printer or printer class. |
| CUPS-Reject-Jobs | 1.0 | 0x4009 | Reject jobs on a printer or printer class. |
| CUPS-Set-Default | 1.0 | 0x400A | Set the default destination. |
| CUPS-Get-Devices | 1.1 | 0x400B | Get all of the available devices. |
| CUPS-Get-PPDs | 1.1 | 0x400C | Get all of the available PPDs. |
| CUPS-Move-Job | 1.1 | 0x400D | Move a job to a different printer. |
| CUPS-Authenticate-Job | 1.2 | 0x400E | Authenticate a job for printing. |
The following sections describe the operations supported by CUPS. In the interest of brevity, operations which use only the standard IPP attributes are not described.
The Print-Job operation (0x0002) prints a file.
The following groups of attributes are supplied as part of the Print-Job request:
Group 1: Operation Attributes
Group 2: Job Template Attributes
Note: Standard IPP only allows specification of a single job-sheets attribute value.
Note: Standard IPP only allows specification of a single media attribute value.
The Print-Job request is followed by a file to be printed.
The following groups of attributes are send as part of the Print-Job Response:
Group 1: Operation Attributes
Group 2: Job Attributes
The Create-Job operation (0x0005) creates a new, empty print job.
The following groups of attributes are supplied as part of the Create-Job request:
Group 1: Operation Attributes
Group 2: Job Template Attributes
Note: Standard IPP only allows specification of a single job-sheets attribute value.
Note: Standard IPP only allows specification of a single media attribute value.
The following groups of attributes are send as part of the Create-Job Response:
Group 1: Operation Attributes
Group 2: Job Attributes
The Set-Job-Attributes operation (0x0014) changes the attributes of an active (not completed) job.
The following groups of attributes are supplied as part of the Set-Job-Attributes request:
Group 1: Operation Attributes
Group 2: Job Template Attributes
Note: Standard IPP only allows specification of a single job-sheets attribute value.
Note: Standard IPP only allows specification of a single media attribute value.
The following groups of attributes are send as part of the Set-Job-Attributes Response:
Group 1: Operation Attributes
The Create-Printer-Subscription operation (0x0016) creates a subscription for printer or server event notifications. CUPS provides several additional events in addition to the standard events in the IPP notifications specification.
The following groups of attributes are supplied as part of the request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the response:
Group 1: Operation Attributes
Group 2: Subscription Object Attributes
The CUPS-Get-Default operation (0x4001) returns the default printer URI and attributes.
The following groups of attributes are supplied as part of the CUPS-Get-Default request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Get-Default Response:
Group 1: Operation Attributes
Group 2: Printer Object Attributes
The CUPS-Get-Printers operation (0x4002) returns the printer attributes for every printer known to the system. This may include printers that are not served directly by the server.
The following groups of attributes are supplied as part of the CUPS-Get-Printers request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Get-Printers Response:
Group 1: Operation Attributes
Group 2: Printer Object Attributes
The CUPS-Add-Modify-Printer operation (0x4003) adds a new printer or modifies an existing printer on the system.
The following groups of attributes are supplied as part of the CUPS-Add-Modify-Printer request:
Group 1: Operation Attributes
Group 2: Printer Object Attributes
The CUPS-Add-Modify-Printer request can optionally be followed by a PPD file or System V interface script to be used for the printer. The "ppd-name" attribute overrides any file that is attached to the end of the request with a local CUPS PPD file.
The following groups of attributes are send as part of the CUPS-Add-Modify-Printer Response:
Group 1: Operation Attributes
The CUPS-Delete-Printer operation (0x4004) removes an existing printer from the system.
The following groups of attributes are supplied as part of the CUPS-Delete-Printer request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Delete-Printer Response:
Group 1: Operation Attributes
The CUPS-Get-Classes operation (0x4005) returns the printer attributes for every printer class known to the system. This may include printer classes that are not served directly by the server.
The following groups of attributes are supplied as part of the CUPS-Get-Classes request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Get-Classes Response:
Group 1: Operation Attributes
Group 2: Printer Class Object Attributes
The CUPS-Add-Modify-Class operation (0x4006) adds a new printer class or modifies and existing printer class on the system.
The following groups of attributes are supplied as part of the CUPS-Add-Modify-Class request:
Group 1: Operation Attributes
Group 2: Printer Object Attributes
The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:
Group 1: Operation Attributes
The CUPS-Delete-Class operation (0x4007) removes an existing printer class from the system.
The following groups of attributes are supplied as part of the CUPS-Delete-Class request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Delete-Class Response:
Group 1: Operation Attributes
The CUPS-Accept-Jobs operation (0x4008) sets the "printer-is-accepting-jobs" attribute to true for the specified printer or printer class.
The following groups of attributes are supplied as part of the CUPS-Accept-Jobs request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Accept-Jobs Response:
Group 1: Operation Attributes
The CUPS-Reject-Jobs operation (0x4009) sets the"printer-is-accepting-jobs" attribute to false for the specified printer or printer class.
The following groups of attributes are supplied as part of the CUPS-Reject-Jobs request:
Group 1: Operation Attributes
Group 2: Printer Object Attributes
The following groups of attributes are send as part of the CUPS-Reject-Jobs Response:
Group 1: Operation Attributes
The CUPS-Set-Default operation (0x400A) sets the default printer destination for all clients when a resource name of "/printers" is specified.
The following groups of attributes are supplied as part of the CUPS-Set-Default request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Set-Default Response:
Group 1: Operation Attributes
The CUPS-Get-Devices operation (0x400B) returns all of the supported device-uri's for the server.
The following groups of attributes are supplied as part of the CUPS-Get-Devices request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Get-Devices Response:
Group 1: Operation Attributes
Group 2: Device Object Attributes
The CUPS-Get-PPDs operation (0x400C) returns all of the locally available PPD files on the system.
The following groups of attributes are supplied as part of the CUPS-Get-PPDs request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Get-PPDs Response:
Group 1: Operation Attributes
Group 2: PPD Attributes
The CUPS-Move-Job operation (0x400D) moves an active print job to a different printer.
The following groups of attributes are supplied as part of the CUPS-Move-Job request:
Group 1: Operation Attributes
Group 2: Job Template Attributes
The following groups of attributes are send as part of the CUPS-Move-Job Response:
Group 1: Operation Attributes
The CUPS-Authenticate-Job operation (0x400E) authenticate a print job for printing. Typically this is used when printing to a remote server. The authentication information is passed in the HTTP request.
The following groups of attributes are supplied as part of the CUPS-Authenticate-Job request:
Group 1: Operation Attributes
The following groups of attributes are send as part of the CUPS-Authenticate-Job Response:
Group 1: Operation Attributes
CUPS provides many extension attributes to support multiple devices, PPD files, standard job filters, printers, and printer classes.
Device attributes are returned by the CUPS-Get-Devices operation and enumerate all of the available hardware devices and network protocols that are supported by the server.
The device-class attribute specifies the class of device and can be one of the following:
The device-id attribute specifies the IEEE-1284 device ID string for the device.
The device-info attribute specifies a human-readable string describing the device, e.g. "Parallel Port #1".
The device-makr-and-model attribute specifies a device identification string provided by the printer connected to the device. If the device or printer does not support identification then this attribute contains the string "unknown".
The device-uri attribute specifies a unique identifier for the device. The actual format of the device-uri string depends on the value of the device-class attribute:
The URI returned by CUPS-Get-Devices will contain the maximum baud rate supported by the device and the best type of flow control available ("soft" or "hard").
The URI returned by CUPS-Get-Devices will only contain the scheme name ("scheme"). It is up to the client application to add the appropriate host and other information when adding a new printer.
The URI returned by Get-Printer-Attributes and CUPS-Get-Printers has any username and password information stripped; the information is still stored and used by the server internally to perform any needed authentication.
The blackplot attribute specifies whether HP-GL/2 plot files should be rendered entirely in black ink (blackplot=true) or using the colors and shades specified in the file (blackplot=false). The default value is false.
The brightness attribute specifies the overall brightness of the printed output in percent. A brightness of 100 is normal, while 200 is twice as bright and 50 is half as bright. The default value is 100.
Brightness is applied to the Cyan, Magenta, Yellow, and Black values using the function "f(x) = brightness / 100 * x".
The columns attribute specifies the number of columns to generate when printing text files. The default value is 1.
The cpi attribute specifies the number of characters per inch when printing text files. Only the values 10, 12, and 17 are currently supported. The default value is 10.
The fitplot attribute specifies whether to scale HP-GL/2 plot files to fit on the selected media (fitplot=true) or use the physical scale specified in the plot file (fitplot=false). The default value is false.
The gamma attribute specifies the luminance correction for the output. A value of 1000 specifies no correction, while values of 2000 and 500 will generate lighter and darker output, respectively. The default value is 1000.
Gamma is applied to the Red, Green, and Blue values (or luminance for grayscale output) using the function "f(x) = x(1000/gamma)".
The hue attribute specifies a color hue rotation when printing image files. The default value is 0.
The job-billing attribute provides a text value to associate with a job for billing purposes.
The job-hold-until attribute specifies a hold time. In addition to the standard IPP/1.1 keyword names, CUPS supports name values of the form "HH:MM" and "HH:MM:SS" that specify a hold time. The hold time is in Greenwich Mean Time (GMT) and not in the local time zone. If the specified time is less than the current time, the job is held until the next day.
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved d Blue va4>
Th