UNPKG

nano-ai-pdf

Version:

This package helps you summarize pdfs using Gemini nano on edge or on browser, making it compliant safe, faster and free

18 lines (17 loc) 677 B
/** * Extracts text content from a PDF file * * @param file - The PDF file to extract text from * @param minTextLength - Minimum required text length (default: 100) * @returns Promise resolving to the extracted text * @throws PdfSummarizerError if extraction fails or text is insufficient */ export declare function extractTextFromPdf(file: File, minTextLength?: number): Promise<string>; /** * Validates a PDF file before processing * * @param file - The file to validate * @param maxFileSize - Maximum allowed file size in bytes * @throws PdfSummarizerError if validation fails */ export declare function validatePdfFile(file: File, maxFileSize?: number): void;