pdf

Extract text and tables from PDF documents using Python libraries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents often require repetitive data extraction and form handling, which is error-prone and time-consuming.

Core Features & Use Cases

  • Automated Form Filling: Programmatically fill both fillable and non-fillable PDFs.
  • Data Extraction: Pull text and tables from PDFs into usable formats.
  • Use Case: Process hundreds of invoices by extracting key fields and compiling them into a single dataset.

Quick Start

Run a job to extract text from invoice.pdf and save the results to output.csv

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?

You can extract text and tables from PDF files using Python by utilizing libraries like pypdf and pdfplumber to parse document content and pull structured data into usable formats for datasets.

Can I programmatically fill both fillable and non-fillable PDF forms?

Yes, you can programmatically fill both fillable and non-fillable PDF forms to automate administrative workflows like form digitization and invoice processing, reducing manual data entry errors.

What is the best way to batch process hundreds of PDF invoices for data extraction?

Batch processing PDF invoices involves automating extraction of key fields using Python libraries like pdfplumber and pypdf, then compiling the pulled text and table data into a single CSV dataset.

Does pdf2image work with Pillow for rendering PDF pages in image-based workflows?

Yes, pdf2image works with Pillow to render PDF pages as images, enabling image-based workflows and OCR text extraction when dealing with scanned documents or non-text-based PDFs.

How do I convert extracted PDF data into a CSV file output?

You can convert extracted PDF data into a CSV file output by running a Python script that parses the document with pdfplumber, extracts the required text and tables, and saves the results to a CSV.

When should I use pdfplumber instead of pypdf for table extraction?

You should use pdfplumber for table extraction when you need structured data from complex layouts, while pypdf is more suited for basic text extraction and general PDF parsing tasks.