UNPKG

@aidalinfo/pdf-processor

Version:

Powerful PDF data extraction library powered by AI vision models. Transform PDFs into structured, validated data using TypeScript, Zod, and AI providers like Scaleway and Ollama.

23 lines (22 loc) 779 B
import { InternalProcessingOptions } from "./types"; /** * Extract images from PDF for Vision LLM processing * * @param filePath - Path to the PDF file * @param outputDir - Directory where to save extracted images * @param options - Processing options * @returns Array of image file paths */ export declare function extractImagesFromPDF(pdfPath: string, outputDir: string, options: InternalProcessingOptions): Promise<string[]>; /** * Create a temporary directory for processing */ export declare function createTempDir(): Promise<string>; /** * Clean up a specific temporary directory */ export declare function cleanupTempDir(tempDir: string): Promise<void>; /** * Clean up all temporary directories */ export declare function cleanupAllTempDirs(): Promise<void>;