pdf-processing

pdf-processing is a skill for Claude Code, Codex from dunialabs/mcp-servers. It costs 49 tokens per session (2,261 once invoked), scanned A, original, MIT.

A guide and set of code examples for working with PDF documents, including extracting content and changing files. PDF is a document format designed to preserve page layout across devices.

In plain words
What is it for?
Use it to extract text or tables, merge or split documents, fill forms, add watermarks, create PDFs, and encrypt or decrypt files.
Why use it?
It provides patterns for common PDF tasks without requiring you to work out the document-handling code from scratch.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dunialabs/mcp-servers/pdf-processing
Any agent
npx skills add dunialabs/mcp-servers --skill pdf-processing
Clone the repo
git clone --depth 1 https://github.com/dunialabs/mcp-servers

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-processing

README.md
[![agentmods](https://agentmods.dev/badge/skills/dunialabs/mcp-servers/pdf-processing.svg)](https://agentmods.dev/skills/dunialabs/mcp-servers/pdf-processing)
Your own site
<a href="https://agentmods.dev/skills/dunialabs/mcp-servers/pdf-processing"><img src="https://agentmods.dev/badge/skills/dunialabs/mcp-servers/pdf-processing.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.02261
Opus 5 $0.00024 $0.01130
Sonnet 5 $0.00010 $0.00452
Haiku 4.5 $0.00005 $0.00226

Measured 4d ago against content hash 93065041f6ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pdf-processing 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 4d ago.

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

mcp-skills/examples/skills/pdf-processing/SKILL.md · 370 lines

How it starts

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

PDF Processing

Comprehensive PDF manipulation guide with Python code examples and best practices.

About This Skill

This skill provides code references and implementation patterns for PDF processing tasks. It includes ready-to-use Python code snippets that Claude can adapt and write to your project when needed.

This is a reference skill, not an executable package. The example scripts in scripts/ directory serve as templates. Claude will read these examples and create appropriate code for your specific use case on the host machine.

Quick Reference

Task Script Example
Extract text extract_text.py python scripts/extract_text.py input.pdf output.txt
Extract tables extract_tables.py python scripts/extract_tables.py input.pdf output.csv
Merge PDFs merge_pdfs.py python scripts/merge_pdfs.py output.pdf file1.pdf file2.pdf
Split PDF split_pdf.py python scripts/split_pdf.py input.pdf output_dir/
Add watermark add_watermark.py python scripts/add_watermark.py input.pdf output.pdf "CONFIDENTIAL"
Encrypt/decrypt protect_pdf.py python scripts/protect_pdf.py encrypt input.pdf output.pdf password
Fill forms fill_form.py python scripts/fill_form.py fill input.pdf output.pdf data.json

Pre-built Scripts

All scripts are located in the scripts/ directory and include comprehensive error handling and help text.

1. Extract Text - extract_text.py

Extract text from PDF files with layout preservation and OCR support.

# Basic text extraction
python scripts/extract_text.py document.pdf output.txt

# Preserve layout
python scripts/extract_text.py document.pdf output.txt --layout

# Use OCR for scanned PDFs
python scripts/extract_text.py scanned.pdf output.txt --ocr

# View help
python scripts/extract_text.py --help

Features:

  • Layout preservation mode
  • OCR support for scanned documents
  • Progress reporting
  • UTF-8 encoding

Read the full file on GitHub · 370 lines

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. 4d ago First seen · 370 lines · 49 tokens per session scan A 93065041f6ab

Subscribe to this mod's changes

pdf-processing is a skill published in the GitHub repository dunialabs/mcp-servers (7 stars, last pushed 4mo ago), licensed MIT. It adds 49 tokens to every session and 2,261 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-31.

Related

Other skills, from other repositories

agent-output-formats

Convert the canonical markdown+JSON deliverable of any SfSkills runtime agent into Excel, PDF, CSV, Notion card, ServiceNow ticket, or similar downstream format without adding dependencies to the consumer's project. NOT for an Agentforce action's output — use agentforce/agent-actions. NOT for exporting Salesforce data…

PranavNagrecha/AwesomeSalesforceSkills · 79 tokens

agent-output-formats

Convert the canonical markdown+JSON deliverable of any SfSkills runtime agent into Excel, PDF, CSV, Notion card, ServiceNow ticket, or similar downstream format WITHOUT polluting the consumer's project with new dependencies or regenerating from the agent's source logic. NOT for authoring new agent output formats (use…

BanibrataChatterjee/AwesomeSalesforceSkills · 90 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as LaTeX, figures, seals, charts, headers/footers, multi-column layout and correct reading order. Trigger terms: 文档解析, 版面分析, 版面还原, 表格提取, 公式识别, 多栏排版, 扫描件结构化, 发票, 财报, 复杂 PDF, PDF转Markdown, 图表…

PaddlePaddle/PaddleOCR · 140 tokens

paper-reader

Use when user asks to "read paper", "analyze paper", "summarize paper", "读论文", "分析文献", "帮我看一下这篇paper", "论文笔记", or provides a PDF file that appears to be an academic paper. Specialized for CV/DL papers. Also supports Zotero integration: "读一下这篇论文 ...", "快速看一下这篇论文 ...", "批判性分析这篇论文 ...", "读一下 Zotero 里的 XXX", "批量读一下 Zotero…

huangkiki/dailypaper-skills · 157 tokens

citra

Skill "citra" from SylphxAI/pdf-reader-mcp, covering citra — pdf evidence for agents, install, or, tools and sdk.

SylphxAI/pdf-reader-mcp · 0 tokens