Agent skill · writing content · wshuyi
translate-pdf
Translate PDF documents to any language while preserving original structure, layout, and styling (colors, backgrounds, positions). Use when user wants to: (1) translate a PDF to another language, (2) convert PDF from one language to another, (3) create translated version of PDF document. Triggers: "translate PDF", "PDF翻译", "把PDF翻译成", "translate this PDF to Chinese/English/Japanese", "翻译成中文/英文
Why this skill is useful
Adds executable scripts for PDF translation that preserve layout and styling, which are not commonly available in public tools.
What it needs
Requires python installed locally. About 1k tokens when loaded. Last updated 2026-01-01. 20 stars on the source repository.
What this skill does
PDF Translation Translate PDF text while preserving structure, colors, and background styling. Workflow Step 1: Extract texts 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: Save as translations.json next to input PDF. Step 3: Apply translations 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: filenameEN.pdf, filenameZH.pdf, filenameJA.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
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills wshuyi/translate-pdf