研究Apr 2, 2026·2 min read
PDFMathTranslate — Translate PDF Papers Preserving Format
Translate PDF scientific papers while preserving math formulas, charts, and layout. Supports Google, DeepL, OpenAI, Ollama. CLI, GUI, MCP, Docker, Zotero plugin.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
pip install pdf2zh
# Translate a PDF (entire document)
pdf2zh input.pdf
# Translate specific pages with DeepL
pdf2zh input.pdf -p 1-10 -s deepl
# Use OpenAI for translation
pdf2zh input.pdf -s openai:gpt-4o
# Use local Ollama model
pdf2zh input.pdf -s ollama:qwen2.5
```
**GUI mode:**
```bash
pdf2zh -g
# Opens a web interface at http://localhost:7860
```
**Docker:**
```bash
docker run -d -p 7860:7860 byaidu/pdf2zh
```
Intro
PDFMathTranslate (pdf2zh) solves the hardest problem in academic PDF translation: preserving mathematical formulas, charts, tables, and layout while translating text. Most translation tools butcher LaTeX equations and destroy figure layouts — pdf2zh keeps them pixel-perfect.
Featured at EMNLP 2025, it supports 10+ translation backends including Google Translate, DeepL, OpenAI, Anthropic, and local models via Ollama. Integrates with Zotero for one-click translation of your research library. Available as CLI, GUI, Docker, and even an MCP server.
🙏
Source & Thanks
- **GitHub**: [Byaidu/PDFMathTranslate](https://github.com/Byaidu/PDFMathTranslate) — 32,600+ stars, AGPL-3.0 License
- **PyPI**: `pdf2zh`
- Featured at EMNLP 2025
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.
Related Assets
PocketBase — Backend in One File for AI Apps
Open-source backend with database, auth, file storage, and admin UI in a single executable. Perfect for AI app backends. 57K+ stars.
TokRepo精选
LLM — CLI Swiss Army Knife for Language Models
Run prompts from the terminal, log everything to SQLite, manage 50+ providers via plugins. By Django co-creator. 11K+ stars.
TokRepo精选
Zed — High-Performance AI Code Editor
GPU-accelerated editor built in Rust with multiplayer editing and built-in AI assistant. By the creators of Atom. 78K+ stars.
TokRepo精选