pdf

Extract text and tables from PDFs using Python libraries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDFs are ubiquitous and handling text, tables, forms, and document assembly across tools is tedious and error-prone. This Skill provides a comprehensive Python-based toolkit to extract text and tables, create and merge/split PDFs, and automate form filling for scalable workflows.

Core Features & Use Cases

  • Text and Table Extraction: reliably pull text and tabular data from PDFs for data analysis and reporting.
  • PDF Creation, Merging, and Splitting: generate new PDFs and reorganize documents with deterministic workflows.
  • Form Handling: support fillable forms and programmatic field population to digitize paperwork.
  • Use Case: automate invoice processing by extracting line items and compiling them into a CSV for accounting.

Quick Start

Use the toolkit to extract text from a sample.pdf and save the results to text.txt.

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 for data analysis?

To extract text and tables from PDF files, this Skill uses pdfplumber to reliably pull structured tabular data and text for analysis and reporting. It processes large batches of PDFs to compile line items into formats like CSV for accounting workflows.

Can I automate PDF form filling across large batches of documents?

Yes, you can automate PDF form filling across large batches. This Skill uses pypdf to programmatically populate fields in both fillable and non-fillable forms, digitizing paperwork with structured error handling for scalable document workflows.

What is the best way to merge and split PDFs using Python?

The best way to merge and split PDFs is using this Skill's Python-based toolkit, which generates new PDFs and reorganizes existing documents with deterministic workflows. It handles document assembly to streamline tedious file organization.

Does this PDF processing approach work with both fillable and non-fillable forms?

Yes, this PDF processing approach works with both fillable and non-fillable forms. It uses pypdf and pdf2image to operate on various form types, applying programmatic field population and structured error handling to manage digitized paperwork.

Why does text extraction fail on scanned PDF images instead of text-based documents?

Text extraction fails on scanned PDFs because they contain images rather than embedded text data. This Skill uses pdf2image and Pillow to convert PDF pages for processing, but extracting text from images requires an additional optical character recognition step.

Do I need Python libraries like pypdf and pdfplumber installed to automate document workflows?

Yes, you need Python libraries like pypdf and pdfplumber installed to automate document workflows. These dependencies provide the core functionality for text extraction, form manipulation, and PDF creation within your Python environment.