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.
8 lines (7 loc) • 453 B
TypeScript
/**
* Normalizes every supported input shape to a `Uint8Array` that pdfjs may safely transfer
* (detach). Closing the return type here means this module is the single owner of "what shape we
* hand pdfjs" — downstream seams (`getPdfDocument`, the worker dispatch) take a `Uint8Array` and
* re-derive nothing.
*/
export declare function getPdfFileBuffer(pdfFile: string | ArrayBufferLike | Uint8Array, maxInputBytes: number): Promise<Uint8Array>;