A minimal PDF translation MVP built with Next.js 15, Tailwind CSS, and TypeScript. This application allows users to upload PDF files (up to 5 pages) and translate the content from English to Indonesian using OpenRouter AI API.
- PDF Upload: Drag-and-drop file upload with validation
- Page Limit: Maximum 5 pages per PDF
- Side by Side Preview: Original PDF and translated text displayed together
- Page Navigation: Navigate through pages with synchronized view
- Progress Tracking: Real-time translation progress indicator
- Responsive Design: Works on desktop and mobile devices
- Next.js 15 (App Router)
- TypeScript
- Tailwind CSS
- PDF.js (for PDF rendering and text extraction)
- OpenRouter AI API (for translation)
OPENROUTER_API_URL=
OPENROUTER_API_KEY=
OPENROUTER_MODEL=
- Maximum 5 pages per PDF
- PDF files only
- English to Indonesian translation only
- Requires internet connection for translation