pdf

Extract text and tables from PDFs using pypdf and pdfplumber.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of interacting with PDF documents, from extracting valuable information to programmatically creating and manipulating PDF files.

Core Features & Use Cases

  • Text and Table Extraction: Easily pull text content and structured data from PDF pages.
  • PDF Generation: Create new PDF documents from scratch using Python.
  • PDF Manipulation: Merge, split, and rotate pages within existing PDF files.
  • Use Case: Automatically generate monthly reports by merging data from multiple sources into a single, well-formatted PDF document.

Quick Start

Use the pdf skill to extract all text from the attached file 'report.pdf'.

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 a PDF document using Python?

To extract text and tables from a PDF, use Python libraries like pdfplumber for advanced structured data extraction and pypdf for core text retrieval. This allows you to easily pull text content and tabular data directly from PDF pages.

Can I generate a new PDF document from scratch with Python?

Yes, you can generate new PDF documents from scratch using Python by leveraging the reportlab library. This facilitates programmatic PDF creation, allowing you to build and format new files entirely through code.

What is the best way to merge and split existing PDF files programmatically?

The best way to merge, split, and rotate pages in existing PDF files programmatically is by using the pypdf library. It provides core manipulation functions to combine multiple documents or separate them efficiently.

Does this PDF processing approach require specific Python dependencies?

Yes, this PDF processing approach requires specific Python dependencies, namely pypdf for core operations, pdfplumber for text and table extraction, and reportlab for PDF generation, ensuring comprehensive document manipulation.

How can I automate batch PDF processing and report generation?

You can automate batch PDF processing and report generation by writing Python scripts that merge data from multiple sources into a single, well-formatted PDF document using the provided pypdf and reportlab libraries.

Are there limitations when extracting structured data from complex PDF files?

While pdfplumber handles advanced text and table extraction, complex PDF layouts with irregular formatting may still present parsing challenges. Highly unstructured documents might require additional manual review or custom extraction logic.