Translate Pdf
Translate PDFs into any language while keeping original layout, colors, backgrounds, and positions intact.
- CCM score
- 52 of 100
- skills.sh installs
- 1.2K
- GitHub stars
- 24
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a three-step flow: extract text strings, write a JSON translation map, then apply the translations to produce a new PDF
- Includes
extract_texts.pyandtranslate_pdf.py, with a--fontoption for Latin, Simplified and Traditional Chinese, Japanese, and Korean - Appends a language suffix to output filenames such as
_EN,_ZH, or_JAand scales CJK text to 90% for fit - Designed for requests to translate a PDF into another language, including Chinese, English, and Japanese triggers
Install
$ npx -y skills add wshuyi/translate-pdf-skill --skill translate-pdf -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PDF Translation
Translate PDF text while preserving structure, colors, and background styling.
Workflow
Step 1: Extract texts
python {skill_path}/scripts/extract_texts.py <input.pdf>
Review output to see all unique text strings in the PDF.
Step 2: Create translation mapping
Translate each text to target language. Create JSON file:
{
"Original Text 1": "Translated 1",
"Original Text 2": "Translated 2"
}
Save as translations.json next to input PDF.
Step 3: Apply translations
python {skill_path}/scripts/translate_pdf.py <input.pdf> translations.json <output.pdf> --font <fontname>
Font options:
| Font | Language |
|---|---|
helv | Latin (English, Spanish, Portuguese, French, German, etc.) |
china-ss | Simplified Chinese |
china-ts | Traditional Chinese |
japan | Japanese |
korea | Korean |
Output naming
Append language suffix: filename_EN.pdf, filename_ZH.pdf, filename_JA.pdf
Tips
- Keep proper nouns, abbreviations, technical terms unchanged when appropriate
- CJK fonts auto-scale to 90% for better fit
- Use transparent fill to preserve original background colors
Details
- Repository
- github.com/wshuyi/translate-pdf-skill
- Categories
- Office Files & Slides, Writing & Content
- First seen
- Apr 16, 2026
Similar to Translate Pdf
More Office Files & Slidestranslate-bookdeusyu/translate-book2.1K installsTranslate entire books from PDF, DOCX, or EPUB into any language via parallel sub-agents and Markdown chunks.
pdf-to-docxclaude-office-skills/skills6.3K installsConverts PDF files to editable Word documents using pdf2docx, preserving layout, tables, and images for editing.
smart-ocrclaude-office-skills/skills9K installsText extraction from images and scanned documents using PaddleOCR, with position and confidence data.
ocrmr-shaper/opencode-skill-hybrid-ocr476 installsText extraction from images and PDFs that supports Chinese, English, and over 100 languages.
pdf-convertertanis90/pdf-converter-mineru9.7K installsConvert PDFs, images, and Office files to Markdown, with optional OCR and full-fidelity extraction.