2017-05-18 17:50:08 +00:00
# PrinterInfo Object
2021-11-16 04:13:18 +00:00
* `name` string - the name of the printer as understood by the OS.
* `displayName` string - the name of the printer as shown in Print Preview.
* `description` string - a longer description of the printer's type.
* `status` number - the current status of the printer.
* `isDefault` boolean - whether or not a given printer is set as the default printer on the OS.
2019-11-13 05:31:28 +00:00
* `options` Object - an object containing a variable number of platform-specific printer information.
2023-03-29 10:16:44 +00:00
The number represented by `status` means different things on different platforms: on Windows its potential values can be found [here ](https://learn.microsoft.com/en-us/windows/win32/printdocs/printer-info-2 ), and on Linux and macOS they can be found [here ](https://www.cups.org/doc/cupspm.html ).
2017-05-18 17:50:08 +00:00
## Example
2017-05-18 18:28:10 +00:00
Below is an example of some of the additional options that may be set which
may be different on each platform.
2023-11-21 07:50:08 +00:00
```js
2017-05-18 18:28:10 +00:00
{
2019-11-13 05:31:28 +00:00
name: 'Austin_4th_Floor_Printer___C02XK13BJHD4',
displayName: 'Austin 4th Floor Printer @ C02XK13BJHD4',
description: 'TOSHIBA ColorMFP',
2017-05-18 18:28:10 +00:00
status: 3,
isDefault: false,
options: {
copies: '1',
2019-11-13 05:31:28 +00:00
'device-uri': 'dnssd://Austin%204th%20Floor%20Printer%20%40%20C02XK13BJHD4._ipps._tcp.local./?uuid=71687f1e-1147-3274-6674-22de61b110bd',
2017-05-18 18:28:10 +00:00
finishings: '3',
'job-cancel-after': '10800',
'job-hold-until': 'no-hold',
'job-priority': '50',
'job-sheets': 'none,none',
'marker-change-time': '0',
'number-up': '1',
2019-11-13 05:31:28 +00:00
'printer-commands': 'ReportLevels,PrintSelfTestPage,com.toshiba.ColourProfiles.update,com.toshiba.EFiling.update,com.toshiba.EFiling.checkPassword',
'printer-info': 'Austin 4th Floor Printer @ C02XK13BJHD4',
2017-05-18 18:28:10 +00:00
'printer-is-accepting-jobs': 'true',
2019-11-13 05:31:28 +00:00
'printer-is-shared': 'false',
'printer-is-temporary': 'false',
2017-05-18 18:28:10 +00:00
'printer-location': '',
2019-11-13 05:31:28 +00:00
'printer-make-and-model': 'TOSHIBA ColorMFP',
2017-05-18 18:28:10 +00:00
'printer-state': '3',
2019-11-13 05:31:28 +00:00
'printer-state-change-time': '1573472937',
'printer-state-reasons': 'offline-report,com.toshiba.snmp.failed',
'printer-type': '10531038',
'printer-uri-supported': 'ipp://localhost/printers/Austin_4th_Floor_Printer___C02XK13BJHD4',
system_driverinfo: 'T'
2017-05-18 18:28:10 +00:00
}
2017-05-18 17:50:08 +00:00
}
```