pdf_translator

pdf_translator is a skill for Claude Code, Codex from ForceInjection/forceinjection.github.io. It costs 47 tokens per session (548 once invoked), scanned A, a copy of pdf_translator, Apache-2.0.

A document skill that extracts text from PDF files, translates it, and saves the result as Markdown.

In plain words
What is it for?
Use it to translate a PDF into a chosen language while retaining its structure in a Markdown file.
Why use it?
It avoids manually copying PDF text and reformatting the translated content into a usable document.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate a PDF into a chosen language while retaining its structure in a Markdown file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forceinjection/forceinjection.github.io/pdf_translator
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 ForceInjection/forceinjection.github.io --skill pdf_translator
Clone the repo
git clone --depth 1 https://github.com/ForceInjection/forceinjection.github.io

Made for: Claude Code, Codex.

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 pdf_translator

README.md
[![agentmods](https://agentmods.dev/badge/skills/forceinjection/forceinjection.github.io/pdf_translator/github.svg)](https://agentmods.dev/skills/forceinjection/forceinjection.github.io/pdf_translator)
Your own site
<a href="https://agentmods.dev/skills/forceinjection/forceinjection.github.io/pdf_translator"><img src="https://agentmods.dev/badge/skills/forceinjection/forceinjection.github.io/pdf_translator/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 pdf_translator

Your own site · 80×15
<a href="https://agentmods.dev/skills/forceinjection/forceinjection.github.io/pdf_translator"><img src="https://agentmods.dev/badge/skills/forceinjection/forceinjection.github.io/pdf_translator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 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.
Origin 100% copy Near-identical to another mod 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.00047 $0.00548
Opus 5.5 $0.00019 $0.00219
Sonnet 5.5 $0.00009 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured 1mo ago against content hash e7fce12464f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf_translator 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/create_test_pdf.py, scripts/extract_text.py, scripts/generate_md.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.

Origin

This is a copy

100% identical to pdf_translator — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

08_agentic_system/agent_skills/pdf_translator/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 49 lines

Files

What ships with it

8 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. 1mo ago First seen · 49 lines · 47 tokens per session scan A e7fce12464f0

Subscribe to this mod's changes

pdf_translator is a skill published in the GitHub repository ForceInjection/forceinjection.github.io (88 stars, last pushed 15d ago), licensed Apache-2.0. It adds 47 tokens to every session and 548 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to pdf_translator, differing in 0 lines, and is treated as a copy.

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

pdf

Inspect, extract, assemble, generate, render, OCR, and validate PDF files with local tools while treating active content and external services as explicit security boundaries.

holon-run/holon · 33 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

Not legal advice. Generate Hebrew documents (PDF, DOCX/Word, PPTX) with correct RTL 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…

skills-il/localization · 242 tokens