ElectronWebContentsPrintOptions
Unofficial
Options for printing a web page.
Import:
import type { ElectronWebContentsPrintOptions } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ElectronWebContentsPrintOptionsProperties
| Property | Type | Description | |
|---|---|---|---|
| collate? | boolean | Whether the web page should be collated. | |
| color? | boolean | Whether the printed web page will be in color or grayscale. | |
| copies? | number | The number of copies of the web page to print. | |
| deviceName? | string | Set the printer device name to use. Must be the system-defined name and not the 'friendly' name. | |
| dpi? | Record<string, number> | The DPI of the printed web page keyed by axis. | |
| duplexMode? | 'longEdge' | 'shortEdge' | 'simplex' | Set the duplex mode of the printed web page. | |
| footer? | string | String to be printed as page footer. | |
| header? | string | String to be printed as page header. | |
| landscape? | boolean | Whether the web page should be printed in landscape mode. | |
| margins? | ElectronMargins | The margins of the printed web page. | |
| pageRanges? | ElectronPageRanges[] | The page range to print. On macOS, only one range is honored. | |
| pageSize? | ElectronSize | string | The page size of the printed document. Can be A3, A4, A5, Legal, Letter, Tabloid or an object containing height and width. | |
| pagesPerSheet? | number | The number of pages to print per page sheet. | |
| printBackground? | boolean | Prints the background color and image of the web page. | |
| scaleFactor? | number | The scale factor of the web page. | |
| silent? | boolean | Don't ask the user for print settings. |