Skip to content

Pdf To Markdown

Standalone CLI wrapper and docs for Nutrient's PDF-to-Markdown extractor

Install: /plugin marketplace add pspdfkit-labs/nutrient-skills

Works with Claude Code · 353 GitHub stars

Install

$/plugin marketplace add pspdfkit-labs/nutrient-skills

Install command taken from the project's README or registry entry. Always review code before running it.

Nutrient PDF to Markdown

Convert PDFs to clean Markdown locally. The CLI works with Claude, Codex, RAG pipelines, and other document-processing workflows.

  • How fast is it? — 0.004s per page. 134x faster than docling, 53x faster than pymupdf4llm. (benchmarks)
  • How accurate is it? — In our benchmark, Nutrient Standard scored 0.93 for reading order, 0.89 overall, and 0.82 for heading detection. (benchmarks)
  • Vision (--vision) — Vision handles scanned and handwritten documents and has the highest score in every accuracy measure shown, including tables (0.94 TEDS). It runs locally at 0.35 seconds per page. Use a Nutrient account with Vision access, an API key, or a Nutrient CLI license key. (benchmarks)
  • Three document tools, one binary — pdf-to-markdown creates structured Markdown, pdf-to-text creates layout-preserving text, and query searches an extracted file. (the Nutrient CLI)
  • Image export — --enable-image-export saves images alongside the Markdown output. (usage)
  • Where do my PDFs go? — Nowhere. The CLI runs locally. Your documents are not uploaded to Nutrient. (trust & licensing)
  • What does it cost? — Standard conversion and query are free and unlimited for permitted uses. Account-based Vision uses the allowance from a free or paid plan that includes Vision. Nutrient CLI license keys keep their existing terms. (Standard and Vision)

The Nutrient CLI

pdf-to-markdown is one command in the Nutrient CLI, which converts digital PDFs locally. Convert a PDF once, then use the output in your workflow:

Command What it does Use it when
pdf-to-markdown Creates Markdown with headings, lists, tables, and reading order Your workflow benefits from document structure, as most RAG and AI workflows do
pdf-to-text Creates plain text that preserves columns and alignment Your workflow needs plain text or relies on the page layout
query Searches an extracted file and returns the most relevant line ranges You need a fact or clause from a large conversion without loading the entire file

All three install together from this package (and from the Nutrient Skills marketplace), and share one binary in ~/.local/share/nutrient/cli/.

Scanned or photographed documents? Standard works with PDFs that contain a text layer. Vision handles scanned, photographed, handwritten, and other image-only documents locally.

Install

Agent skill (recommended)

If you use Claude Code, Codex, Pi, Cursor, or Gemini CLI, install the Nutrient Skills plugin — the extraction runs automatically when your agent needs to read a PDF. Add whichever of the three skills you want (they share one binary, so any of them installs it):

npx skills add pspdfkit-labs/nutrient-skills --skill pdf-to-markdown
npx skills add pspdfkit-labs/nutrient-skills --skill pdf-to-text
npx skills add pspdfkit-labs/nutrient-skills --skill query

Or with marketplace/plugin flows (Claude Code, Codex):

/plugin marketplace add pspdfkit-labs/nutrient-skills
/plugin install pdf-to-markdown@nutrient-skills
/plugin install pdf-to-text@nutrient-skills
/plugin install query@nutrient-skills

With Pi:

Similar plugs

Open-source 24/7 Cowork app for OpenClaw, Hermes, Claude Code, Codex, OpenCode and 20+ more CLI Agent | Customize your assistants | Team them up|Star if you like it!

OfficeCLI is the first and best Office suite purpose-built for AI agents to read, edit, and automate Word, Excel, and PowerPoint files. Free, open-source, single binary, no…

Explore related