pdf-extras

Validate Python PDF extraction environments and map page offsets for accurate text and table extraction.

Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ByronWilliamsCPA/.claude --skill pdf-extras
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-extras
Source: https://github.com/ByronWilliamsCPA/.claude/tree/main/.claude/skills/pdf-extras
Command: npx skills add https://github.com/ByronWilliamsCPA/.claude --skill pdf-extras

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents costly PDF extraction failures and data errors caused by stale project configuration (such as outdated paths or mismatched package managers documented in CLAUDE.md) that no longer match the actual repository state, and addresses common edge cases like multi-numbered documents and dense unstructured fact sheets that produce incorrect or unlabeled extraction results.

Core Features & Use Cases

  • Pre-extraction environment sanity gate: Validates project paths, resolves the correct package manager and interpreter from lockfiles (uv.lock or poetry.lock), and verifies extraction library imports with concrete version checks to eliminate silent toolchain failures.
  • Multi-numbered document handling: Guides users to build page-offset maps for documents with multiple numbering schemes (like board books or regulatory filings) to avoid citation errors from mismatched page references.
  • Metadata label validation: Ensures critical metadata labels (basis type, as-of date, currency) are verified against on-page statements rather than inherited from sibling data, preventing silent errors in downstream financial transforms.
  • Dense fact sheet parsing: Provides layout-aware parsing guidance for single-page dense financial fact sheets and unlabeled bar-chart data streams to correctly map extracted numbers to their intended columns and series.
  • Use Case: A financial analyst extracting data from a regulatory filing or portfolio fact sheet in a Python project can use this Skill to ensure extraction accuracy, avoid citation errors, and validate that all metadata labels are correctly sourced before running downstream analysis.

Quick Start

Use the pdf-extras skill alongside the pdf skill to run the environment sanity gate and follow all extraction best practices before pulling text or tables from any PDF in your Python project.

Frequently Asked Questions about pdf-extras

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does PDF text extraction fail in Python projects with stale configuration?

Dense financial fact sheets require layout-aware parsing to correctly map extracted numbers to their intended columns and data series. Implementing structure recognition ensures unlabeled bar-chart data streams and dense unstructured layouts are accurately digitized without misalignment.

How do I validate my Python environment before extracting data from financial PDFs?

You can prevent citation errors in multi-numbered documents by building page-offset maps for regulatory filings and board books. Mapping multiple numbering schemes ensures page references match correctly before running downstream analysis or referencing specific financial data points.

What is the best way to parse dense financial fact sheets in Python?

Dense financial fact sheets require layout-aware parsing to correctly map extracted numbers to their intended columns and data series. Implementing structure recognition ensures unlabeled bar-chart data streams and dense unstructured layouts are accurately digitized without misalignment.

How do I avoid citation errors in multi-numbered regulatory filings?

You can prevent citation errors in multi-numbered documents by building page-offset maps for regulatory filings and board books. Mapping multiple numbering schemes ensures page references match correctly before running downstream analysis or referencing specific financial data points.

Does PyMuPDF or pdfplumber work better for extracting metadata from financial documents?

Both PyMuPDF and pdfplumber are validated for Python PDF text and table extraction workflows. The key to accurate metadata extraction is verifying critical labels like basis type and currency against on-page statements rather than inheriting them from sibling data.

When should I verify metadata labels during PDF table extraction?

Verify metadata labels like as-of date, basis type, and currency against on-page statements during extraction to prevent silent errors in downstream financial transforms. Relying on inherited sibling data without validation risks propagating inaccuracies across multi-document board book parsing.