Skip to content

ElectronWebviewTagPrintOptions

Unofficial

Options for printing a webview page.

Import:

import type { ElectronWebviewTagPrintOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronWebviewTagPrintOptions

Properties

PropertyTypeDescription
collate?booleanWhether the web page should be collated.
color?booleanWhether the printed web page will be in color or grayscale.
copies?numberThe number of copies of the web page to print.
deviceName?stringThe 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?stringThe string to be printed as the page footer.
header?stringThe string to be printed as the page header.
landscape?booleanWhether the web page should be printed in landscape mode.
margins?ElectronMarginsThe margins of the printed web page.
pageRanges?ElectronPageRanges[]The page range to print.
pageSize?ElectronSize | stringThe page size of the printed document. Can be A3, A4, A5, Legal, Letter, Tabloid or an object containing height and width.
pagesPerSheet?numberThe number of pages to print per page sheet.
printBackground?booleanWhether to print the background color and image of the web page.
scaleFactor?numberThe scale factor of the web page.
silent?booleanWhether to print silently without asking the user for print settings.