#5050th of 100 in Data and scraping for AIFor data and documents, documents and ocr, science, health and research, research and papers

pdfmathtranslate

Translates scientific PDFs while keeping formulas, figures and layout intact

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
38.8k
License
AGPL-3.0
Last commit
Nov 2026
Last release
Jul 2025
Language
Python
Stars, last 35 weeks+6,849
25 Mar 2026: 31,916 stars1 Apr 2026: 32,110 stars8 Apr 2026: 32,313 stars15 Apr 2026: 32,620 stars22 Apr 2026: 32,772 stars29 Apr 2026: 32,949 stars6 May 2026: 33,114 stars13 May 2026: 33,298 stars20 May 2026: 33,493 stars27 May 2026: 33,751 stars3 Jun 2026: 34,075 stars10 Jun 2026: 34,377 stars17 Jun 2026: 34,574 stars24 Jun 2026: 34,837 stars1 Jul 2026: 35,027 stars8 Jul 2026: 35,188 stars15 Jul 2026: 35,318 stars22 Jul 2026: 35,455 stars29 Jul 2026: 35,606 stars5 Aug 2026: 35,743 stars12 Aug 2026: 35,915 stars19 Aug 2026: 36,037 stars26 Aug 2026: 36,202 stars2 Sept 2026: 36,489 stars9 Sept 2026: 36,686 stars16 Sept 2026: 36,898 stars23 Sept 2026: 37,081 stars30 Sept 2026: 37,197 stars7 Oct 2026: 37,324 stars14 Oct 2026: 37,536 stars21 Oct 2026: 37,746 stars28 Oct 2026: 38,020 stars4 Nov 2026: 38,246 stars11 Nov 2026: 38,433 stars18 Nov 2026: 38,610 stars25 Nov 2026: 38,765 stars

31,916 on 25 Mar 202638,765 on 25 Nov 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

Ranked among open-source alternatives to DeepL (#3 of 3).

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

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Data and scraping for AI

See all 100
Also in Data and scraping for AI
RankProjectScore
#48grobidExtracts structured TEI/XML from scientific PDFs, including metadata and references Live demo ↗ (opens in a new tab)5.3k stars+53 (+1.0%) in 30 daysApache-2.063 out of 100
#49curatorPython library for bulk LLM inference and synthetic data generation1.8k starsApache-2.063 out of 100
#51ai-youtube-shorts-generatorCLI that cuts long YouTube videos into ranked vertical shorts6.6k starsMIT62 out of 100
#52chubbyskillsAgent skills and CLI that save videos, podcasts and articles as searchable Markdown1.4k stars+69 (+5.4%) in 30 daysMIT62 out of 100
#53minicpm-ocr1.3B OCR model and SDK that parse PDFs and images into Markdown or JSON Live demo ↗ (opens in a new tab)1.1k stars+519 (+91%) in 30 daysApache-2.062 out of 100