printToPDF

fun printToPDF(    options: PrintToPDFOptions): <Error class: unknown class><<Error class: unknown class><out <Error class: unknown class>>>(source)

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.