Extracts text from PDFs via the Asta remote OCR API, preserving document structure, headings, tables, and formatting. Supports page ranges and embedded image extraction.
Ships in asta-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extract text from a local PDF with the Asta remote OCR API. The command returns markdown that preserves document structure, headings, formatting, tables, lists, and emphasis.
# Print extracted markdown to stdout
asta pdf-extraction remote paper.pdf
# Save extracted markdown to a file
asta pdf-extraction remote paper.pdf -o paper.md
# Extract the first 50 pages
asta pdf-extraction remote paper.pdf \
--start-page 0 \
--max-pages 50 \
-o paper-part-1.md
# Extract pages 50-99
asta pdf-extraction remote paper.pdf \
--start-page 50 \
--max-pages 50 \
-o paper-part-2.md
# Extract embedded images next to the markdown file
asta pdf-extraction remote paper.pdf -o output/paper.md --images
<pdf>: local PDF path (required; the file must exist and be readable)-o / --output: markdown output path (default: stdout)--start-page: first page to process, using zero-based page numbering
(default: 0)--max-pages: maximum number of pages to process (default: 50)--images / --no-images: save embedded images alongside the markdown
(default: --no-images)The command requires an authenticated Asta session.
Identify the local PDF and where the user wants the markdown saved. Prefer an
explicit -o path so the result is available for later work. The command
creates missing parent directories for the output file.
For PDFs of 50 pages or fewer, use the defaults:
asta pdf-extraction remote document.pdf -o document.md
For longer PDFs, process consecutive ranges in separate commands. Page numbers
are zero-based, so the second 50-page range begins at page 50:
asta pdf-extraction remote document.pdf \
--start-page 0 --max-pages 50 -o document-part-001.md
asta pdf-extraction remote document.pdf \
--start-page 50 --max-pages 50 -o document-part-002.md
asta pdf-extraction remote document.pdf \
--start-page 100 --max-pages 50 -o document-part-003.md
Keep the part numbers zero-padded so the files sort in page order.
Use --images when figures, diagrams, or other embedded images are important:
asta pdf-extraction remote document.pdf \
-o extracted/document.md \
--images
The images are saved in the output file's directory and referenced by filename
in the markdown. Always provide -o with --images; without it, images are
written to the current directory.
After extraction, check that:
--images was requested.If the document was processed in parts, retain the original PDF and page ranges with the extracted files so their order and provenance remain clear.
asta pdf-extraction remote scanned-document.pdf \
-o extracted/scanned-document.md
To extract pages 21-30 as displayed in a PDF viewer, start at zero-based page
20 and request 10 pages:
asta pdf-extraction remote report.pdf \
--start-page 20 \
--max-pages 10 \
-o report-pages-21-30.md
Save the markdown under the user's dataset or document directory, then use the
asta-documents or local-paper-index skill to index it. Preserve a link to
the source PDF in the index metadata when possible.
Confirm that the user is logged in to Asta, then retry the same command.
The command reports the HTTP status and response from the service. Verify the
network connection and retry. If a large request repeatedly fails, reduce
--max-pages and process smaller page ranges.
--start-page is within the document.Run the command with both --images and an explicit -o path. Images are saved
next to the output file; if no output file is provided, they are saved in the
current directory.
Use PDF extraction when:
Do not use it when:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/asta-tools:pdf-extractionfrom asta-tools
npx claudepluginhub allenai/asta-plugins --plugin asta-tools17 skills in this plugin
/analyze-dataThis skill should be used when the user asks to "analyze this dataset", "run datavoyager", "run data voyager", "explore this data", "what's in this CSV", "statistical analysis of", "find patterns in", or wants an AI-driven, code-executing analysis of a tabular dataset that answers a specific research question./artifactsUse this skill to export and open A2A agent task outputs — "export the task results", "convert the task output to HTML", or work with the structured artifacts produced by an A2A agent task run./asta-cliInstall or update the `asta` CLI to the version pinned by this plugin. Invoke whenever `asta` is not on PATH (e.g. `command not found` for `asta`) or when a subcommand/flag appears missing — that signals a stale install needing an update./asta-documentsLocal document metadata index for files used by Asta skills and tools. Use this skill when the user asks to store a document "in Asta" or retrieve "from Asta". Use it when the user references an "Asta document" or anything with an `asta://` URI./autodiscoveryCreate, configure, and monitor AutoDiscovery runs — either via the hosted service (`asta autodiscovery`) or via the local CLI (`auto-discovery`). Use when the user asks about their runs, experiments, discoveries, wants to check status, or wants to start a new discovery run./check-claimsJudge whether factual claims in an evidence-backed research write-up are substantiated — which claims assert something checkable with no evidence attached, and whether an attached quote supports the claim as worded. Works over whatever scope the request names — a pull request diff, your own uncommitted change, one file, or a whole project audited end to end. Triggers on "check my claims", "is this claim supported", "evidence review", "audit the evidence", or review of research prose using `.ev` evidence.Other plugins' skills for the same job