T
translate-pdf
by @wshuyiv
4.2(33)
将PDF文档翻译成任何语言,同时保留原始结构、布局和样式。,AI Agent Skill,提升工作效率和自动化能力
安装方式
npx skills add wshuyi/translate-pdf-skill --skill translate-pdfcompare_arrows
Before / After 效果对比
1 组使用前
翻译PDF文档时,手动复制粘贴耗时巨大,且容易破坏原文布局和样式。翻译后需要大量排版工作。
使用后
自动将PDF文档翻译成指定语言,同时完美保留原始结构和样式。显著提升了文档翻译效率和质量。
SKILL.md
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
用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量708
评分4.2 / 5.0
版本
更新日期2026年5月23日
对比案例1 组
用户评分
4.2(33)
5
18%
4
52%
3
27%
2
3%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
时间线
创建2026年3月16日
最后更新2026年5月23日