pdf

Extract text and tables from PDFs using Python tools.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Gull-Stack/love-rescue --skill pdf-gull-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Gull-Stack/love-rescue/tree/main/.claude/skills/document-skills/pdf
Command: npx skills add https://github.com/Gull-Stack/love-rescue --skill pdf-gull-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, Pillow.

What problem does it solve?

This Skill automates routine PDF processing tasks such as text and table extraction, document merging, and form handling, reducing manual work and enabling scalable data extraction.

Core Features & Use Cases

  • Text extraction: Retrieve raw and structured text from PDFs for indexing and search.
  • Table extraction: Detect and export tables for data integration into spreadsheets or databases.
  • Form handling: Fill or annotate PDF forms, and merge changes back into finalized documents.
  • Document manipulation: Merge, split, rotate, and annotate PDFs to support end-to-end workflows.
  • Use Case: Streamline contract processing by extracting key fields, compiling them into a report, and archiving the processed PDFs.

Quick Start

Install the required Python packages (pypdf, pdfplumber, pdf2image, Pillow). Then run a small script to read a PDF, print its page count, and extract text as a starting point.

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 PDFs using Python, you can use pypdf for raw text retrieval and pdfplumber for detecting and exporting structured tables. This approach supports data integration into spreadsheets or databases for indexing and search.

What is the best way to automate filling and merging PDF forms?

Automating PDF form filling and merging involves using pypdf to fill or annotate forms and merge changes back into finalized documents. This streamlines end-to-end workflows like contract processing and archiving processed invoices.

Do I need pdf2image and Pillow to process PDF documents in Python?

You do not need pdf2image and Pillow for standard text or table extraction. They serve as optional helpers for PDF processing tasks requiring image manipulation or rendering, while pypdf and pdfplumber handle the core deterministic extraction.

How does Python handle splitting and rotating PDFs for digital archiving?

Python handles splitting and rotating PDFs for digital archiving by utilizing pypdf to manipulate document structures. This allows you to split large documents, rotate specific pages, and annotate finalized PDFs to support scalable archival workflows.

Can I use pypdf and pdfplumber together to digitize invoices?

Yes, you can use pypdf and pdfplumber together to digitize invoices by extracting key fields and structured tables. This combination allows you to compile extracted invoice data into a report and archive the processed PDFs with minimal setup.