diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index d441ddc4bcc..67add6283b0 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -824,6 +824,8 @@ up system's default printer and default settings for printing. Calling `window.print()` in web page is equivalent to calling `webContents.print({silent: false, printBackground: false})`. +Use `page-break-before: always; ` CSS style to force to print to a new page. + #### `contents.printToPDF(options, callback)` * `options` Object @@ -854,6 +856,8 @@ By default, an empty `options` will be regarded as: } ``` +Use `page-break-before: always; ` CSS style to force to print to a new page. + An example of `webContents.printToPDF`: ```javascript