pdf-translator
Extracts and translates text from PDF files, outputting the result as a Markdown file.
Install
mkdir -p .claude/skills/pdf-translator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3124" && unzip -o skill.zip -d .claude/skills/pdf-translator && rm skill.zipInstalls to .claude/skills/pdf-translator
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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".Key capabilities
- →Extract text from PDF files
- →Translate text to target language
- →Format content as Markdown
- →Generate metadata for translated files
How it works
The skill extracts text from a PDF using a Python script, translates the content, and uses a second script to generate a structured Markdown file.
Inputs & outputs
When to use pdf-translator
- →Translate technical documentation from PDF
- →Convert multilingual PDF manuals to editable Markdown
- →Localize project specifications
About this skill
PDF Translator Skill
Instructions
Follow these steps to translate a PDF file:
- Identify the PDF File: Confirm the path to the PDF file the user wants to translate. If the path is relative, resolve it to an absolute path.
- Extract Text: Use the
extract_text.pyscript located in thescriptsdirectory of this skill to extract text from the PDF.- Command:
python3 skills/pdf_translator/scripts/extract_text.py <path_to_pdf> - Note: Ensure you are using the correct python environment (e.g.,
.venv/bin/pythonif applicable, or justpython3if dependencies are installed globally).
- Command:
- Translate Content:
- Read the output from the extraction step.
- Translate the extracted text into the target language requested by the user (default to the user's primary language or English if ambiguous).
- Maintain the original structure (headings, paragraphs) as much as possible using Markdown formatting.
- Save Output:
- Write the translated content to a temporary text file (e.g.,
temp_translation.txt). - Use the
generate_md.pyscript to create the final Markdown file with metadata. - Command:
python3 skills/pdf_translator/scripts/generate_md.py <output_path> <original_filename> <temp_translation_file> - Filename format:
<original_filename>_translated.md. - Notify the user of the output file location.
- Clean up the temporary text file.
- Write the translated content to a temporary text file (e.g.,
Examples
User: "Translate the file papers/deep_learning.pdf to Chinese."
Claude:
- Locates
papers/deep_learning.pdf. - Runs:
python3 skills/pdf_translator/scripts/extract_text.py papers/deep_learning.pdf - Translates the extracted text to Chinese.
- Writes translation to
temp_translation.txt. - Runs:
python3 skills/pdf_translator/scripts/generate_md.py papers/deep_learning_translated.md deep_learning.pdf temp_translation.txt - Removes
temp_translation.txt. - Responds: "I have translated the PDF and saved it to
papers/deep_learning_translated.md."
User: "Help me read this manual.pdf"
Claude:
- Locates
manual.pdf. - Runs extraction script.
- Translates/Summarizes based on user intent.
When not to use it
- →When the PDF contains only images without embedded text
- →When the document is highly sensitive or confidential
Prerequisites
Limitations
- →Requires local Python environment setup
- →Translation quality depends on the underlying translation engine
How it compares
It automates the extraction and formatting process, maintaining document structure, rather than requiring manual copy-pasting.
Compared to similar skills
pdf-translator side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pdf-translator (this skill) | 20 | 3mo | Review | Intermediate |
| book-translation | 9 | 6mo | Review | Beginner |
| youtube-clipper | 11 | 6mo | Review | Intermediate |
| explore-references | 1 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
book-translation
f
Translate "The Interactive Book of Prompting" chapters and UI strings to a new language
youtube-clipper
op7418
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
explore-references
LibPDF-js
Research how a feature works in reference libraries
website-maintainer
yamadashy
Use this skill when working on the Repomix documentation website in `website/` directory, including VitePress configuration, multi-language content, or translation workflows.
g2-translation-guidelines
antvis
Guidelines for translating G2 documentation, including terminology consistency, hyperlink adjustments, and file naming conventions for multilingual documentation. Use when need to translate documents.
material-component-doc
bytedance
用于 FlowGram 物料库组件文档撰写的专用技能,提供组件文档生成、Story 创建、翻译等功能的指导和自动化支持