Skip to content

ElectronWebContents.print method

ElectronWebContents › print

Unofficial

Prints the window's web page.

Signature:

print(options?: ElectronWebContentsPrintOptions | undefined, callback?: ((success: boolean, failureReason: string) => void) | undefined): void

Parameters:

Parameter Type Description
options? ElectronWebContentsPrintOptions | undefined Options for printing.
callback? ((success: boolean, failureReason: string) => void) | undefined Called with whether printing succeeded and any failure reason.

Returns: void