Articles · Book · Estimator · CUPS 1.1 · CUPS 1.2 · CUPS 1.3 · CUPS 1.4 · CUPS 1.5 · Other CUPS · Search Help CUPS Command File FormatCUPS Command File FormatIntroductionThis specification describes the CUPS command file format (application/vnd.cups-command) which is used to send printer maintenance commands to a printer in a device-independent way. The current specification supports basic maintenance functions such as head cleaning and self-test pages and query functions such as auto-configure, report supply levels, and report status. Printer drivers advertise support for the CUPS command file
format by providing a filter for the
application/vnd.cups-command file type. Applications
can determine if a printer supports printing of CUPS command
files by checking the In addition, the PPD file for a printer can contain a
*cupsCommand: "AutoConfigure Clean PrintSelfTestPage ReportLevels ReportStatus" If no File SyntaxCUPS command files are ASCII text files. The first line of a CUPS command file MUST contain: #CUPS-COMMAND After that, each line is either a command or a comment. Comments begin with the # character, e.g.: # This is a comment Commands are any sequence of letters, numbers, and punctuation characters optionally followed by parameters separated by whitespace, e.g.: Clean all PrintSelfTestPage Command names are case-insensitive, so "PRINTSELFTESTPAGE", "printselftestpage", and "PrintSelfTestPage" are equivalent. Vendor-specific commands should use a domain name prefix, e.g.: com.vendor.foo com.vendor.bar param param2 ... paramN Standard CommandsThe following are the standard commands supported by the format. The only
required command is
AutoConfigureAutoConfigure The Example: #CUPS-COMMAND AutoConfigure CleanClean colorname The Example: #CUPS-COMMAND Clean all PrintAlignmentPagePrintAlignmentPage pass The Example: #CUPS-COMMAND PrintAlignmentPage 1 PrintSelfTestPagePrintSelfTestPage The Example: #CUPS-COMMAND PrintSelfTestPage ReportLevelsReportLevels The Example: #CUPS-COMMAND ReportLevels ReportStatusReportStatus The Example: #CUPS-COMMAND ReportLevels SetAlignmentSetAlignment pass value ... valueN The Example: #CUPS-COMMAND SetAlignment 1 14 | ||||||||||
| Comments are owned by the poster. All other material is copyright 2007-2011 Apple Inc. All rights reserved. CUPS and the CUPS logo are trademarks of Apple Inc. All other trademarks are the property of their respective owners. Please report site problems to 'webmaster@cups.org'. |