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.

20 lines (19 loc) 469 B
/** * Worker Bun pour extraction PDF → Images * Décharge le thread principal des opérations ghostscript coûteuses */ export interface PdfExtractionTask { taskId: string; pdfPath: string; outputDir: string; dpi: number; } export interface PdfExtractionResult { taskId: string; success: boolean; imagePaths?: string[]; pageCount?: number; error?: string; processingTime: number; } export type PdfExtractionWorker = Worker;