专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
ghcr.io/byaidu/pdfmathtranslate

ghcr.io/byaidu/pdfmathtranslate:1.9.2.rc0

ghcr.iolinux/amd641.9.2.rc0大小: 未知更新于 2026年5月23日

特别感谢:

Warp,为多AI代理编码而构建,支持macOS、Linux和Windows

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

PDFMathTranslate

  1. 功能介绍

保留布局的科学PDF文档翻译。

  • 📊 保留公式、图表、目录和注释。
  • 🌐 支持多种语言和多样化翻译服务。
  • 🤖 提供命令行工具、交互式用户界面和Docker部署方式。
  1. 最近更新
  • [2026年3月23日] 实验性支持v2.0翻译内核,采用隔离环境(--mode precise)。(贡献者:https://github.com/reycn%EF%BC%89
  • [2026年3月22日] 支持MiniMax(PR贡献者:https://github.com/octo-patch%EF%BC%89
  • [2026年3月22日] 修复OpenAI相关问题(PR贡献者:https://github.com/samqin123%EF%BC%89
  • [2026年3月22日] 修复HTTP相关问题(PR贡献者:https://github.com/soukouki%EF%BC%89
  • [2026年3月22日] 优化mac和OONX平台的模型加载速度、GUI启动速度、版本打印功能及持续集成。(贡献者:https://github.com/reycn%EF%BC%89
  • [2025年5月9日] pdf2zh 2.0预览版 https://github.com/Byaidu/PDFMathTranslate/issues/586%EF%BC%9AWindows ZIP文件和Docker镜像现已可用。

[!NOTE]

2.0版本已迁移至组织下的新仓库:https://github.com/PDFMathTranslate/PDFMathTranslate-next

2.0正式版已发布。

  1. 使用方法 🌟 3.1 在线服务 🌟

您可以通过以下任一演示体验本应用:

  • 公共免费服务:在线使用,无需安装 (推荐)。
  • Immersive Translate - BabelDOC:提供免费使用额度,详情请参考页面FAQ部分 (推荐)。
  • HuggingFace托管演示
  • ModelScope托管演示:无需安装。

注意:演示的计算资源有限,请避免滥用。

3.2 本地安装

针对不同使用场景,我们提供多种本地使用方式:

3.2.1 Python:使用uv安装

  1. 已安装Python(3.11

3.2.2 Python:使用pip安装

  1. 已安装Python(3.11

3.3.3 Python:图形用户界面

  1. 已安装Python(3.11

更多详情请参见GUI文档。

3.2.4 应用程序:Windows系统

  1. 从https://github.com/Byaidu/PDFMathTranslate/releases%E4%B8%8B%E8%BD%BDpdf2zh-version-win64.zip

  2. 解压并双击pdf2zh.exe运行。

[!NOTE]

  • 如果在Windows系统中下载后无法打开文件,请安装vc_redist.x64.exe后重试。

3.2.5 参考文献管理工具:Zotero插件

详情请参见https://github.com/guaguastandup/zotero-pdf2zh%E3%80%82

3.2.6 Docker:容器化部署

  1. 拉取并运行镜像:
docker pull byaidu/pdf2zh
docker run -d -p 7860:7860 byaidu/pdf2zh
  1. 在浏览器中打开:

云服务Docker部署说明:

[!NOTE]

  • 如果无法访问Docker Hub,请尝试https://github.com/Byaidu/PDFMathTranslate/pkgs/container/pdfmathtranslate%E4%B8%8A%E7%9A%84%E9%95%9C%E5%83%8F%EF%BC%9A
> docker pull ghcr.io/byaidu/pdfmathtranslate
> docker run -d -p 7860:7860 ghcr.io/byaidu/pdfmathtranslate
>

3.2.* 安装时网络问题的解决方案

特定地区用户在加载AI模型时可能遇到网络困难。当前程序依赖AI模型(wybxc/DocLayout-YOLO-DocStructBench-onnx),部分用户因网络问题无法下载该模型。

若遇到模型下载问题,可通过以下环境变量解决:

set HF_ENDPOINT=https://hf-mirror.com

PowerShell用户:

$env:HF_ENDPOINT = https://hf-mirror.com

如果上述解决方案无效或遇到其他问题,请参考https://github.com/Byaidu/PDFMathTranslate/wiki#-faq--%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E3%80%82

  1. 技术细节

4.1 高级选项

在命令行执行翻译命令,将在当前工作目录生成翻译文档example-mono.pdf和双语文档example-dual.pdf。默认使用Google翻译服务。更多支持的翻译服务请参见https://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#services%E3%80%82

下表列出所有高级选项供参考:

选项功能示例
files本地文件pdf2zh ~/local.pdf
links在线文件pdf2zh http://arxiv.org/paper.pdf
-i进入GUIpdf2zh -i
-phttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#partialpdf2zh example.pdf -p 1
-lihttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#languagespdf2zh example.pdf -li en
-lohttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#languagespdf2zh example.pdf -lo zh
-shttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#servicespdf2zh example.pdf -s deepl
-thttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#threadspdf2zh example.pdf -t 1
-o输出目录pdf2zh example.pdf -o output
-f, -chttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#exceptionspdf2zh example.pdf -f "(MS.*)"
-cp兼容模式pdf2zh example.pdf --compatible
--skip-subset-fontshttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#font-subsetpdf2zh example.pdf --skip-subset-fonts
--ignore-cachehttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#cachepdf2zh example.pdf --ignore-cache
--share公共链接pdf2zh -i --share
--authorizedhttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#authpdf2zh -i --authorized users.txt [auth.html]
--prompthttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#promptpdf2zh --prompt [prompt.txt]
--onnx[使用自定义DocLayout-YOLO ONNX模型]pdf2zh --onnx [onnx/model/path]
--serverport[自定义WebUI端口]pdf2zh --serverport 7860
--dir[批量翻译]pdf2zh --dir /path/to/translate/
--confighttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#cofigpdf2zh --config /path/to/config/config.json
--serverport[自定义Gradio服务器端口]pdf2zh --serverport 7860
--mode翻译模式:fast(默认,v1)或precise(v2,实验性,需pdf2zh_next子模块)pdf2zh --mode precise example.pdf
--babeldoc使用实验性后端https://funstory-ai.github.io/BabelDOC/%E8%BF%9B%E8%A1%8C%E7%BF%BB%E8%AF%91pdf2zh --babeldoc -s openai example.pdf
--mcp启用MCP标准输入输出模式pdf2zh --mcp
--sse启用MCP SSE模式pdf2zh --mcp --sse

详细说明请参考高级用法文档。

4.2 下游开发 下游应用开发请参考API详情文档,包含以下内容:

  • Python API:如何在其他Python程序中使用本程序
  • HTTP API:如何与安装本程序的服务器通信

4.3 两个主要分支的区别

  • https://github.com/Byaidu/PDFMathTranslate%EF%BC%9A%E5%BD%93%E5%89%8D%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8E%9F%E5%A7%8B%E9%A1%B9%E7%9B%AE%EF%BC%8C%E7%94%A8%E4%BA%8E%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%E5%8F%91%E5%B8%83%E3%80%82

  • https://github.com/PDFMathTranslate/PDFMathTranslate-next%EF%BC%9A%E5%8C%85%E5%90%ABWeb UI和额外功能的分支。该分支处理大量边缘情况,提升PDF兼容性,优化跨列和跨页语义一致性、动态缩放及动态缩放一致性等翻译质量改进。但该分支仅用于开发,不解决兼容性问题,也不面向社区贡献。

  1. 项目信息 5.1 引用

本工作已被《2025年自然语言处理经验方法会议论文集:系统演示》(EMNLP 2025)收录。

引用格式:

@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."
}

5.2 致谢

  • Immersive Translation每月为该项目的活跃贡献者提供Pro会员兑换码,详情参见:https://github.com/funstory-ai/BabelDOC/blob/main/docs/CONTRIBUTOR_REWARD.md

  • 新后端:https://github.com/funstory-ai/BabelDOC

  • 文档合并:https://github.com/pymupdf/PyMuPDF

  • 文档解析:https://github.com/pdfminer/pdfminer.six

  • 文档提取:https://github.com/opendatalab/MinerU

  • 文档预览:https://github.com/freddyaboulton/gradio-pdf

  • 多线程翻译:https://github.com/SUSYUSTC/MathTranslate

  • 布局解析:https://github.com/opendatalab/DocLayout-YOLO

  • 文档标准:https://zxyle.github.io/PDF-Explained/%E3%80%81PDF Cheat Sheets

  • 多语言字体:https://github.com/satbyy/go-noto-universal

5.3 贡献者

贡献方法详情请参考https://github.com/Byaidu/PDFMathTranslate/wiki/Contribution-Guide---%E8%B4%A1%E7%8C%AE%E6%8C%87%E5%8D%97%E3%80%82

5.4 星标历史

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

轩辕镜像支持 docker push 上传本地镜像吗?

不支持 push

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

为什么拉取镜像的 :latest 标签,拿到的往往不是「最新」镜像?

latest 与「最新」

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ghcr.io/byaidu/pdfmathtranslate
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单。官方公众号:源码跳动。官方技术交流群:51517718。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单。官方公众号:源码跳动。官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.