UNPKG

pdf-to-png-converter

Version:

Node.js utility to convert PDF file/buffer pages to PNG files/buffers. No build-time compilation required — pre-built native binaries included for all major platforms.

14 lines (13 loc) 812 B
import type { PngPageOutput } from './interfaces/index.js'; import type { NormalizedPdfToPngOptions } from './normalizePdfToPngOptions.js'; /** * Internal conversion entry point that bypasses the public-API normalization step. * * Callers — currently the public `pdfToPng()` wrapper and the CLI — are responsible for * producing a fully-validated `NormalizedPdfToPngOptions` (via `normalizePdfToPngOptions`) * before invoking this function. The single-normalize contract is what makes * `NormalizedPdfToPngOptions` the sole validation boundary of the library. * * This module is NOT re-exported from `src/index.ts`; it is an internal seam. */ export declare function pdfToPngCore(pdfFile: string | ArrayBufferLike | Uint8Array, normalizedProps: NormalizedPdfToPngOptions): Promise<PngPageOutput[]>;