UNPKG

mindee

Version:

Mindee Client Library for Node.js

19 lines (18 loc) 561 B
import { PageOptions } from "../input"; export interface SplitPdf { file: Buffer; totalPagesRemoved: number; } /** * Cut pages from a pdf file. If pages index are out of bound, it will throw an error. * @param file * @param pageOptions * @returns the new cut pdf file. */ export declare function extractPages(file: Buffer, pageOptions: PageOptions): Promise<SplitPdf>; /** * Count the number of pages in a pdf file. * @param file * @returns the number of pages in the file. */ export declare function countPages(file: Buffer): Promise<number>;