office-text-extractor
Version:
Yet another library to extract text from MS Office and PDF files
16 lines (15 loc) • 463 B
TypeScript
import type { TextExtractionMethod } from '../lib.js';
export declare class PptExtractor implements TextExtractionMethod {
decoder: TextDecoder;
/**
* The type(s) of input acceptable to this method.
*/
mimes: string[];
/**
* Extract text from a PPT file if possible.
*
* @param payload The input and its type.
* @returns The text extracted from the input.
*/
apply: (input: Uint8Array) => Promise<string>;
}