ElectronWebviewTagPrintOptions
Unofficial
Options for printing a webview page.
Import:
import type { ElectronWebviewTagPrintOptions } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ElectronWebviewTagPrintOptionsProperties
| 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 | The name of the printer device to use. Must be the system-defined name and not the 'friendly' name, e.g. Brother_QL_820NWB and not Brother QL-820NWB. | |
| dpi? | Record<string, number> | The DPI settings of the printed web page, keyed by axis. | |
| duplexMode? | 'longEdge' | 'shortEdge' | 'simplex' | The duplex mode of the printed web page. | |
| footer? | string | The string to be printed as the page footer. | |
| header? | string | The string to be printed as the 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. | |
| 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 | Whether to print the background color and image of the web page. | |
| scaleFactor? | number | The scale factor of the web page. | |
| silent? | boolean | Whether to print silently without asking the user for print settings. |