listPrinters
List all available printers and their properties.
Parameter
None
Return value
An object where the keys are printer IDs and the values are printer info objects.
The keys of a printer info object depend on the printer type, given by
type: MARVIN1, TIJ1, BLADE or RAZOR. Before v6.0, Blade printers had
the type RISO1 and Razor printers IRIX1.
All printers have channelCount, the number of interleaved nozzle channels
of each ink at the printer's dpi
v6.0, and Marvin1, TIJ1, Blade and Razor printers have
phWidth, the printhead width in millimeters v6.0.
slices has an object for each slice, a row of printheads across the web,
with these keys:
| Key | Type | Description |
|---|---|---|
| phs | array of strings | The IDs of the printheads of the slice. |
| inkSupplies | array of strings | The IDs of the ink supplies that feed them. Before v6.1, TIJ1 and Razor printers left it out, and Blade printers had null for a printhead without an ink supply. |
| pens | array | For each ink of the printer, the pen that prints it in this slice, or null if no pen of the slice prints it v6.1. |
A pen is a printhead channel and the ink supply that feeds it. Since v6.1, a printer can be built from devices of different models, such as a Colorize CMYK with a NoLabel Solo below it that prints black over the height of both, so a slice need not print every ink. A pen object has these keys:
| Key | Type | Description |
|---|---|---|
| device | string | The ID of the device the pen belongs to. |
| pen | number | The zero-based index of the pen in the device. |
| printhead | string | The ID of the printhead. |
| phChannel | number | The printhead channel. |
| inkSupply | string or null | The ID of the ink supply that feeds the pen, or null if it has none. |
Example
listPrinters