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.
npx skills add geronimo-iia/agent-skills --skill pdf-parsegit clone --depth 1 https://github.com/geronimo-iia/agent-skillsWrote 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.
[](https://agentmods.dev/skills/geronimo-iia/agent-skills/pdf-parse)<a href="https://agentmods.dev/skills/geronimo-iia/agent-skills/pdf-parse"><img src="https://agentmods.dev/badge/skills/geronimo-iia/agent-skills/pdf-parse/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/geronimo-iia/agent-skills/pdf-parse"><img src="https://agentmods.dev/badge/skills/geronimo-iia/agent-skills/pdf-parse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.01685 |
| Opus 5.5 | $0.00030 | $0.00674 |
| Sonnet 5.5 | $0.00015 | $0.00337 |
| Haiku 4.5 | $0.00007 | $0.00169 |
Grade A, and why
pdf-parse 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Parsing
Dual-path extraction pipeline. Selects tool based on PDF type.
Tool overview
| Tool | Best for | Backend | Install |
|---|---|---|---|
| xberg | Machine-readable PDFs | pdfium + Rust | brew install xberg-io/tap/xberg |
| marker-pdf | Scanned / image PDFs | ML OCR + layout | uvx marker-pdf |
| pdftotext | Fallback (text-only) | poppler | system package |
Step 1 — Ensure tools are installed
xberg
# Check
xberg --version
# Install (macOS)
brew tap xberg-io/tap
brew install xberg
# Install (Linux / no brew)
# Download binary from https://github.com/xberg-io/xberg/releases
# or via Docker: docker pull ghcr.io/xberg-io/xberg:latest
marker-pdf
marker-pdf is invoked via uvx — no persistent install needed.
# Verify uvx is available
uvx --version
# Test marker-pdf is resolvable
uvx marker-pdf --version
If uvx is missing, install uv first: curl -LsSf https://astral.sh/uv/install.sh | sh
pdftotext (fallback)
# macOS
brew install poppler
# Debian/Ubuntu
apt-get install poppler-utils
Step 2 — Detect PDF type
# xberg detect — confirms file is a valid PDF (returns MIME type only)
xberg detect "<path/to/file.pdf>"
# To distinguish machine-readable vs scanned, use pdfinfo
pdfinfo "<path/to/file.pdf>"
Known limitation: xberg detect returns application/pdf for all PDFs — it does NOT distinguish machine-readable from scanned. Use it only to confirm the file is a valid PDF.
Decision rule:
- pdfinfo shows
Pages: Nand text content present (non-zeroCharacters:) → Step 3A (xberg) - pdfinfo shows
Characters: 0or < 100 → Step 3B (marker-pdf, likely scanned) - xberg unavailable → Step 3B (marker-pdf) or Step 3C (pdftotext fallback)
- Neither tool available → Step 3C (pdftotext fallback)
Step 3 — Extract
3A — Machine-readable PDF → xberg
Warning: xberg writes WARN-level log lines to stdout, not stderr. Using > redirection captures them inside the output file. Always use --output to avoid polluted Markdown.
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.
- 1mo ago Changed f3c9864bf25f
- 1mo ago First seen · 221 lines · 74 tokens per session scan E e737bb04e98f
pdf-parse is a skill published in the GitHub repository geronimo-iia/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,685 once invoked, about $0.0003 per session on Opus 5.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.
Other skills, from other repositories
A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.
yida-print-template
A tool for building and managing Yida rich-text templates that turn form data into printable business documents. Yida is a platform for online forms and workflows.
iflytek-ocr-invoice
An image-reading tool that extracts structured information from Chinese invoices, receipts, bills, and tickets. OCR means turning text in a photo or scan into computer-readable data.
iflytek-pdf-image-ocr
AI-powered OCR service for images and PDF documents using iFlytek's advanced recognition APIs.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
paper2slides
Turn an academic paper PDF into a presentation deck (.pptx) end-to-end. Use this skill whenever the user wants to "make slides from a paper", "generate a deck from this PDF", "make a PPT from this paper", "generate slides from a PDF document", "make a deck from a research paper", or supplies a research paper PDF and…