
PDFMathTranslate-next
CLIPDFMathTranslate 2.x (command pdf2zh_next), built on BabelDOC: translates papers and other PDFs while keeping formulas, charts, TOC and annotations, outputting translated and bilingual side-by-side versions. Uses a free translation channel by default, or your own OpenAI, DeepSeek or other API key.
PDF scientific paper translation and bilingual comparison. Based on BabelDOC. Additionally, this project is also the official reference implementation for calling BabelDOC to perform PDF translation.
- 📊 Preserve formulas, charts, table of contents, and annotations (preview).
- 🌐 Support multiple languages, and diverse translation services.
- 🤖 Provides commandline tool, interactive user interface, and Docker
[!WARNING]
This project is provided "as is" under the AGPL v3 license, and no guarantees are provided for the quality and performance of the program. The entire risk of the program's quality and performance is borne by you. If the program is found to be defective, you will be responsible for all necessary service, repair, or correction costs.
Due to the maintainers' limited energy, we do not provide any form of usage assistance or problem-solving. Related issues will be closed directly! (Pull requests to improve project documentation are welcome; bugs or friendly issues that follow the issue template are not affected by this)
For details on how to contribute, please consult the Contribution Guide.
Preview
Online Service 🌟
You can try our application out using either of the following services:
- Immersive Translate - BabelDOC Free usage quota is available; please refer to the FAQ section on the page for details.
Installation and Usage
Installation
- Windows EXE Recommand for Windows
- Docker Recommand for Linux
- uv (a Python package manager) Recommand for macOS
Usage
- Using WebUI
- Using Zotero Plugin (Third party program)
- Using Commandline
For different use cases, we provide distinct methods to use our program. Check out this page for more information.
Advanced Options
For detailed explanations, please refer to our document about Advanced Usage for a full list of each option.
Secondary Development (APIs)
- Python API, how to use the program in other Python programs
Language Code
If you don't know what code to use to translate to the language you need, check out this documentation
Acknowledgements
-
Immersive Translation sponsors monthly Pro membership redemption codes for active contributors to this project, see details at: CONTRIBUTOR_REWARD.md
-
SiliconFlow provides a free translation service for this project, powered by large language models (LLMs).
-
1.x version: Byaidu/PDFMathTranslate
-
backend: BabelDOC
-
PDF Library: PyMuPDF
-
PDF Parsing: Pdfminer.six
-
PDF Preview: Gradio PDF
-
Layout Parsing: DocLayout-YOLO
-
PDF Standards: PDF Explained, PDF Cheat Sheets
-
Multilingual Font: see BabelDOC-Assets
-
Documentation i18n using Weblate
Before submit your code
We welcome the active participation of contributors to make pdf2zh better. Before you are ready to submit your code, please refer to our Code of Conduct and Contribution Guide.
Contributors
Star History
Ressources associées

PDFMathTranslate
CLITranslates full PDF papers while preserving formulas, charts and layout (command pdf2zh), outputting monolingual and side-by-side bilingual PDFs. Uses Google Translate by default and can switch to DeepL, OpenAI and others; also runs as an MCP server.
PDFMathTranslate/PDFMathTranslate37.6k
DocuTranslate
MCPLocal LLM-powered document translator for PDF, Word, Excel, EPUB, SRT subtitles and more; Word and Excel keep their formatting, glossaries can be built automatically, and agents can submit jobs via MCP. Needs uv and an OpenAI-compatible API key; translated PDFs lose the original layout.
xunbu/docutranslate1.3k
BabelDOC
CLIPDF translation CLI for research papers that preserves formulas and layout as much as possible, producing bilingual side-by-side or translation-only PDFs. Needs an OpenAI-compatible API (local Ollama works too); currently focused on English to Chinese.
funstory-ai/BabelDOC9.7k
Typst
CLIModern markup-based typesetting system, a LaTeX alternative for papers, reports and resumes. Fast incremental compilation; typst compile outputs a PDF in one command and watch mode recompiles automatically.
typst/typst56.7k
Tectonic
CLISelf-contained modern TeX/LaTeX engine based on XeTeX and TeX Live that downloads and caches support files on first build, compiling .tex to PDF in one command without installing a full TeX distribution.
tectonic-typesetting/tectonic5.2k
ScholarAIO
CLIResearch workbench that turns paper PDFs into a searchable library so Claude Code or Codex can find and close-read papers, draft reviews and manuscripts, answer reviewer comments and check citations. Imports from Zotero and EndNote. Needs Python 3.10+; an LLM API key is optional.
ZimoLiao/scholaraio576