feat: allow customization of print page header and footer (#19688)

* feat: allow customization of more print settings

* address feedback from @jkleinsc

* header and footer are optional
This commit is contained in:
Shelley Vohr 2019-08-09 13:16:25 -07:00 committed by GitHub
parent 84cbc1d6c0
commit 7861e9f728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 4 deletions

View file

@ -1264,6 +1264,8 @@ Returns [`PrinterInfo[]`](structures/printer-info.md).
* `dpi` Object (optional)
* `horizontal` Number (optional) - The horizontal dpi.
* `vertical` Number (optional) - The vertical dpi.
* `header` String (optional) - String to be printed as page header.
* `footer` String (optional) - String to be printed as page footer.
* `callback` Function (optional)
* `success` Boolean - Indicates success of the print call.
* `failureReason` String - Called back if the print fails; can be `cancelled` or `failed`.