To detect connected printers, the
Printer::Detect
function is used. It creates a list of detected printers.
Detected printer is described as a map with following keys:
"vendor" : string
is the detected vendor (manufacturer) of the printer as was detected
"vendor_db" : string
is the detected vendor (manufacturer) of the printer transformated
to the key for the database of drivers (see Chapter 4, Database of Drivers).
"device" : string
is the detected device (model) of the printer as was detected
"device_db" : string
is the detected device (model) of the printer transformated
to the key for the database of drivers (see Chapter 4, Database of Drivers).
"uri" : string
contains the URI of the printer. The URI can be then passed to the
spooler.
"unique_key" : string
is the hardware unique key. It is used to determine if a detected
printer was configured before.
"location" : string
The description of location of the printer, derived from the URI
"info" : string
Information of any kind about the printer, derived from the vendor and model
Example 3.2. Detected Printer Structure
$[ "device":"Stylus Photo 810", "device_db":"STYLUSPHOTO810", "info":"EPSON Stylus Photo 810", "location":"USB printer on //EPSON/Stylus%20Photo%20810", "unique_key":"cLrx.twN5GQuyNJ3", "uri":"usb://EPSON/Stylus%20Photo%20810", "vendor":"EPSON", "vendor_db":"EPSON" ]