pdf_translator

pdf_translator is a skill for Claude Code, Codex from ForceInjection/AI-fundamentals. It costs 47 tokens per session (548 once invoked), scanned A, original, Apache-2.0.

A workflow that extracts text from a PDF, translates it into a chosen language, and saves the translation as a Markdown file. Markdown is a plain-text format commonly used for structured documents.

In plain words
What is it for?
Use it to translate PDF documents while keeping headings and paragraphs in a similar Markdown structure.
Why use it?
It avoids manually copying PDF text, translating it, and rebuilding the document structure by hand.

Skill for Claude CodeCodex

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

Good fit Use it to translate PDF documents while keeping headings and paragraphs in a similar Markdown structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forceinjection/ai-fundamentals/pdf_translator
About the project

AI Fundamentals is a learning resource about the foundations and infrastructure behind artificial intelligence, including GPU architecture, CUDA programming, large language models, AI systems, and related operations. It is intended for AI engineers, system architects, GPU developers, application developers, and researchers. The catalogue add-ons support learning or working with these AI infrastructure topics.

ForceInjection/AI-fundamentals · 2,578 stars · on GitHub · forceinjection.github.io

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/AI-fundamentals --skill pdf_translator
Clone the repo
git clone --depth 1 https://github.com/ForceInjection/AI-fundamentals

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/ai-fundamentals/pdf_translator.svg)](https://agentmods.dev/skills/forceinjection/ai-fundamentals/pdf_translator)
Your own site
<a href="https://agentmods.dev/skills/forceinjection/ai-fundamentals/pdf_translator"><img src="https://agentmods.dev/badge/skills/forceinjection/ai-fundamentals/pdf_translator.svg" alt="Measured on agentmods" 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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 $0.00023 $0.00274
Sonnet 5 $0.00009 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured 8d ago against content hash e7fce12464f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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

Copies of this mod

1 near-identical copy found in the catalogue:

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. 8d 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/AI-fundamentals (2,578 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 548 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

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

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

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

Generate Hebrew documents (PDF, DOCX/Word, PPTX) with correct right-to-left 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 .docx in…

skills-il/localization · 247 tokens

pdf-translate

Translate local PDFs, including safe prose on image-only scans, into Vietnamese or another supported Latin-script language while preserving layout, formulas, tables, and figures. Use for PDF translation, OCR-assisted scan translation, batch translation, terminology-sensitive handoff translation, or diagnosing…

breslee1707/VI-Translate · 77 tokens

hebrew-ocr-forms

Process and extract data from scanned Israeli government forms using OCR. Supports Tabu (land registry), Tax Authority forms, Bituach Leumi documents, and other official Israeli paperwork. Use when user asks to OCR Hebrew documents, extract data from Israeli forms, "lesarek tofes", parse Tabu extract, read scanned tax…

skills-il/localization · 114 tokens