PDFs are now converted to PNG images at 200 DPI before being sent to Gemini for analysis. This fixes the unreliable iframe-based PDF preview and ensures all pages are properly analyzed. - Add PyMuPDF dependency for PDF rasterization - Create pdf_service.py with rasterize() and get_page_count() - Update agent interfaces to accept list of images for multi-page support - Add analyze_with_images() to Gemini service for multi-image analysis - Return rasterized PDF pages via WebSocket for frontend display - Add page navigation UI for multi-page PDFs in preview components Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
280 B
Text
Executable file
14 lines
280 B
Text
Executable file
fastapi>=0.109.0
|
|
uvicorn[standard]>=0.27.0
|
|
python-dotenv>=1.0.0
|
|
google-genai>=1.5.4
|
|
pydantic>=2.5.0
|
|
python-multipart>=0.0.9
|
|
aiofiles>=23.2.1
|
|
websockets>=12.0
|
|
python-jose[cryptography]>=3.3.0
|
|
httpx>=0.26.0
|
|
sqlalchemy[asyncio]>=2.0.0
|
|
asyncpg>=0.29.0
|
|
alembic>=1.13.0
|
|
PyMuPDF>=1.23.0
|