Skip to content

ChromiumPrintProfile

Defined in: profile.ts:26

Browser-safe data needed to print Rust-rendered HTML with Chromium.

html already contains all layout CSS, so it can be used directly with an Electron BrowserWindow or a document opened for window.print(). The remaining values are physical print metadata for hosts such as webContents.printToPDF(). No browser is launched by this module.

html: string

Defined in: profile.ts:27


page: object

Defined in: profile.ts:29

heightMm: number

landscape: boolean

marginsMm: Margins

widthMm: number


pageNumbers: ChromiumPrintPageNumber

Defined in: profile.ts:35


profile: ResolvedExportProfile

Defined in: profile.ts:28