printToPDF
fun printToPDF(options: PrintToPDFOptions): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for Buffer<*>>(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.