printToPDF
Resolves with the generated PDF data.
Prints the window's web page as PDF.
The landscape
will be ignored if @page
CSS at-rule is used in the web page.
An example of webContents.printToPDF
:
See Page.printToPdf for more information.