PDFMathTranslate /PDFMathTranslate

[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

★ 38,339⑂ 3,432👁 123⑃ 294● 888▤ 24◈ 0
PythonAGPL-3.0Created 2024-09-06pdf2zh.com
38,339
stars
+32
3,432
forks
123
watchers
294
prs
888
issues
24
releases
0
discussions

README

Special thanks to:
		
		
		
		Warp, built for coding with multiple AI agents
		
		Available for macOS, Linux and Windows
	






English | 简体中文 | 繁體中文 | 日本語 | 한국어



PDFMathTranslate


  
  
    
  
    
  
    
  
  
    
  
    
  
    
  
    
  
    
  
  
    






1. What does this do?

Scientific PDF document translation preserving layouts.

- 📊 Preserve formulas, charts, table of contents, and annotations.
- 🌐 Support multiple languages, and diverse translation services.
- 🤖 Provides commandline tool, interactive user interface, and Docker





2. Recent Updates

- [October 3, 2026] Translated PDFs automatically add spaces between adjacent CJK and Latin letters, including accented letters, in normal and --ultrafast modes.

- [October 2, 2026] Added the --ultrafast CLI mode for native-text PDFs. It uses pdf-inspector text positions for heuristic layout and skips ONNX layout and OCR.  (by @reycn)
- [September 8, 2026] Experimental OCR support, with paragraph regrouping and adaptive typesetting. (by @reycn)
- [March 23, 2026] Experimental support for v2.0 translation kernel using isolated environment (--mode precise). (by @reycn)
- [March 22, 2026] Supporting MiniMax (PR by @octo-patch)
- [March 22, 2026] Fixing OpenAI-related issues (PR by @samqin123)
- [March 22, 2026] Fixing HTTP-related issues (PR by @soukouki)
- [March 22, 2026] Faster model loading on mac and OONX platforms, GUI starting-up, version printing, and continuous integration.(by @reycn)
- [May 9, 2025] pdf2zh 2.0 Preview Version 586: The Windows ZIP file and Docker image are now available.

   [!NOTE]
  
   2.0 Moved to a new repository under the organization: PDFMathTranslate/PDFMathTranslate-next
   
   Version 2.0 official release has been published.

3. Use 🌟
3.1 Online Service 🌟

You can try our application out using either of the following demos:

- Public free service online without installation _(recommended)_.
- Immersive Translate - BabelDOC Free usage quota is available; please refer to the FAQ section on the page for details. _(recommended)_
- Demo hosted on HuggingFace
- Demo hosted on ModelScope without installation.

Note that the computing resources of the demo are limited, so please avoid abusing them.

3.2 Local Installation

For different use cases, we provide distinct methods to use our program:


  3.2.1 Python: Install using uv

1. Python installed (3.11 

  3.2.2 Python: Install using pip

1. Python installed (3.11 

  3.3.3 Python: Graphic user interface

1. Python installed (3.11 

See documentation for GUI for more details.




  3.2.4 Application: On Windows

1. Download pdf2zh-version-win64.zip from release page

2. Unzip and double-click pdf2zh.exe to run.


   [!TIP]
  
   - If you're using Windows and cannot open the file after downloading, please install vc_redist.x64.exe and try again.
   





3.2.5 Reference manager: Zotero Plugin


See Zotero PDF2zh for more details.





  3.2.6 Docker: Containerized Deployment

1. Pull and run:

   bash

Top issues

Latest release

v1.9.11 v1.9.11 2025-07-11
Changes

- doc (issues): update template. @hellofinch (992)
- doc (issue): redirect to new repo. @hellofinch (983)
- Update dependencies, restrict the gradio version to avoid the white screen issue. @awwaawwa 

 Contributors

@awwaawwa, @hellofinch and @reycn

 Windows Specific

If you cannot open it after downloading, please install https://aka.ms/vs/17/release/vc_redist.x64.exe and try again.

 Assets

- pdf2zh-v1.9.11-win64.zip: pdf2zh without assets(font, model, etc.)
- pdf2zh-v1.9.11-with-assets-win64.zip: (Recommended) pdf2zh with assets(font, model, etc.)

 [!NOTE]

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON