Skip to content

A minimal PDF translation MVP built with Next.js 15, Tailwind CSS, TypeScript, and OpenRouter AI API

Notifications You must be signed in to change notification settings

ahmadlufiau/pdf-translate

Repository files navigation

PDF Translation Tool

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.

Features

  • 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

Tech Stack

  • Next.js 15 (App Router)
  • TypeScript
  • Tailwind CSS
  • PDF.js (for PDF rendering and text extraction)
  • OpenRouter AI API (for translation)

Environment Variables

OPENROUTER_API_URL=
OPENROUTER_API_KEY=
OPENROUTER_MODEL=

Limitations

  • Maximum 5 pages per PDF
  • PDF files only
  • English to Indonesian translation only
  • Requires internet connection for translation

Screenshot

Screenshot 1

Screenshot 1

Screenshot 2

Screenshot 1

About

A minimal PDF translation MVP built with Next.js 15, Tailwind CSS, TypeScript, and OpenRouter AI API

Topics

Resources

Stars

Watchers

Forks