Add guide for force new page in print / printToPDF
This commit is contained in:
parent
b5dec9990e
commit
ec60c149f5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue