@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.
12 lines (11 loc) • 344 B
TypeScript
/**
* Crée un fichier temporaire pour l'upload
*/
export declare function createTempFile(content: Buffer | ArrayBuffer, extension?: string): Promise<{
filePath: string;
cleanup: () => Promise<void>;
}>;
/**
* Crée les headers CORS standard
*/
export declare function createCorsHeaders(origins?: string[]): Record<string, string>;