pdf-to-markdown

pdf-to-markdown is a skill for Claude Code from psd401/psd-claude-plugins. It costs 41 tokens per session (562 once invoked), scanned A, a copy of pdf-to-markdown, MIT.

A converter that turns PDF documents into organized Markdown, a plain-text format commonly used for documentation and AI tools. It converts tables into Markdown tables and describes images and diagrams in words.

In plain words
What is it for?
Use it to extract reports, tables, and document content into Markdown, convert scanned PDFs, or process only selected pages.
Why use it?
It makes PDF content easier to edit, search, and reuse in software or AI workflows. It can also process scanned pages with text recognition or skip image analysis for faster output.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the psd-productivity plugin — 38 skills, 1 command, 1 agent shipped together

Good fit Use it to extract reports, tables, and document content into Markdown, convert scanned PDFs, or process only selected pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/psd401/psd-claude-plugins/pdf-to-markdown
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 psd401/psd-claude-plugins --skill pdf-to-markdown
Clone the repo
git clone --depth 1 https://github.com/psd401/psd-claude-plugins

Made for: Claude Code.

Or install psd-productivity, the plugin that ships this one along with the rest of its 38 skills, 1 command, 1 agent.

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-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/psd401/psd-claude-plugins/pdf-to-markdown.svg)](https://agentmods.dev/skills/psd401/psd-claude-plugins/pdf-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/psd401/psd-claude-plugins/pdf-to-markdown"><img src="https://agentmods.dev/badge/skills/psd401/psd-claude-plugins/pdf-to-markdown.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 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 94% 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.00041 $0.00562
Opus 5 $0.00020 $0.00281
Sonnet 5 $0.00008 $0.00112
Haiku 4.5 $0.00004 $0.00056

Measured 8d ago against content hash 10e0192d98f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pdf-to-markdown 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 1 executable file (scripts/convert_to_markdown.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

94% identical to pdf-to-markdown — 2 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.

plugins/psd-productivity/skills/pdf-to-markdown/SKILL.md · 78 lines

What it actually says

PDF to Markdown Converter

Convert PDF files to clean, well-structured Markdown. Tables become markdown tables. Images and graphics are described as text (no image files generated).

Quick Start

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py input.pdf

Output: ~/Desktop/{filename}.md

Options

Flag Description
--no-llm Skip LLM processing (faster, images become [Image] placeholders)
--force-ocr Force OCR on all pages (for scanned PDFs)
--page-range "0,5-10" Process specific pages only

Common Use Cases

Convert a PDF with default settings

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py ~/Documents/report.pdf

Specify output location

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py report.pdf ~/Documents/report.md

Fast conversion (no image descriptions)

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py --no-llm report.pdf

Scanned PDF (force OCR)

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py --force-ocr scanned_doc.pdf

Extract specific pages

uv run skills/pdf-to-markdown/scripts/convert_to_markdown.py --page-range "0-5" large_report.pdf

Output

  • Pure Markdown text (no embedded images)
  • Tables converted to Markdown table format
  • Images/charts described as text using LLM
  • Clean formatting suitable for AI processing

Requirements

  • GEMINI_API_KEY: Required for LLM image descriptions (see SECRETS-SETUP.md)
  • Use --no-llm flag if you don't have Gemini API access

First Run Note

The first run downloads ML models (~1-2GB) which are cached at ~/.cache/marker/. Subsequent runs are faster.

Technical Details

Uses Marker library:

  • 31k+ GitHub stars
  • Best-in-class PDF conversion accuracy
  • Surya OCR for 90+ languages
  • Gemini LLM integration for image understanding
Files

What ships with it

2 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 · 78 lines · 41 tokens per session scan A 10e0192d98f9

Subscribe to this mod's changes

pdf-to-markdown is a skill published in the GitHub repository psd401/psd-claude-plugins (2 stars, last pushed 7d ago), licensed MIT. It adds 41 tokens to every session and 562 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to pdf-to-markdown, differing in 2 lines, and is treated as a copy.