pdf

Extract text and tables from PDFs and fill forms programmatically.

6|2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/dandaka/skills --skill pdf-dandaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/dandaka/skills/tree/main/pdf
Command: npx skills add https://github.com/dandaka/skills --skill pdf-dandaka

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdf2image, pillow, and includes scripts (resource) components.

What problem does it solve?

Manual extraction, form completion, and programmatic manipulation of PDFs is slow, error-prone, and difficult to scale. This skill provides step-by-step tools and scripts to extract text and tables, fill both fillable and non-fillable forms, annotate documents, and perform merges/splits so teams can automate document workflows reliably.

Core Features & Use Cases

  • Automated Form Filling: Supports both native PDF form fields and image-based annotation workflows with bounding-box validation and field value checks.
  • Text and Table Extraction: Extract plain text and structured tables for downstream analysis or CSV/Excel export using robust parsing and OCR fallbacks.
  • PDF Creation & Manipulation: Create reports, merge/split documents, rotate pages, add watermarks, and apply password protection programmatically.
  • Validation & Troubleshooting: Includes helper scripts to detect fillable fields, convert pages to images, generate validation images for bounding boxes, and verify annotation geometry before writing output.
  • Use Case: Batch-process vendor invoices, extract line items and totals to a CSV, and produce filled archival copies of standardized forms.

Quick Start

Extract all text and tables from invoice-q3.pdf and return a merged plain-text file plus a CSV of any extracted tables.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract text and tables from PDF documents for CSV export?

Extract text and tables from PDF documents using robust parsing with OCR fallbacks for scanned pages. This process yields plain text and structured table data suitable for downstream analysis or CSV and Excel export.

Can I fill non-fillable PDF forms programmatically?

Fill non-fillable PDF forms programmatically using image-based annotation workflows. The process applies bounding-box validation and field value checks to accurately place data on flat PDF documents.

Does pypdf support merging, splitting, and rotating PDF pages?

pypdf supports merging, splitting, and rotating PDF pages natively. You can create reports, add watermarks, and apply password protection programmatically to manipulate document workflows reliably.

What is the best way to automate batch processing of vendor invoices in PDF?

Automate batch processing of vendor invoices by extracting line items and totals to a CSV, then producing filled archival copies of standardized forms. This workflow leverages pypdf-based reading and writing with OCR fallbacks.

Why does text extraction fail on scanned PDF pages and how do I fix it?

Text extraction fails on scanned PDF pages because they contain images instead of embedded text. Applying OCR fallbacks via pdf2image and Pillow rendering converts pages to images, enabling successful extraction.

Do I need helper scripts to detect fillable fields before filling a PDF form?

Helper scripts to detect fillable fields are required before filling a PDF form. They identify native form fields, convert pages to images, and generate validation images to verify annotation geometry before writing output.