Objet PrinterInfo
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.
Le nombre représenté par status
a des significations différentes selon la plateforme: sur Windows, il peut prendre les valeurs que l'on peut trouver ici et sur Linux et macOS ici.
Example
Ci-dessous, un exemple de certaines des options supplémentaires qui peuvent être définies en étant différentes pour chaque plateforme.
{
name: 'Austin_4th_Floor_Printer___C02XK13BJHD4',
displayName: 'Austin 4th Floor Printer @ C02XK13BJHD4',
description : 'TOSHIBA ColorMFP',
statut: 3,
isDefault: false,
options: {
copies: '1',
'device-uri': 'dnssd://Austin%204th%20Floor%20Printer%20%40%20C02XK13BJHD4. ipps._tcp.local. ?uuid=71687f1e-1147-3274-6674-22de61b110bd',
finitions : '3',
'job-cancel-after' : '10800',
'job-hold-until': 'no-hold',
'job-priority' : '50',
'feuilles de tâche' : 'none,none',
'temps de changement de marqueur' : '0',
'number-up': '1',
'printer-commands': 'ReportLevels,PrintSelfTestPage,com. oshiba.ColourProfiles.update,com.toshiba.EFiling.update,com.toshiba.EFiling. heckPassword',
'printer-info' : 'Austin 4th Floor Printer @ C02XK13BJHD4',
'printer-is-accepting-jobs' : 'true',
'printer-is-shared': 'false',
'printer-is-temporaire' : 'false',
'printer-location' : '',
'printer-make-and-model' : 'TOSHIBA ColorMFP',
'printer-state' : '3',
'printer-state-change-time': '1573472937',
'printer-state-reasons': 'offline-report,com. oshiba.snmp. ailed',
'imprimante' : '10531038',
'printer-uri-supporté' : 'ipp://localhost/printers/Austin_4th_Floor_Printer___C02XK13BJHD4',
system_driverinfo: 'T'
}
}