PDFMathTranslate Bilingual PDF translation tool

PDFMathTranslate is an AI-powered tool for bilingual translation of scientific PDF papers, preserving formulas, charts, table of contents, and annotations intact . It supports multiple languages and integrates with translation services like Google, DeepL, Ollama, and OpenAI, offering CLI, GUI, and Docker deployment options . Released under the AGPL-3.0 license, the project features online demos and an active community, making it ideal for research, educational, and publication workflows.

PDFMathTranslate Bilingual PDF translation tool

Official website: https://pdf2zh.com/
Source code: https://github.com/Byaidu/PDFMathTranslate

Installation and Usage

Methods

For different use cases, we provide distinct methods to use our program:

1. UV install
  1. Python installed (3.10 <= version <= 3.12)

  2. Install our package:

    pip install uv
    uv tool install --python 3.12 pdf2zh
  3. Execute translation, files generated in current working directory:

    pdf2zh document.pdf
2. Windows exe
  1. Download pdf2zh-version-win64.zip from release page

  2. Unzip and double-click pdf2zh.exe to run.

3. Graphic user interface
  1. Python installed (3.10 <= version <= 3.12)

  2. Install our package:

pip install pdf2zh
  1. Start using in browser:

    pdf2zh -i
  2. If your browswer has not been started automatically, goto

    http://localhost:7860/

    PDFMathTranslate Bilingual PDF translation tool

See documentation for GUI for more details.

4. Docker
  1. Pull and run:

    docker pull byaidu/pdf2zh
    docker run -d -p 7860:7860 byaidu/pdf2zh
  2. Open in browser:

    http://localhost:7860/

For docker deployment on cloud service:

Deploy Deploy to Koyeb Deploy on Zeabur Deploy on Sealos
5. Zotero Plugin

See Zotero PDF2zh for more details.

6. Commandline
  1. Python installed (3.10 <= version <= 3.12)

  2. Install our package:

    pip install pdf2zh
  3. Execute translation, files generated in current working directory:

    pdf2zh document.pdf

Tip

docker pull ghcr.io/byaidu/pdfmathtranslate
docker run -d -p 7860:7860 ghcr.io/byaidu/pdfmathtranslate

Unable to install?

The present program needs an AI model(wybxc/DocLayout-YOLO-DocStructBench-onnx) before working and some users are not able to download due to network issues. If you have a problem with downloading this model, we provide a workaround using the following environment variable:

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

For PowerShell user:

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

If the solution does not work to you / you encountered other issues, please refer to frequently asked questions.

Libre Depot original article,Publisher:Libre Depot,Please indicate the source when reprinting:https://www.libredepot.top/5547.html

Like (0)
Libre DepotLibre Depot
Previous 3 hours ago
Next 3 hours ago

Related articles

Leave a Reply

Your email address will not be published. Required fields are marked *