printToPdf
Print the given element to a PDF file.
Works only on desktop.
Import:
import { printToPdf } from 'obsidian-dev-utils/obsidian/pdf';Signature:
function printToPdf(el: HTMLElement, options: Partial<PrintToPdfOptions>): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | The element to print. |
options | Partial<PrintToPdfOptions> | The options to use for the print. |