pdf

Extract text and tables from PDFs using Python libraries.

16|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pdf-hongyu-yu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Hongyu-yu/matsci-ai-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pdf-hongyu-yu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF manipulation and processing tasks are time-consuming and error-prone when done manually.

Core Features & Use Cases

  • Extract text and tables from PDFs for data analysis.
  • Create, merge, split, and fill forms programmatically to streamline documentation workflows.
  • Use case: batch process invoices to extract totals and generate consolidated reports.

Quick Start

Process a PDF to extract text/tables, fill forms, and create a merged document.

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?

PDF text and table extraction for data analysis is automated using pdfplumber and pypdf libraries to parse content. This enables batch processing of invoices and research documents to pull structured data programmatically without manual copy-pasting.

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

Fillable and non-fillable PDF forms can both be filled programmatically using Python libraries like pypdf and pdf2image. The workflow renders non-fillable forms as images and overlays annotations, allowing automated documentation workflows.

What is the best way to batch process invoices and generate consolidated reports from PDFs?

Batch processing invoices to extract totals and generate consolidated reports is achieved by scripting a workflow with pypdf and pdfplumber. This automates parsing multiple files to extract totals and merge results into a single document.

Does this PDF processing approach work with Python libraries like pdf2image and Pillow?

This PDF processing approach works directly with Python libraries including pdf2image and Pillow to render and annotate documents. It leverages these dependencies to parse, render, and manipulate PDF files for extraction and form-filling tasks.

Why does PDF table extraction fail on scanned documents without OCR?

PDF table extraction fails on scanned documents because tools like pdfplumber parse embedded text data, not images. Scanned documents require rendering pages into images with pdf2image before applying visual processing techniques to recognize tables.

How do I merge and split PDF documents programmatically using Python?

Merging and splitting PDF documents programmatically is handled using the pypdf library to parse and restructure file contents. This provides scripted examples for combining multiple reports or separating pages into individual files automatically.