/** * 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;