UNPKG

mindee

Version:

Mindee Client Library for Node.js

27 lines (26 loc) 807 B
import { BufferInput } from "../input/index.js"; import { Buffer } from "node:buffer"; export declare class ExtractedPdf { readonly buffer: Buffer; readonly filename: string; readonly pageCount: number; readonly pageIndexes: number[]; constructor(pdfData: Buffer<ArrayBufferLike>, filename: string, pageIndexes: number[]); /** * Saves the document to a file. * * @param outputPath Path to save the file to. */ saveToFileAsync(outputPath: string): Promise<void>; /** * Saves the document to a file synchronously. * @param outputPath */ saveToFile(outputPath: string): void; /** * Return the file as a Mindee-compatible BufferInput source. * * @returns A BufferInput source. */ asInputSource(): BufferInput; }