UNPKG

office-text-extractor

Version:

Yet another library to extract text from MS Office and PDF files

15 lines (14 loc) 437 B
import type { TextExtractionMethod } from '../lib.js'; export declare class PdfExtractor implements TextExtractionMethod { /** * The type(s) of input acceptable to this method. */ mimes: string[]; /** * Extract text from a PDF file if possible. * * @param payload The input and its type. * @returns The text extracted from the input. */ apply: (input: Uint8Array) => Promise<string>; }