Skip to content
Agentmart
Submit a tool

readable-pdf

Extracts text (with original line breaks), metadata, per-page character / image density, and optional rendered PNGs from a PDF using pdfvision.

Skill by yamadashy

IndexedMIT★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yamadashy-readable-pdf

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Extracts text (with original line breaks), metadata, per-page character / image density, and optional rendered PNGs from a PDF using pdfvision. Falls back to --render on pages whose density Overview shows low text coverage so multimodal models can read raster slides. Use when the URL ends in .pdf, the user supplies a local PDF path, or another readable-* skill produced a PDF that still needs structured extraction.

Use cases: documents, presentations, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/readable-pdf

What's inside

Skill name
readable-pdf
Description
Extracts text (with original line breaks), metadata, per-page character / image density, and optional rendered PNGs from a PDF using pdfvision. Falls back to --render on pages whose density Overview shows low text coverage so multimodal models can read raster slides. Use when the URL ends in .pdf, the user supplies a local PDF path, or another readable-* skill produced a PDF that still needs structured extraction.
License
MIT
Instructions
68 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PDF Reader

Uses [pdfvision](https://github.com/yamadashy/pdfvision) for cross-agent PDF extraction. pdfvision returns text with line breaks preserved, document metadata, per-page density, and optional rendered PNGs for multimodal models.

## Prerequisite

```bash
npx pdfvision --version
```

Or install globally: `npm install -g pdfvision`. Requires Node.js >= 22.13.

Run `npx pdfvision --help` once before invoking — the flag set evolves (page selection, render output dir, layout / geometry / image-boxes opt-ins, etc.) and the help text is the source of truth for what the installed version supports.

## Steps

### 1. Get a local PDF path

If the input is a URL, download first:

```bash
curl -L -o /tmp/doc.pdf "{URL}"
```

If the input is already a local path, skip this step.

### 2. Extract text + metadata

```bash
npx pdfvision /tmp/doc.pdf
```

Default output is `markdown` with one `## Page N` section per page and a density Overview at the top.

### 3. Switch format when needed

```bash
# Structured JSON for downstream programmatic use
npx pdfvision /tmp/doc.pdf -f json

# Tag-shaped XML, easier for some LLMs to parse than JSON
npx pdfvision /tmp/doc.pdf -f xml
```

### 4. Render pages for multimodal review

If the Overview shows low character coverage on a page (i.e. the page is largely an image / scan), render PNGs and read them:

```bash
npx pdfvision /tmp/doc.pdf --render -p {pages}
```

The output reports the PNG paths. Read each image with the agent's image-reading capability.

### 5. Page subsets

```bash
npx pdfvision /tmp/doc.pdf -p 1-5
npx pdfvision /tmp/doc.pdf -p 1,3,5
```

## Why pdfvision over a built-in PDF reader

- Works in any agent runtime that can spawn a CLI, not only Claude Code.
- Reports per-page density so the agent can detect rasterised pages and re-extract with `--render`.
- Caches by content hash, so repeated reads of the same PDF are instant.

From yamadashy/agent-readable, MIT.

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
May 9, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from yamadashy

Cite this page

readable-pdf skill. Agent Mart. https://agentmart.dev/skills/yamadashy-readable-pdf (last updated 2026-10-24)