git404hub

what is pdf_ai_translater fr?

bingbongbang01/pdf_ai_translater — explained in plain English

Analysis updated 2026-05-18

3PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

tl;dr

A Python tool that translates PDF documents with AI while preserving the original layout, fonts, and tables.

vibe map

mindmap
  root((PDF AI Translator))
    What it does
      Layout preserving PDF translation
      CLI and Windows GUI
      Table and column protection
    Tech stack
      Python
      Claude Gemini GPT APIs
      Local NPU via Lemonade Server
    Use cases
      Translate documents keeping layout
      Resume interrupted translations
      Offline translation on NPU
    Audience
      Developers
      Translators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Translate a PDF into another language while keeping fonts, tables, and layout intact.

VIBE 2

Switch automatically between multiple AI provider keys as quotas run out.

VIBE 3

Translate documents fully offline using a local AMD NPU instead of cloud APIs.

VIBE 4

Resume a partially completed translation without redoing finished pages.

what's the stack?

PythonClaude APIGemini APIOpenAI API

how it stacks up fr

bingbongbang01/pdf_ai_translater0marildo/imago0xdfi/glm-5.2-1m-4x-dgx-spark
Stars333
LanguagePythonPythonPython
Setup difficultymoderateeasyhard
Complexity3/52/55/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Needs Python 3.12 plus at least one AI API key, or an AMD Ryzen AI NPU with Lemonade Server for offline use.

in plain english

PDF AI Translator is a Python tool that translates PDF documents while keeping the original layout intact. Instead of producing a plain reflowed text file, it swaps out the text in place, preserving the original font size, position, tables, color, and boldness, so the translated PDF looks like the source document with a different language on it. It comes as both a command line tool and a Windows desktop GUI app. Translation can be powered by Claude, Gemini, or GPT through your own API keys. You can register keys for several of these providers at once, and if one key runs out of quota the tool automatically switches to the next available key or provider so a long translation job does not stop. For people with an AMD Ryzen AI chip that has an NPU, the tool can also fall back to translating locally through the Lemonade Server, which means a document can be fully translated without any internet connection or API key at all. The tool pays special attention to tables and multi column layouts, detecting when separate pieces of text sit close together and placing each translated piece back in its original spot so cells and columns do not break apart. If a translation job gets interrupted partway through, you can feed the partial output file back in and it automatically detects which page ranges were not translated and continues from there. There is also support for a glossary file so you can force specific translations for terms specific to your organization or project. The GUI version lets you pick your input PDF, enter API keys that are saved for next time, choose source and target languages with automatic detection, and watch a progress bar with an estimated time remaining. It can also install its own prerequisites automatically. Requirements are Python 3.12, and Windows 10 or 11 if you want the GUI, though the command line version also runs on Linux and macOS. Known limitations include no support for scanned image-only PDFs without adding OCR text first, lower quality from smaller local NPU models compared to cloud models, and occasional misalignment on very complex layouts like rotated text or magazine-style columns. The project is released under a Creative Commons Attribution NonCommercial license, so commercial use is not permitted.

prompts (copy fr)

prompt 1
Help me set up API keys in api.txt so PDF AI Translator can auto-detect the providers.
prompt 2
Show me the command to translate only pages 1 through 10 of a PDF into Korean.
prompt 3
Explain how to configure local NPU fallback with Lemonade Server for offline translation.
prompt 4
Walk me through building the standalone Windows executable for PDF AI Translator.

Frequently asked questions

what is pdf_ai_translater fr?

A Python tool that translates PDF documents with AI while preserving the original layout, fonts, and tables.

What language is pdf_ai_translater written in?

Mainly Python. The stack also includes Python, Claude API, Gemini API.

How hard is pdf_ai_translater to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is pdf_ai_translater for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.