WebContentsPrintOptions

external interface WebContentsPrintOptions(source)

Properties

Link copied to clipboard
abstract var collate: Boolean?

Whether the web page should be collated.

Link copied to clipboard
abstract var color: Boolean?

Set whether the printed web page will be in color or grayscale. Default is true.

Link copied to clipboard
abstract var copies: Double?

The number of copies of the web page to print.

Link copied to clipboard
abstract var deviceName: String?

Set the printer device name to use. Must be the system-defined name and not the 'friendly' name, e.g 'Brother_QL_820NWB' and not 'Brother QL-820NWB'.

Link copied to clipboard
abstract var dpi: ReadonlyRecord<String, Double>?
Link copied to clipboard

Set the duplex mode of the printed web page. Can be simplex, shortEdge, or longEdge.

Link copied to clipboard
abstract var footer: String?

string to be printed as page footer.

Link copied to clipboard
abstract var header: String?

string to be printed as page header.

Link copied to clipboard
abstract var landscape: Boolean?

Whether the web page should be printed in landscape mode. Default is false.

Link copied to clipboard
abstract var margins: Margins?
Link copied to clipboard

The page range to print. On macOS, only one range is honored.

Link copied to clipboard
abstract var pageSize: Any?

Specify page size of the printed document. Can be A0, A1, A2, A3, A4, A5, A6, Legal, Letter, Tabloid or an Object containing height and width.

Link copied to clipboard
abstract var pagesPerSheet: Double?

The number of pages to print per page sheet.

Link copied to clipboard
abstract var printBackground: Boolean?

Prints the background color and image of the web page. Default is false.

Link copied to clipboard
abstract var scaleFactor: Double?

The scale factor of the web page.

Link copied to clipboard
abstract var silent: Boolean?

Don't ask user for print settings. Default is false.