Tweak print docs

This commit is contained in:
Kevin Sawicki 2017-05-18 10:17:08 -07:00
parent 92f14f8d52
commit e0b39247a9

View file

@ -958,11 +958,11 @@ Get the system printer list, the result is an array of printer descriptions.
* `silent` Boolean - Don't ask user for print settings. Default is `false`.
* `printBackground` Boolean - Also prints the background color and image of
the web page. Default is `false`.
* `deviceName` String - Set the printer
* `deviceName` String - Set the printer device name to use. Default is `''`.
Prints window's web page. When `silent` is set to `true`, Electron will pick
up printer depending on `deviceName`(when left will pick system's default printer)
and default settings for printing.
the system's default printer if `deviceName` is empty and the default settings
for printing.
Calling `window.print()` in web page is equivalent to calling
`webContents.print({silent: false, printBackground: false, deviceName: ''})`.