obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
26 lines (25 loc) • 590 B
text/typescript
/**
* @packageDocumentation
*
* Contains utility functions for printing to PDF.
*/
interface PrintToPdfOptions {
filepath: string;
includeName: boolean;
landscape: boolean;
marginsType: number;
open: boolean;
pageSize: string;
scale: number;
scaleFactor: number;
}
/**
* Print the given element to a PDF file.
*
* Works only on desktop.
*
* @param el - The element to print.
* @param options - The options to use for the print.
*/
export declare function printToPdf(el: HTMLElement, options: Partial<PrintToPdfOptions>): Promise<void>;
export {};