feat: allow specifying pageSize for print (#22014)

This commit is contained in:
Shelley Vohr
2020-02-05 04:25:02 +00:00
committed by GitHub
parent 385388dd6b
commit 928175bdfe
5 changed files with 48 additions and 2 deletions

View File

@@ -569,6 +569,8 @@ Stops any `findInPage` request for the `webview` with the provided `action`.
* `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.
* `pageSize` String | Size (optional) - Specify page size of the printed document. Can be `A3`,
`A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height`.
Returns `Promise<void>`