pdf

Extract text and tables from PDFs using pypdf and pdfplumber.

97|17|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/antoniolg/agent-kit --skill pdf-antoniolg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/antoniolg/agent-kit/tree/main/skills/3rd-pdf
Command: npx skills add https://github.com/antoniolg/agent-kit --skill pdf-antoniolg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF workflows are often manual and error-prone when extracting text and tables, generating new documents, merging or splitting PDFs, and handling forms. This Skill provides a comprehensive toolkit to automate these tasks using Python libraries such as pypdf, pdfplumber, and related tooling, enabling scalable PDF processing.

Core Features & Use Cases

  • Extract text and tables from PDFs
  • Create, merge, and split PDFs
  • Fill and manage PDF forms (including annotations)
  • Use case: automate repetitive data entry and document processing across contracts, invoices, reports, and archives.

Quick Start

Process a sample PDF to demonstrate core capabilities by running the included scripts in this repository.

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 files using Python?

To extract text and tables from PDF files using Python, this Skill uses pdfplumber and pypdf to parse document structures. It processes document-heavy workflows like archiving and auditing, converting unstructured PDF content into usable data for contracts, invoices, and reports.

Can I fill and manage PDF forms automatically with Python?

Yes, you can fill and manage PDF forms automatically with Python. This Skill uses pypdf to handle form digitization and annotations, automating repetitive data entry across contracts and invoices for organizations and teams.

What is the best way to merge or split PDF documents in Python?

The best way to merge or split PDF documents in Python is using pypdf within this Skill. It provides code-based pipelines to safely generate new documents, automating repetitive document processing across archives and reports.

Does pdfplumber work with pypdf for PDF table extraction?

Yes, pdfplumber works with pypdf for PDF table extraction. This Skill explicitly relies on both libraries to parse and render PDFs, combining their strengths to extract text and tables for form digitization and auditing workflows.

Why does PDF processing fail when extracting tables from scanned documents?

PDF table extraction fails on scanned documents because scanned PDFs contain images, not embedded text layers. This Skill uses pdfplumber for text and table extraction, requiring pdf2image and Pillow to render images rather than parse text directly.