translate-pdf

translate-pdf is a skill for Claude Code from wshuyi/translate-pdf-skill. It costs 100 tokens per session (410 once invoked), scanned A, original, MIT.

A tool for translating PDF documents while preserving their text layout, colors, backgrounds, and styling.

In plain words
What is it for?
Creating translated PDF versions in different languages while retaining the original document's structure and appearance.
Why use it?
It avoids rebuilding a translated document from scratch and provides a workflow for extracting text, preparing translations, and applying them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the translate-pdf plugin — 1 skill shipped together

Good fit Creating translated PDF versions in different languages while retaining the original document's structure and appearance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wshuyi/translate-pdf-skill/translate-pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wshuyi/translate-pdf-skill --skill translate-pdf
Clone the repo
git clone --depth 1 https://github.com/wshuyi/translate-pdf-skill

Made for: Claude Code.

Or install translate-pdf, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for translate-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/wshuyi/translate-pdf-skill/translate-pdf/github.svg)](https://agentmods.dev/skills/wshuyi/translate-pdf-skill/translate-pdf)
Your own site
<a href="https://agentmods.dev/skills/wshuyi/translate-pdf-skill/translate-pdf"><img src="https://agentmods.dev/badge/skills/wshuyi/translate-pdf-skill/translate-pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for translate-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/wshuyi/translate-pdf-skill/translate-pdf"><img src="https://agentmods.dev/badge/skills/wshuyi/translate-pdf-skill/translate-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 15 Feb 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.00410
Opus 5 $0.00050 $0.00205
Sonnet 5 $0.00020 $0.00082
Haiku 4.5 $0.00010 $0.00041

Measured 11d ago against content hash 39724b0032dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

translate-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_texts.py, scripts/translate_pdf.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/translate-pdf/SKILL.md · 60 lines

What it actually says

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
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 60 lines · 100 tokens per session scan A 39724b0032dd

Subscribe to this mod's changes

translate-pdf is a skill published in the GitHub repository wshuyi/translate-pdf-skill (22 stars, last pushed 8mo ago), licensed MIT. It adds 100 tokens to every session and 410 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

translate-book

Translate books (PDF/DOCX/EPUB) into any language using parallel sub-agents. Converts input -> Markdown chunks -> translated chunks -> HTML/DOCX/EPUB/PDF.

deusyu/translate-book · 42 tokens

pdf_translator

Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document or asks to "convert PDF to Chinese".

ForceInjection/AI-fundamentals · 47 tokens

docutranslate

Use when translating documents locally via LLM — PDF, Word, Excel, Markdown, SRT subtitles with format preservation. DocuTranslate: LLM-powered multi-format local file translation tool with MCP server support.

znlgis/opengis-skills · 47 tokens

lov-academic-translator

A tool for translating English research papers, journal or conference articles, arXiv papers, and technical PDFs into Chinese PDFs or publishable Chinese Markdown. It can preserve requested images, formulas, page matching, and layout details.

lovstudio/skills · 87 tokens

hebrew-document-generator

Generate Hebrew documents (PDF, DOCX/Word, PPTX) with correct right-to-left layout, mixed Hebrew-and-English bidi handling, and Hebrew typography. Use whenever the output is a Hebrew or mixed Hebrew/English Word document, Hebrew PDF, or Hebrew PowerPoint ("Hebrew Word document", "מסמך Word בעברית", "create a .docx in…

skills-il/localization · 247 tokens

pdf-translate

Translate local PDFs, including safe prose on image-only scans, into Vietnamese or another supported Latin-script language while preserving layout, formulas, tables, and figures. Use for PDF translation, OCR-assisted scan translation, batch translation, terminology-sensitive handoff translation, or diagnosing…

breslee1707/VI-Translate · 77 tokens