Pdf Extraction
БесплатноБез исполняемых скриптовНе проверенExtract text, tables, figures and page images from PDFs — one file, many files, or URLs — with webrain_pdf and webrain_batch op=pdf. Use when asked to…
от prokopis392 установки в других каталогахОб этом скилле
PDF extraction (single file, batch, and URL)
Zero system dependencies for text. The parse is pure Rust (pdf-inspector on
lopdf), so it needs no browser, no Python, no poppler — which also means a PDF
never needs a CDP tab and never hits anti-bot. A URL is fetched and parsed
in-memory: you never have to save the file yourself.
Text first — measured on a 9-page paper
| path | time | output |
|---|---|---|
op:extract |
5.2 s | 48 KB markdown, 32,401 chars, 10 table rows |
op:render + tiles + local vision |
157.9 s | 17,330 chars (53% of the text) |
op:images dir:… |
< 1 s | 29 PNGs at native size, 3 KB reply (arxiv 2206.01062) |
Vision costs ~16 s per page (2048-token cap at ~12 tok/s) and the tiling step is
1.4% of that — so never parallelize tiles, route instead: extract, then send only the
pages whose texts[n].text is empty or short to op:render + vision. That is where
tiles earn their keep: on the measured paper a figure-only page returned 0 chars
from the text layer, and vision recovered its appendix heading and Figure caption
(along with a chain-of-thought preamble — take the last paragraph, not the first).
layout now answers "which pages" for you, so you do not loop the whole document:
| field | meaning | trust it for |
|---|---|---|
pages_with_raster_images |
pages holding an image XObject | fact — op:images can decode these |
pages_with_captions |
pages whose text has a Figure N / Table N caption |
hint — the figure may be vector, invisible to both the text layer and op:images |
pages_needing_vision |
empty-text pages + captioned pages with no raster | the routing list (measured: 6 of 9 on a figure-heavy paper) |
A caption is a hint, not a gate: it over-triggers on table pages whose table the text
layer already recovered (10 pipe rows on the measured report), and it misses a figure
whose caption sits on the previous page. Start from pages_needing_vision, then
subtract any page whose texts[n].text already contains the content you need.
A figure page is not a transcription job: ask vision to describe the figure / read the table, not to reproduce the page. Full-page transcription on a dense figure page burns the 2048-token budget on the preamble and truncates at ~1000 chars.
"Everything in one file" — the whole-document recipe
When the ask is all of it (text + tables + figures + what the figures show), three calls do the job, and only the first one is big:
1. webrain_pdf {op:"extract", path} -> markdown + pipe tables + layout
2. webrain_pdf {op:"images", path, dir:"out/img"} -> native-size figure PNGs
webrain_pdf {op:"render", path, dpi:150, dir:"out/pg"} -> page PNGs for the pages vision owns
3. webrain_vision {op:"ask", images:[...], prompt:"…"} -> per-figure reads
Then assemble: text layer as the body, the vision reads for the figures and for any
page whose texts[n].text came back empty, images linked by relative path. Keep the
two layers labelled — a 2B model's table transcription and the text layer's pipe table
are different evidence, and on the measured paper they agreed cell-for-cell while the
model truncated after ~3 rows.
Measured on arXiv 2206.01062 (9 pages, 4.3 MB): extract 53,758 chars / 56 pipe rows in 5 s, 29 images + 9 page tiles on disk in ~3 s, 6 vision reads. The only page the text layer lost was page 1 — title, five authors and the abstract exist solely as pixels.
When to use
- "extract / read / summarise this PDF", "convert this paper to markdown"
- "get the tables out of this report", "OCR this scanned document"
- "here are 200 PDF links from a crawl — extract them all"
- "describe the figures/diagrams in this paper"
The two entry points
| Goal | Call |
|---|---|
| 1..N PDFs (local paths or URLs) | webrain_pdf → op:extract, path: or paths:[...] |
| Same, from the batch tool | webrain_batch → op:pdf, urls:[...] (browserless) |
| Embedded raster images | webrain_pdf → op:images, path:, pages:[], dir: |
| Page PNGs / tiles for vision | webrain_pdf → op:render, path:, pages:[], dpi:, tile_size:, dir: |
| Print the open browser page to PDF | webrain_pdf → op:page (base64 PDF) |
Always pass dir. Without it op:render returns base64 in the tool result — a
9-page 150-dpi render is 15 MB (the entire context budget for one document), and 29
extracted figures are ~20 MB. With dir the same calls answer in 500 B and 3 KB:
render writes p001.png (or p001_t0x0.png with tile_size), images writes
img_p001_000.png at the embedded image's native size (no downscale, no re-encode).
Those paths then go straight into webrain_vision {op:"ask", images:[...]}.
op:extract and op:pdf run concurrently (one thread per core) and preserve
input order. A paths:[]/urls:[] call is the batch path — do not loop N
single calls.
Procedure — textual PDF
- Call `webra
Установить Pdf Extraction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Pdf Extraction?
Extract text, tables, figures and page images from PDFs — one file, many files, or URLs — with webrain_pdf and webrain_batch op=pdf. Use when asked to read/summarise a paper or report, convert PDF to Markdown, pull tables out of a PDF, OCR a scanned PDF, describe figures/charts, or extract a batch of PDF links found by a crawl. Covers arxiv.org/pdf, ?download= links, login-gated PDFs, and when to switch from text extraction to render + vision.
Как установить скилл Pdf Extraction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Pdf Extraction запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse 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…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic