Skip to content
Skills Library
Documents & office · Conversion & formats

pdf_translator

/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".

Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
3
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 3 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/create_test_pdf.py, scripts/extract_text.py, scripts/generate_md.py

What it does and when to use it

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

Triggers from the description

convert PDF to Chinese
Original author description

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

How it works

  1. Instructions
  2. Examples
Original SKILL.md headings · 45 lines, 265 words
SKILL.md preview
---
name: pdf_translator
description: 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".
---

# 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.
Files in this package (9)
  • README.md 1 KB
  • SKILL.md 2 KB
  • requirements.txt 1 KB
  • test_output.md 1 KB
  • test_sample.pdf 2 KB
  • references/api_guide.md 1 KB
  • scripts/create_test_pdf.py 1 KB
  • scripts/extract_text.py 1 KB
  • scripts/generate_md.py 2 KB

Versions

The database has no other skills named pdf_translator.

Database snapshot: 13.11.2026 · package version f669fe7513c1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100md-to-pdf
    Convert any markdown file to a clean PDF. Use when asked to make a PDF from a .md file, export a document, or convert markdown to PDF.
  • 90omatranslate
    Translate passages into another language with Omatranslate, the PDF reading companion, or read the app's session so their translations can be exported. Use for ANY request to translate text, read a foreign-language PDF, or produce a Markdown file of translations.
  • 90translate
    Translate documents, files, or text between languages. Use when the user asks to translate a PDF, document, article, file, or any text content into another language. Trigger phrases include "translate this", "翻译", "翻訳", "번역", "help me translate", "translate to English/Chinese/Japanese/etc.
  • 95do.translate-markdown
    Translate Markdown documents to a target language with checkpointed completeness, glossary consistency, and structural verification. Use when the user asks to translate Markdown, notes, documentation, or long structured text while preserving code, links, math, wikilinks, and formatting.
  • 100pdf
    Process PDF files - extract text, create PDFs, merge documents. Use when user asks to read PDF, create PDF, or work with PDF files.
  • 100markdown-to-pdf
    Convert a markdown file to PDF using mistune + reportlab. Use when the user wants to convert a .md file to PDF, or when another skill needs to produce a PDF from markdown output.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.