Techniques for Translating PDFs
• By vski5 • 1 minute readFirst Approach
Step 1: Reverse PDF to LaTeX using doc2x or mathpix
- Open doc2x or mathpix, and upload the PDF.
- Choose to export in LaTeX format (Markdown and HTML are also supported).
Step 2: Quickly translate using deepseek API
- In the gpt_academic virtual terminal, upload the LaTeX file.
- Use the deepseek API for translation; translating over 400 pages costs just $1.
Step 3: Generate Chinese PDF
- Open the translated file in a LaTeX editor (e.g., Overleaf).
- After verifying everything is correct, generate the PDF.
Second Approach
Step 1: Reverse PDF to HTML using doc2x or mathpix
- Open doc2x or mathpix, and upload the PDF.
- Choose to export in HTML format.
Step 2: Quickly translate using the Immersive Translation plugin
Step 3: Use the browser’s print function to generate the PDF
graph TD
subgraph First Approach
A1[Reverse PDF to LaTeX using doc2x or mathpix]
A2[Upload PDF]
A3[Choose to export in LaTeX format]
B1[Quickly translate using deepseek API]
B2[Upload LaTeX file to gpt_academic virtual terminal]
B3[Use deepseek API for translation]
C1[Generate Chinese PDF]
C2[Open the translated file in a LaTeX editor]
C3[Verify and generate the PDF]
A1 --> A2 --> A3 --> B1 --> B2 --> B3 --> C1 --> C2 --> C3
end
subgraph Second Approach
D1[Reverse PDF to HTML using doc2x or mathpix]
D2[Upload PDF]
D3[Choose to export in HTML format]
E1[Quickly translate using the Immersive Translation plugin]
F1[Use browser's print function to generate the PDF]
D1 --> D2 --> D3 --> E1 --> F1
end