diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 29aef125ba90..3e1a9183da50 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1106,7 +1106,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 d9f2647db9b5..19658a2c44fd 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -526,7 +526,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.