| 1 |
command.txt - 09/10/2000 - CUPS Drivers |
| 2 |
--------------------------------------- |
| 3 |
|
| 4 |
This file describes the experimental CUPS command file format, |
| 5 |
used to send printer commands to a printer in a device- |
| 6 |
independent way. |
| 7 |
|
| 8 |
|
| 9 |
FILE FORMAT INFORMATION |
| 10 |
|
| 11 |
CUPS command files are ASCII text files. The first line of a |
| 12 |
CUPS command file MUST contain: |
| 13 |
|
| 14 |
#CUPS-COMMAND |
| 15 |
|
| 16 |
After that, each line is either a command or a comment. |
| 17 |
Comments begin with the # character, e.g.: |
| 18 |
|
| 19 |
# This is a comment |
| 20 |
|
| 21 |
The printer commands are described below. Printer commands are |
| 22 |
case- insensitive, so "PRINTSELFTESTPAGE", "printselftestpage", |
| 23 |
and "PrintSelfTestPage" are equivalent. Commands that accept |
| 24 |
arguments have their arguments on the same line separated by |
| 25 |
spaces. |
| 26 |
|
| 27 |
|
| 28 |
PRINTER COMMANDS |
| 29 |
|
| 30 |
The following commands are currently recognized: |
| 31 |
|
| 32 |
Clean all |
| 33 |
Clean black |
| 34 |
Clean color |
| 35 |
Clean cyan |
| 36 |
Clean light-cyan |
| 37 |
Clean light-magenta |
| 38 |
Clean magenta |
| 39 |
Clean yellow |
| 40 |
|
| 41 |
Do a standard print head cleaning. If a printer does |
| 42 |
not support cleaning of individual colors or cartridges, |
| 43 |
then all print heads are cleaned. |
| 44 |
|
| 45 |
PrintAlignmentPage phase |
| 46 |
|
| 47 |
Print an alignment page on the printer. Typically this |
| 48 |
page shows the horizontal and vertical alignment of the |
| 49 |
print heads with numbers for each. The phase number can |
| 50 |
be omitted. |
| 51 |
|
| 52 |
PrintSelfTestPage |
| 53 |
|
| 54 |
Print a self-test page on the printer. Typically this |
| 55 |
page shows if all jets on a print head are functioning |
| 56 |
properly. |
| 57 |
|
| 58 |
ReportLevels |
| 59 |
|
| 60 |
Reports the levels of each marking color in the |
| 61 |
printer-state-message attribute. The format of the |
| 62 |
report string is one of: |
| 63 |
|
| 64 |
K=### |
| 65 |
C=### M=### Y=### |
| 66 |
K=### C=### M=### Y=### |
| 67 |
K=### C=### M=### Y=### LC=### LM=### |
| 68 |
|
| 69 |
depending on the marking colors available. |
| 70 |
|
| 71 |
SetAlignment phase x y |
| 72 |
|
| 73 |
Sets the alignment of the print heads in the X and Y |
| 74 |
directions. The phase number must match that specified |
| 75 |
by the PrintAlignmentPage command or be 0. The Y |
| 76 |
direction is not used by some printers. |