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.zip

Installs 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".
203 chars✓ has a “when” trigger
Intermediate

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

You give it
Path to PDF file and target language
You get back
Translated Markdown file

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:

  1. 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.
  2. Extract Text: Use the extract_text.py script located in the scripts directory 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/python if applicable, or just python3 if dependencies are installed globally).
  3. 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.
  4. Save Output:
    • Write the translated content to a temporary text file (e.g., temp_translation.txt).
    • Use the generate_md.py script 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.

Examples

User: "Translate the file papers/deep_learning.pdf to Chinese."

Claude:

  1. Locates papers/deep_learning.pdf.
  2. Runs: python3 skills/pdf_translator/scripts/extract_text.py papers/deep_learning.pdf
  3. Translates the extracted text to Chinese.
  4. Writes translation to temp_translation.txt.
  5. Runs: python3 skills/pdf_translator/scripts/generate_md.py papers/deep_learning_translated.md deep_learning.pdf temp_translation.txt
  6. Removes temp_translation.txt.
  7. Responds: "I have translated the PDF and saved it to papers/deep_learning_translated.md."

User: "Help me read this manual.pdf"

Claude:

  1. Locates manual.pdf.
  2. Runs extraction script.
  3. 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

python3extract_text.py scriptgenerate_md.py script

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.

SkillInstallsUpdatedSafetyDifficulty
pdf-translator (this skill)203moReviewIntermediate
book-translation96moReviewBeginner
youtube-clipper116moReviewIntermediate
explore-references16moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry