Merge pull request #5812 from vasumahesh1/feature-pdf
webContents: custom pageSize for printToPDF
This commit is contained in:
commit
0565c42add
2 changed files with 25 additions and 5 deletions
|
@ -655,7 +655,7 @@ size.
|
|||
* `marginsType` Integer - Specifies the type of margins to use. Uses 0 for
|
||||
default margin, 1 for no margin, and 2 for minimum margin.
|
||||
* `pageSize` String - Specify page size of the generated PDF. Can be `A3`,
|
||||
`A4`, `A5`, `Legal`, `Letter` and `Tabloid`.
|
||||
`A4`, `A5`, `Legal`, `Letter`, `Tabloid` or an Object containing `height` & `width` in Microns.
|
||||
* `printBackground` Boolean - Whether to print CSS backgrounds.
|
||||
* `printSelectionOnly` Boolean - Whether to print selection only.
|
||||
* `landscape` Boolean - `true` for landscape, `false` for portrait.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue