UNPKG

pdf-to-img

Version:

📃📸 Converts PDFs to images in nodejs

15 lines (14 loc) • 478 B
import Canvas from "canvas"; type Factory = { canvas: Canvas.Canvas | null; context: Canvas.CanvasRenderingContext2D | null; }; type NonNullableFactory = { [K in keyof Factory]: NonNullable<Factory[K]>; }; export declare class NodeCanvasFactory { create(width: number, height: number, transparent: boolean): NonNullableFactory; reset(canvasAndContext: Factory, width: number, height: number): void; destroy(canvasAndContext: Factory): void; } export {};