UNPKG

pdf-to-printer2

Version:

A utility to print PDF files from Node.js and Electron. Forked from https://github.com/artiebits/pdf-to-printer

18 lines (13 loc) 369 B
export interface Options { printer?: string; unix?: string[]; win32?: string[]; sumatraPdfPath?: string; } export interface Printer { deviceId: string; name: string; } export function print(path: string, options?: Options): Promise<void>; export function getPrinters(): Promise<Printer[]>; export function getDefaultPrinter(): Promise<Printer> | false;