mirror of
https://github.com/electron/electron.git
synced 2026-01-08 15:13:52 -05:00
docs: document possible print failureReasons (#47337)
docs: document possible print failureReasons
This commit is contained in:
@@ -1726,6 +1726,12 @@ When a custom `pageSize` is passed, Chromium attempts to validate platform speci
|
||||
Prints window's web page. When `silent` is set to `true`, Electron will pick
|
||||
the system's default printer if `deviceName` is empty and the default settings for printing.
|
||||
|
||||
Some possible `failureReason`s for print failure include:
|
||||
|
||||
* "Invalid printer settings"
|
||||
* "Print job canceled"
|
||||
* "Print job failed"
|
||||
|
||||
Use `page-break-before: always;` CSS style to force to print to a new page.
|
||||
|
||||
Example usage:
|
||||
|
||||
Reference in New Issue
Block a user