Skip to content

WebUI

Getting Started > Installation > WebUI (current)


Use PDFMathTranslate via Webui

How to open the WebUI page:

There are several methods to open the WebUI interface. If you are using Windows, please refer to this article;

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

  2. Install our package:

  3. Start using in browser:

    pdf2zh_next --gui
    
  4. If your browswer has not been started automatically, goto

    http://localhost:7860/
    

    Drop the PDF file into the window and click Translate.

  5. If you deploy PDFMathTranslate with docker, and you are using ollama as PDFMathTranslate's backend LLM, you should fill "Ollama host" with

http://host.docker.internal:11434

Environment Variables

You can set the source and target languages using environment variables:

  • PDF2ZH_LANG_FROM: Sets the source language. Defaults to "English".
  • PDF2ZH_LANG_TO: Sets the target language. Defaults to "Simplified Chinese".

Preview