A powerful application that translates PDF documents to various languages while preserving the original layout, formatting, and background colors using OpenAI API.

GPT PDF Translator is a web application that translates PDF documents into any language while preserving the original layout, formatting, and background colors. It extracts text blocks with their positions, font styles, and sizes, detects background colors, translates using OpenAI's API, and recreates the PDF with translated text in matching styles — all with real-time WebSocket progress tracking.
Translating PDF documents typically destroys the original layout, formatting, and design elements. Existing tools produce messy outputs that lose the structure, background colors, and font styles of the source document, making translated PDFs look unprofessional and hard to read.
Built a FastAPI application that intelligently extracts text blocks while preserving their positions, detects background colors by rendering and analyzing text block areas, translates via OpenAI's API, and recreates the PDF by overlaying translated text with matching font styles and intelligent text wrapping — all with real-time WebSocket progress updates.
Open-source tool that enables seamless PDF translation while maintaining professional document quality.