Skip to content

ElectronWebContents.print method

ElectronWebContents › print

Unofficial

Prints the window's web page.

Signature:

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

Parameters:

ParameterTypeDescription
options?ElectronWebContentsPrintOptionsOptions for printing.
callback?(success: boolean, failureReason: string) => voidCalled with whether printing succeeded and any failure reason.

Returns: void