AutoGPT
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
- 188k
- Python
- 2 h ago

Read scientific documents in your language, in realtime, on any platform. 在任何平台上用您的语言实时翻译和阅读科学文献。
Repo PDFMathTranslate/PDFMathReader, read from GitHub 1 min ago. PDFMathTranslate has not joined Take My Repo.
PDFMathTranslate/PDFMathReader is a public repo on GitHub by PDFMathTranslate. Read scientific documents in your language, in realtime, on any platform. 在任何平台上用您的语言实时翻译和阅读科学文献。. It declares the AGPL-3.0 license on GitHub. It is written mainly in JavaScript, has 97 stars and last changed on 2026-11-17. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-18.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
English · 简体中文 · 日本語 · हिन्दी · Français · Español · বাংলা · 한국어
Read scientific documents in your language, in realtime, on any platform.
Powered by PDFMathTranslate with frontier artificial intelligence.
See PDFMathReader-iOS for the mobile companion.
| Date | Feature | Contributor |
|---|---|---|
| 2026-11-17 | complete interface translations in all languages | @reycn |
| 2026-11-17 | localize the crop dialog in all interface languages | @reycn |
| 2026-11-16 | show translations over the original text on overlapping pages | @reycn |
| 2026-11-11 | option to skip translating reference sections | @reycn |
| 2026-11-10 | delete, undo and cross-document paste for gallery pages | @reycn |
| 2026-11-10 | sort, copy and paste pages in gallery mode | @reycn |
| 2026-11-10 | speed up ultra fast translation | @reycn |
| Platform | macOS | Windows | Linux |
|---|---|---|---|
| Screenshot | ![]() |
![]() |
![]() |
| Download link | GitHub Actions | GitHub Actions | GitHub Actions |
| Installation | Extract the macOS ZIP, move PDFMathReader.app to /Applications, and open it. |
Double-click PDFMathReader-win32-x64.exe (or the ia32 version for 32-bit Windows). |
Extract the .tar.gz for your CPU, then run ./PDFMathReader from its folder. |
| Additional notes | If macOS says the app is “damaged”, confirm the download is trusted, then run sudo xattr -dr com.apple.quarantine /Applications/PDFMathReader.app in Terminal. Enter your Mac login password when prompted (it is not displayed), then reopen the app. |
The portable app includes its runtime. Launching it registers the PDF Open with PDFMathReader menu; launch it again after moving the executable. | Choose the package matching your CPU architecture. |
bun.lock when changing dependencies.bun run build, then bun run test; CI scripts use node --test .github/scripts/*.test.*. Add focused regression coverage for behavior changes; see test priorities.bun run style:fix before committing. Husky automatically formats and checks staged files, blocking unresolved errors. Prettier/ESLint cover JS and Vue, Ruff covers Python, and swift-format covers Swift; see setup and rules.Install Bun 1.3.14 and Node.js 22.22.1 or newer. To run the desktop app from source:
bun install --frozen-lockfile bun run desktop
Build on the matching platform:
# macOS (requires a signing identity; add --unsigned to skip signing) bun run package:mac # Windows bun run package:win
Frontend libraries (Vue, MacVue, and Fluent UI) are build dependencies: Vite includes them in dist. Node dependencies used by the server or Electron main process remain runtime dependencies. Install with bun install --frozen-lockfile before building; a production-only install cannot build or package the app.
The About page includes GitHub Release update status, a manual check button, and an automatic check switch (enabled by default). Packaged apps check lazily after startup and every six hours; no published release is shown as a normal empty state. Stable version tags must use vX.Y.Z or X.Y.Z. Matching release assets use PDFMathReader-<platform>-<arch>.zip (macOS), .exe (Windows), or .tar.gz (Linux). Available updates open the matching download, or the release page when that asset is absent; installation remains manual.
The About page shows the application, installed kernels and UV versions. Each Vite build embeds dist/build-info.json with the package version and the latest ten conventional feat commits (including scoped and breaking features); release CI checks out the full Git history. The installed app reads this snapshot without Git or network access. Builds from a source archive without Git show an empty update list.
The default Electron package bundles Express and PDF utilities into the backend/main scripts, retaining their licenses. It copies only external runtime modules into the staged node_modules; native PDF Inspector bindings and the PDF.js/DOMMatrix fallback for unsupported native targets remain available. Electron itself and packaging tools are supplied by the build toolchain.
For browser development, set OPENAI_API_KEY, run bun run dev, and open 127.0.0.1:5173. Use OPENAI_MODEL to override the default model. Desktop environment variables can be loaded with Launch PDFMathReader.command.
bun run test
bun run buildThe application suite contains 29 risk-focused tests. See test priorities for retained coverage and the policy for adding cases.
PDFMathReader uses Vue 3 and PDF.js for the reader, Electron for the desktop app, and Express for the local backend. Vite supports frontend development and builds; pdf-lib handles PDF manipulation.
Each desktop window has its own renderer and backend running in an Electron utility process. The main process manages windows, menus, credentials, recent documents, and preferences. A sandboxed preload provides desktop IPC; backend requests use authenticated HTTP on 127.0.0.1.
Rendering, layout analysis, and translation run independently. Pages and thumbnails are virtualized, PDF.js and layout analysis load on demand, and rendering caches have bounded memory use. Each document is uploaded to its local backend once; subsequent requests use its document ID. Outdated translation work is cancelled when the document, language, or kernel changes.
Translation text is cached across documents and app restarts. Identical requests to the same service and model reuse the saved result, including requests from the math translation kernels. Languages, prompts, and other translation options remain part of the cache key. Concurrent identical requests share one service call; failed or empty responses are not cached.
| Setting | Engine | Output |
|---|---|---|
| Ultra fast | PDF Inspector | Paragraph overlays on the original PDF |
| Fast | PDFMathTranslate | Translated PDF pages with formula preservation |
| Precise | PDFMathTranslate-next | Translated PDF pages with more detailed typesetting |
Experimental Jev paragraph continuation detection is available with Ultra fast and Fast. Fast combines confirmed adjoining fragments within the same column before translation and typesetting, keeping formulas in place. Uncertain or failed checks preserve separate fragments. Enabling it uses separate page caches so earlier unmerged output is regenerated.
Experimental: Settings → Experimental → Generate table of contents adds Edit → Generate Table of Contents, which builds a contents list locally for documents without bookmarks, with progress shown in the Contents sidebar. It parses a printed contents page (including dot leaders and right-aligned page numbers) and maps its page numbers to physical pages; if there is none, it infers headings from font sizes, numbering, and spacing. Nothing is sent anywhere. Scanned pages without a text layer are not supported, and generated contents are not saved with the document.
Experimental: Precise can instead translate through a remote zotero-pdf2zh server over HTTP (Settings → Experimental). PDFMathReader implements that server's HTTP protocol as a client; the server is not bundled and is optional. The remote kernel is used only when the server's /health check passes, otherwise the local Precise kernel runs. No API key is sent; the server uses its own translation service. Remote pages have no reading text layer, and the selected translation service and glossaries are not used for remotely translated pages.
PDF rendering and layout analysis stay local. Translation sends document text to OpenAI and may incur API charges. Fast and Precise run in separate app-managed Python environments installed with uv, and access OpenAI through the backend proxy. API keys remain outside the renderer.
Saved desktop keys are encrypted with Electron safeStorage and macOS Keychain protection. A saved key overrides OPENAI_API_KEY; clearing it restores the environment fallback. Saving is disabled when secure storage is unavailable.
Desktop data is stored in the app directory under ~/Library/Application Support/: credentials, recent documents, translation/layout caches, and kernel environments. Browser-development caches use .cache/translations/. Caches and temporary PDFs can contain document content; Clear on the start page removes recent-document history only.
In browser development, Express and Vite run in a standalone Node.js process. Native menus, desktop IPC, and secure desktop key storage are available only in the desktop app.
uv.The kernel of this work has been accepted by the Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations (EMNLP 2025).
Citation:
@inproceedings{ouyang-etal-2025-pdfmathtranslate,
title = "{PDFM}ath{T}ranslate: Scientific Document Translation Preserving Layouts",
author = "Ouyang, Rongxin and
Chu, Chang and
Xin, Zhikuang and
Ma, Xiangyao",
editor = {Habernal, Ivan and
Schulam, Peter and
Tiedemann, J{\"o}rg},
booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.emnlp-demos.71/",
pages = "918--924",
ISBN = "979-8-89176-334-0",
abstract = "Language barriers in scientific documents hinder the diffusion and development of science and technologies. However, prior efforts in translating such documents largely overlooked the information in layouts. To bridge the gap, we introduce PDFMathTranslate, the world{'}s first open-source software for translating scientific documents while preserving layouts. Leveraging the most recent advances in large language models and precise layout detection, we contribute to the community with key improvements in precision, flexibility, and efficiency. The work is open-sourced at https://github.com/byaidu/pdfmathtranslate with more than 222k downloads."
}
PDFMathReader is licensed under the GNU Affero General Public License, version 3. See LICENSE for the full text. Dependencies retain their respective licenses, including PDFMathTranslate, PDFMathTranslate-next, and zotero-pdf2zh (AGPL-3.0, optional remote kernel protocol).
Many thanks to OpenAI, Anthropic, Warp, Immersive Translate, and SiliconFlow for their support and Linux.Do for allowing us share the project.
PDFMathTranslate/PDFMathReader is a public repo on GitHub by PDFMathTranslate. Read scientific documents in your language, in realtime, on any platform. 在任何平台上用您的语言实时翻译和阅读科学文献。.
It declares the AGPL-3.0 license on GitHub.
Its maker tagged it for macOS, Windows and Linux, or as Docker or cross-platform. That is declared by the maker; Take My Repo has not tested it.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-17. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Visual Studio Code
Reverse engineer anything with agents, from app behavior down to native binaries.
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/PDFMathTranslate/PDFMathReaderTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.