ElectronWebContents.printToPDF method
ElectronWebContents › printToPDF
Unofficial
Prints the window's web page as PDF.Signature:
printToPDF(options: ElectronPrintToPDFOptions): Promise<Buffer>Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronPrintToPDFOptions | Options for printing to PDF. |
Returns: Promise<Buffer> — A promise resolving with the generated PDF data.