ObsidianIpcPrintToPdfOptions
Unofficial
The options Obsidian’s print-to-pdf IPC channel takes: Electron’s own PDF options plus where to write the file.
Import:
import type { ObsidianIpcPrintToPdfOptions } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ObsidianIpcPrintToPdfOptions extends ElectronPrintToPDFOptionsExtends: ElectronPrintToPDFOptions
Properties
| Property | Type | Description | |
|---|---|---|---|
| filepath | string | The path of the PDF file to write. | |
| headerFooter? | Record<string, string> | The header and footer for the PDF. (Inherited from ElectronPrintToPDFOptions) | |
| landscape? | boolean | true for landscape, false for portrait.(Inherited from ElectronPrintToPDFOptions) | |
| marginsType? | number | Specifies the type of margins to use. Uses 0 for default margin, 1 for no margin, and 2 for minimum margin.(Inherited from ElectronPrintToPDFOptions) | |
| open? | boolean | Whether to open the written file with the system's default application. | |
| pageRanges? | Record<string, number> | The page range to print. On macOS, only the first range is honored. (Inherited from ElectronPrintToPDFOptions) | |
| pageSize? | ElectronSize | string | The page size of the generated PDF. Can be A3, A4, A5, Legal, Letter, Tabloid or an object containing height and width.(Inherited from ElectronPrintToPDFOptions) | |
| printBackground? | boolean | Whether to print CSS backgrounds. (Inherited from ElectronPrintToPDFOptions) | |
| printSelectionOnly? | boolean | Whether to print the selection only. (Inherited from ElectronPrintToPDFOptions) | |
| scaleFactor? | number | The scale factor of the web page. Can range from 0 to 100.(Inherited from ElectronPrintToPDFOptions) |