PDFMathTranslate
PDFMathTranslate/PDFMathTranslateAI 已审核
RepoPicks Radar 检查于
PDFMathTranslate 是什么?
PDFMathTranslate(pdf2zh)把 PDF 文档翻译成另一种语言,同时保留原来的排版:公式、图表、表格、目录和注释都留在原位,还可以生成一份中英对照的双语文件。它是为学术论文设计的。在 Windows 上,你只需解压发行版并双击 pdf2zh.exe;在 Mac 和 Linux 上用 pip 安装或运行 Docker 镜像;作者还提供免费的在线页面。翻译默认走 Google,也可以选择 DeepL、OpenAI、Azure 以及本地的 Ollama 模型。
PDFMathTranslate 免费开源(AGPL-3.0),可以替代 DeepL Pro、Adobe Acrobat和Mathpix。
PDFMathTranslate 安装有多容易?
A · 下载即用 · Windows
- Windows A
- macOS C
- Linux C
- Web A
Windows 和网页版都是 A 级。在 Windows 上,你要 "Download pdf2zh-version-win64.zip from release page"(308 MB,带 assets 的是 521 MB),"Unzip and double-click `pdf2zh.exe` to run",所有东西都打包好了;README 只提醒有些电脑要先装微软的 vc_redist.x64.exe。在网页上,作者维护着一个免费服务 pdf2zh.com,还有 Hugging Face 和 ModelScope 的页面。macOS 和 Linux 是 C 级:没有现成的文件,你得先装 Python 3.11 或 3.12,再 `pip install pdf2zh`,然后运行 `pdf2zh -i` 打开 http://localhost:7860/ 这个页面。
PDFMathTranslate 的 GitHub 数据
- 星标
- 38,3492026年11月10日
- 下载量
- 147,915本周 1,403
- 增长
- +1797 天内新增星标
星标变化
事实
- 可运行于
- Windows, macOS, Linux, Web
- 需要安装
- 只需程序本身
- 从源码编译需要
- Python, Docker, NVIDIA 显卡
- 磁盘空间
- 521 MB–1.5 GB · 根据安装程序
- 账号或密钥
- OpenAI (only if you choose it as the translation service), DeepL, Azure Translator, Tencent Machine Translation
- 费用
- 免费 · 这个程序是免费的(AGPL-3.0 许可证),默认使用的 Google 服务不需要账号。如果改用 DeepL、OpenAI、Azure 或腾讯,就要为你翻译的内容向那个服务付费。
- 许可证
- AGPL-3.0 (Copyleft)
- GitHub 上的最近改动
- 2026年11月10日
PDFMathTranslate 的风险信号 (8)
- 注意你的文档会被发送到一个翻译服务
README 第 4.1 节写道:"Use Google as the default translation service",依赖里包括 googletrans、deepl、openai、azure-ai-translation-text 和 tencentcloud-sdk-python-tmt。所以默认情况下,你 PDF 里的文字会被发送到 Google,只有 ollama 和 xinference-client 这两个选项能让内容留在你自己的电脑上。
AI 审核
- 注意一个参数就能把页面公开到互联网上
选项表里列出了 `--share`,功能是 "Public link"(`pdf2zh -i --share`),这是 Gradio 的功能,会给出一个任何人都能打开的地址,而登录验证是另外需要单独打开的选项(`--authorized users.txt`)。Docker 的说明里也用 `docker run -d -p 7860:7860 byaidu/pdf2zh` 把界面公开出来。
AI 审核
- 注意现成的 Windows 安装文件停留在 2025 年 7 月
最新的发行版是 2025-07-11 发布的 v1.9.11,而最后一次提交是在 2026-11-08,pyproject.toml 里已经写着版本号 1.9.12。同一份 pyproject 在 `gradio>=6.16.0` 旁边有一条注释 "# >=6.16.0 fixes the gradio 5.x advisories (e.g. CVE-2026-28414)",这个修复不可能出现在十六个月前打包的版本里。
AI 审核
- 信息2.0 版本放在另一个仓库里
README 写道:"2.0 Moved to a new repository under the organization: PDFMathTranslate/PDFMathTranslate-next" 和 "Version 2.0 official release has been published",而第 4.3 节说这个仓库是 "the present and the original project for stable release",另一个分支 "is intended solely for development and does not address compatibility issues and is not designed for community-contributions"。两个在用同一个名字的项目都还活跃着。
AI 审核
- 信息首次使用时会下载排版模型和 OCR 数据
README 写道:"The current program relies on the AI model (`wybxc/DocLayout-YOLO-DocStructBench-onnx`)",在 OCR 模式下 "The first scanned page downloads the requested language data from Tesseract's `tessdata_fast` 4.1.0 release into `~/.cache/pdf2zh/tessdata/4.1.0`"。Windows 发行版有两个大小,308 MB 和 521 MB 的 "with-assets" 版,差的就是这部分内容。
AI 审核
- 信息建议用镜像站下载模型
针对 "network difficulties when loading the AI model" 的情况,README 建议设置 `set HF_ENDPOINT=https://hf-mirror.com`,这会从第三方镜像站而不是 Hugging Face 本身获取模型。
AI 审核
- 信息README 里有赞助商,也给贡献者提供奖励
README 开头是一条 Warp 赞助横幅,链接到 go.warp.dev/PDFMathTranslate,致谢部分写道 "Immersive Translation sponsors monthly Pro membership redemption codes for active contributors to this project"。Immersive Translate 的 BabelDOC 也是推荐的在线演示之一,还是这个项目的 "new backend"。
AI 审核
- 信息实验性模式,带有明确说明的限制
README 把 OCR、`--mode precise` 和 `--ultrafast` 标为实验性功能,并自己列出了限制:"The initial implementation targets white-background scans: partial scans on pages that already contain text are skipped, and handwritten text or inline equations may be recognized incorrectly",ultrafast 模式 "is best suited to PDFs that already contain native text; use normal mode for complex tables or formulas"。
AI 审核
证据以原始语言显示。
Radar 无法验证的 PDFMathTranslate 相关内容
- 翻译读起来效果怎样,因为具体措辞取决于你选的那个外部服务
- 排版在你自己的 PDF 上是否真的能保持住,尤其是扫描件、复杂表格和行内公式
- 每个翻译服务会保留你发送文本中的哪些内容
- 除了安装包测得的 521 MB 到 1.5 GB 之外,缓存模型和 OCR 数据之后实际占用的磁盘空间
- 2025 年的 Windows 构建版本是否还和已经往前走了十六个月的当前代码表现一致