docs: add Size as an option for pageSize in docs for printToPDF (#15525)

This commit is contained in:
trop[bot] 2018-11-01 07:16:08 -07:00 committed by Shelley Vohr
parent 6bec85f30c
commit b2822ed800
2 changed files with 2 additions and 2 deletions

View file

@ -1038,7 +1038,7 @@ Use `page-break-before: always; ` CSS style to force to print to a new page.
* `options` Object * `options` Object
* `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for * `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for
default margin, 1 for no margin, and 2 for minimum margin. default margin, 1 for no margin, and 2 for minimum margin.
* `pageSize` String (optional) - Specify page size of the generated PDF. Can be `A3`, * `pageSize` String | Size (optional) - Specify page size of the generated PDF. Can be `A3`,
`A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height` `A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height`
and `width` in microns. and `width` in microns.
* `printBackground` Boolean (optional) - Whether to print CSS backgrounds. * `printBackground` Boolean (optional) - Whether to print CSS backgrounds.

View file

@ -502,7 +502,7 @@ Prints `webview`'s web page. Same as `webContents.print([options])`.
* `options` Object * `options` Object
* `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for * `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for
default margin, 1 for no margin, and 2 for minimum margin. default margin, 1 for no margin, and 2 for minimum margin.
* `pageSize` String (optional) - Specify page size of the generated PDF. Can be `A3`, * `pageSize` String | Size (optional) - Specify page size of the generated PDF. Can be `A3`,
`A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height` `A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height`
and `width` in microns. and `width` in microns.
* `printBackground` Boolean (optional) - Whether to print CSS backgrounds. * `printBackground` Boolean (optional) - Whether to print CSS backgrounds.