docs: document possible print failureReasons (#47337)
docs: document possible print failureReasons
This commit is contained in:
parent
ba7c3bbdf7
commit
c22f94037a
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue