#99th of 13 in Data and scraping for AI

pdfmathtranslate

Translates scientific PDFs while keeping formulas, figures and layout intact

Stars
37.6k
License
AGPL-3.0
Last commit
Oct 2026
Last release
Jul 2025
Language
Python
Stars, last 29 weeks+5,621
25 Mar 2026: 31,933 stars1 Apr 2026: 32,127 stars8 Apr 2026: 32,330 stars15 Apr 2026: 32,637 stars22 Apr 2026: 32,789 stars29 Apr 2026: 32,966 stars6 May 2026: 33,131 stars13 May 2026: 33,315 stars20 May 2026: 33,510 stars27 May 2026: 33,768 stars3 Jun 2026: 34,092 stars10 Jun 2026: 34,394 stars17 Jun 2026: 34,591 stars24 Jun 2026: 34,854 stars1 Jul 2026: 35,044 stars8 Jul 2026: 35,205 stars15 Jul 2026: 35,335 stars22 Jul 2026: 35,472 stars29 Jul 2026: 35,623 stars5 Aug 2026: 35,760 stars12 Aug 2026: 35,932 stars19 Aug 2026: 36,054 stars26 Aug 2026: 36,219 stars2 Sept 2026: 36,506 stars9 Sept 2026: 36,703 stars16 Sept 2026: 36,915 stars23 Sept 2026: 37,098 stars30 Sept 2026: 37,217 stars7 Oct 2026: 37,345 stars14 Oct 2026: 37,554 stars

31,933 on 25 Mar 202637,554 on 14 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

pdf2zh translates scientific PDFs and writes a translated-only and a bilingual (dual) PDF, preserving formulas, charts, table of contents and annotations. It runs as a CLI, a Gradio web UI on port 7860, a Python or HTTP API, or an MCP server, and calls a configurable translation service (Google by default). Layout detection uses a DocLayout-YOLO ONNX model, with optional OCR and an --ultrafast mode.

Who it is for: Researchers and self-hosters translating academic PDFs

Strengths

  • Outputs both translated-only and side-by-side bilingual PDFs from one command
  • Many interfaces: CLI, Gradio GUI, Docker, Python API, HTTP API, MCP stdio/SSE
  • Selectable translation backends via -s, with Google as the default
  • Optional OCR for scanned pages and --ultrafast mode for native-text PDFs

Weaknesses

  • Python limited to 3.11 to 3.12
  • OCR is experimental and targets white-background scans; handwriting may fail
  • Last release is 2025-07-11; v2 work lives in a separate PDFMathTranslate-next repo
  • --ultrafast is CLI fast mode only and is weaker on complex tables or formulas

What it needs

  • no GPU
  • Docker + Compose
  • Needs DocLayout-YOLO ONNX model (Hugging Face download), Translation service (Google default, others configurable)
  • Models: ONNX
  • port 7860

Also in Data and scraping for AI

See all 13
Also in Data and scraping for AI
RankProjectScore
1mineruDocument parser that converts PDFs, images and Office files to Markdown and JSON Live demo ↗ (opens in a new tab)81.8k starscustom license78 out of 100
2Crawl4AIPython web crawler that converts pages to LLM-ready Markdown and JSON85.6k starsApache-2.077 out of 100
3doclingPython library and CLI that converts PDFs, Office files and more into structured text68.9k starsMIT76 out of 100
#4markitdownPython tool that converts PDF, Office, HTML and audio files to Markdown for LLMs190.3k starsMIT71 out of 100
#5FirecrawlWeb scraping and crawling API that returns LLM-ready markdown Live demo ↗ (opens in a new tab)191.6k starsAGPL-3.067 out of 100