PDF Extractor

VerifiedCaution

Extract text, tables, and form-field values from PDF files. Use to convert PDF content to text or Markdown.

Sby Skills Guide Bot
Data & AIIntermediate
7/23/2026
Claude CodeCursorCodex
#pdf#text-extraction#table-extraction#pdf-forms#document-parsing

Recommended for

Automated summary

Extracts text, tables, and form-field values from a PDF file using a Python script bundled with the skill's virtual environment.

Strengths

  • Three dedicated modes: plain text, form fields (JSON output), and tables
  • Documented handling of borderless tables via --table-strategy text, --bbox, and --columns
  • Bundled venv and dependencies (pypdf, pdfplumber) with a uv-based recreation procedure

Limitations

  • No OCR: scanned, image-only PDFs will yield empty text
  • Borderless table extraction often needs manual coordinate tuning (bbox, column x-positions)
  • Requires shell access to run the script with the venv interpreter
When to use it

Use when the user needs to pull text, form values, or tables out of an existing PDF file.

When not to use it

Avoid it for image-only scanned PDFs or when the visual layout of the document must be reproduced.

Security analysis

Caution
Quality score88/100

The skill uses bash and network operations for legitimate PDF extraction setup, with no destructive, exfiltration, or obfuscation patterns. The main risk is executing third-party packages and a bundled script on untrusted PDFs, which is typical for this kind of tool but warrants caution.

Findings
  • •Instructs creating a Python virtual environment and installing packages from PyPI via `uv pip install`, which involves network access and execution of third-party code.
  • •Runs a bundled Python script (`scripts/extract.py`) against user-provided PDF files; the script's implementation is not shown in the SKILL.md, so its behavior cannot be fully audited from this file alone.
How this analysis is made

Examples

Extract text
Pull all the text out of contract-2024.pdf and save it as plain text.
Read form fields
What values are filled in on the W-9 form at docs/w9-signed.pdf? Dump the field names and values as JSON.
Borderless table
Extract the table from page 3 of report.pdf — it has no ruled lines, just whitespace-aligned columns. Crop to the table area if the page also has prose.

name: pdf-extractor version: 0.1.0 description: Extract text, tables, and form-field values from PDF files. Use when the user wants to pull data out of a PDF, fill a PDF form, or convert PDF content to text/markdown.

PDF Extractor

Extract structured content from PDF files.

When to use this skill

Use this when the user asks to:

  • Pull text or tables out of a PDF
  • Read values from a fillable PDF form
  • Convert a PDF to markdown or plain text

Instructions

  1. Identify the target PDF path from the user's request.

  2. The script depends on pypdf and pdfplumber, which are installed in a venv bundled with this skill. Run the script with the venv interpreter (.venv/bin/python in the skill directory), not the system python. If .venv is missing, create it once with uv:

    uv venv .venv && uv pip install --python .venv -r requirements.txt
    
  3. For plain text extraction, run the bundled script:

    .venv/bin/python scripts/extract.py <path-to-pdf> --mode text
    
  4. For form fields, use --mode fields. The output is JSON mapping field names to values.

  5. For tables, use --mode tables. By default it detects bordered tables via ruled lines. If the table has no borders (columns aligned with whitespace), add --table-strategy text. On a page that mixes prose and a borderless table, also pass --bbox "x0,top,x1,bottom" (PDF points, top-left origin) to crop to just the table — the text strategy otherwise treats the whole page as one table and splits paragraphs into bogus columns. Cross-check column alignment against references/form-fields.md if the layout looks off.

  6. If a borderless table's header still mis-splits (wide header words straddle an inferred column edge), pin the columns explicitly with --columns "x0,x1,...,xN" — the boundary x-coordinates including the outer edges. This buckets each word into a column by its center, so headers stay intact. Pair it with --bbox to also bound the rows (otherwise prose above the table gets bucketed in too). To find the coordinates, inspect word positions with pdfplumber's page.extract_words() (each word has x0/x1).

Notes

  • If a PDF is scanned (image-only), text extraction will be empty — tell the user it needs OCR, which this skill does not perform.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/pdf-extractor-mrx3xy7g' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/pdf-extractor-mrx3xy7g/download' --output '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md.part' && mv '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md.part' '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && test -s '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pdf-extractor' && cp -R '.skill-downloads/pdf-extractor-mrx3xy7g' '.claude/skills/pdf-extractor'

Cursor
test -f '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && test -s '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/pdf-extractor' && cp -R '.skill-downloads/pdf-extractor-mrx3xy7g' '.cursor/skills/pdf-extractor'

Codex
test -f '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && test -s '.skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/pdf-extractor' && cp -R '.skill-downloads/pdf-extractor-mrx3xy7g' '.agents/skills/pdf-extractor'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/pdf-extractor-mrx3xy7g'

openskills read 'pdf-extractor-mrx3xy7g'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/pdf-extractor-mrx3xy7g/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills