Ende.PrintToPdfOptions

interface ยท desktop apps only

interface Ende.PrintToPdfOptions

Options for BrowserWindow.printToPdf.

Properties

path

path?: string

Also write the PDF to this file, replacing it if it exists. The promise still resolves with the same bytes.

Requires allow-write permission for the path, checked the way Ende.writeFile checks it, before anything is rendered. A relative path resolves against the current working directory.