From b2822ed800fc961051e8ab22b1fca72c63ebac30 Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Thu, 1 Nov 2018 07:16:08 -0700 Subject: [PATCH] docs: add Size as an option for pageSize in docs for printToPDF (#15525) --- docs/api/web-contents.md | 2 +- docs/api/webview-tag.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 520b3cce7bc7..e506a2b18346 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1038,7 +1038,7 @@ Use `page-break-before: always; ` CSS style to force to print to a new page. * `options` Object * `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for 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` and `width` in microns. * `printBackground` Boolean (optional) - Whether to print CSS backgrounds. diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 902598d17946..d01bc3b5befd 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -502,7 +502,7 @@ Prints `webview`'s web page. Same as `webContents.print([options])`. * `options` Object * `marginsType` Integer (optional) - Specifies the type of margins to use. Uses 0 for 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` and `width` in microns. * `printBackground` Boolean (optional) - Whether to print CSS backgrounds.