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.
Properties
Section titled “Properties”html:
string
Defined in: profile.ts:27
page:
object
Defined in: profile.ts:29
heightMm
Section titled “heightMm”heightMm:
number
landscape
Section titled “landscape”landscape:
boolean
marginsMm
Section titled “marginsMm”marginsMm:
Margins
widthMm
Section titled “widthMm”widthMm:
number
pageNumbers
Section titled “pageNumbers”pageNumbers:
ChromiumPrintPageNumber
Defined in: profile.ts:35
profile
Section titled “profile”profile:
ResolvedExportProfile
Defined in: profile.ts:28