UNPKG

mindee

Version:

Mindee Client Library for Node.js

10 lines (9 loc) 571 B
/** * Compresses each page of a provided PDF buffer. * @param pdfData The input PDF as a Buffer. * @param imageQuality Compression quality (70-100 for most JPG images). * @param forceSourceTextCompression If true, attempts to re-write detected text. * @param disableSourceText If true, doesn't re-apply source text to the output PDF. * @returns A Promise resolving to the compressed PDF as a Buffer. */ export declare function compressPdf(pdfData: Buffer, imageQuality?: number, forceSourceTextCompression?: boolean, disableSourceText?: boolean): Promise<Buffer>;