AI Personal Learning
and practical guidance

PDFMathTranslate: Translation of academic papers, preservation of layout formatting, support for multiple translation services

General Introduction

PDFMathTranslate is an AI-based tool specialized in translating PDF scientific papers while preserving the original formatting. It supports multiple languages and translation services such as Google, DeepL, Ollama, and OpenAI. Users can utilize the tool through command line tools, interactive interfaces, or Docker deployments.

PDFMathTranslate: Translation of academic papers, preserving typographic formatting, supporting multiple translation services-1

Online experience: https://pdf2zh.com/


 

Function List

  • Complete retention of typography: The translated document retains its original layout, including formulas, charts, and table of contents.
  • Multiple Translation Services: Supports multiple translation services such as Google, DeepL, Ollama and OpenAI.
  • Multi-language support: Supports translations in multiple languages to meet different user needs.
  • command-line tool: Provides easy-to-use command line tools for quick translations.
  • interactive user interface (UI): Provides a friendly GUI interface for users who are not familiar with the command line.
  • Docker Deployment: Supports Docker deployment for easy running in the cloud or on local servers.
  • multithreaded translation: Support multi-threaded translation to improve translation efficiency.
  • Regular expression configuration: Supports configuration of translation rules using regular expressions with high flexibility.

 

Using Help

Installation and Usage

PDFMathTranslate offers three ways to use it: command line tool, interactive interface and Docker deployment.

Method 1: Command line tool

  1. Make sure Python (versions 3.8 to 3.12) is installed.
  2. Install the PDFMathTranslate package:
    pip install pdf2zh
    
  3. Use the command line tool to translate the documentation:
    pdf2zh document.pdf
    

Method 2: Interactive Interface

  1. Make sure Python (versions 3.8 to 3.12) is installed.
  2. Install the PDFMathTranslate package:
    pip install pdf2zh
    
  3. Launch the interactive interface in your browser:
    pdf2zh -i
    

    If your browser does not start automatically, please open it manually http://localhost:7860/

Method 3: Docker Deployment

  1. Pull and run the Docker image:
    docker pull byaidu/pdf2zh
    docker run -p 7860:7860 byaidu/pdf2zh
    
  2. Open http://localhost:7860/ in your browser

Advanced Options

  • Go to the Interaction screen:
    pdf2zh -i
    
  • Partial translation of the documentation:
    pdf2zh example.pdf -p 1
    
  • Specify the source and target languages:
    pdf2zh example.pdf -li en -lo zh
    
  • Select a translation service:
    pdf2zh example.pdf -s deepl
    
  • Multi-threaded translation:
    pdf2zh example.pdf -t 1
    
  • Use regular expressions to specify formula fonts and characters to be preserved:
    pdf2zh example.pdf -f "(MS.*)"
    
AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " PDFMathTranslate: Translation of academic papers, preservation of layout formatting, support for multiple translation services

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish