varunr89/claude-marketplace/pdf-ocr

Claude Code and agent skill by varunr89/claude-marketplace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Extract text from PDF files using Apple Vision OCR, optimized for Apple Silicon

Install

npx vskill@latest install varunr89/claude-marketplace/pdf-ocr

SKILL.md

PDF OCR

Converts PDF pages to images using PyMuPDF, then runs Apple Vision OCR on each page in parallel. Produces Markdown, plain text, or JSONL output.

When to use

Use this skill when the user wants to extract text from a PDF file -- especially scanned PDFs, image-based PDFs, or PDFs where copy-paste produces garbled text.

Usage

bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pdf_ocr.py <input.pdf> \
[-o output_file] \
[-f markdown|text|jsonl] \
[--dpi 200] \
[--workers N] \
[--languages en-US] \
[--fast] \
[--keep-images] [--images-dir <dir>] \
[--stdout]

Key arguments

ArgumentDefaultDescription
pdf (positional)requiredInput PDF file path
-o, --output<pdf_name>.mdOutput file path
-f, --formatmarkdownOutput format: markdown, text, or jsonl
--dpi200Resolution for rendering PDF pages (higher = better quality, slower)
--workersCPU countNumber of parallel OCR workers
--languagesen-USComma-separated recognition languages
--fastfalseUse faster, less accurate recognition
--keep-imagesfalseKeep the extracted page images after OCR
--images-dirtemp dirDirectory to save page images (requires --keep-images)
--stdoutfalsePrint extracted text to stdout instead of writing to file

Pipeline

  1. PDF pages are rendered to PNG images at the specified DPI using PyMuPDF (fitz)
  2. Apple Vision OCR runs in parallel across pages using ThreadPoolExecutor
  3. Results are assembled in page order and written to the chosen output format

Output formats

  • markdown -- Each page becomes a ## Page N section with the OCR text
  • text -- Plain text with === Page N === separators
  • jsonl -- One JSON object per line with page, text, and backend fields

Dependencies

  • PyMuPDF (pip install pymupdf) -- PDF to image conversion
  • macOS + PyObjC (pip install pyobjc-core pyobjc-framework-Vision pyobjc-framework-Cocoa) -- Vision OCR

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/varunr89/claude-marketplace/pdf-ocr/badge)](https://verified-skill.com/skills/varunr89/claude-marketplace/pdf-ocr)

Something wrong with this skill or its page? Tell us.