pdf

Extract text and tables from PDFs using Python libraries.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/enoch-robinson/agent-skill-collection --skill pdf-enoch-robinson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/enoch-robinson/agent-skill-collection/tree/main/skills/documents/pdf
Command: npx skills add https://github.com/enoch-robinson/agent-skill-collection --skill pdf-enoch-robinson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the processing of PDF documents, reducing manual effort for extracting text and data, creating new PDFs, and manipulating pages.

Core Features & Use Cases

  • Text extraction: Pull text from PDFs for downstream processing.
  • Table extraction: Capture tabular data from reports and invoices.
  • Document manipulation: Merge, split, rotate pages, or generate new PDFs as part of automated workflows.
  • Use Case: Convert scanned invoices into searchable text and structured data for ingestion into your data warehouse.

Quick Start

  1. Install dependencies: pip install pypdf pdfplumber reportlab
  2. Basic usage: from pypdf import PdfReader, PdfWriter reader = PdfReader("document.pdf") text = "" for page in reader.pages: text += page.extract_text()
  3. Create a new PDF: from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas c = canvas.Canvas("new.pdf", pagesize=letter) c.drawString(100, 750, "Hello World!") c.save()

Frequently Asked Questions about pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PDF for downstream data processing?

To extract text from a PDF, you can use Python libraries like pypdf or pdfplumber to parse document pages and pull raw text content. This process reduces manual effort by converting reports and forms into searchable text for automated workflows.

What is the best way to extract tables from PDF invoices in Python?

Extracting tables from PDF invoices is best handled by the pdfplumber Python library, which captures structured tabular data. This allows you to convert scanned or native report data into structured formats for ingestion into data warehouses.

How do I merge, split, or rotate PDF pages using Python?

You can merge, split, or rotate PDF pages using the pypdf library in Python. This document manipulation allows you to reorganize archival tasks and reports by transforming existing pages or assembling new documents programmatically.

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

Yes, you can generate new PDF documents from scratch using the reportlab Python library. It enables document creation by allowing you to draw strings and assemble layout elements onto a canvas, outputting a fully formatted file.

Do I need to install dependencies separately to manipulate PDFs in Python?

Yes, you need to install dependencies separately using pip to manipulate PDFs in Python. You must run pip install pypdf pdfplumber reportlab to ensure your environment supports text extraction, table parsing, and document generation.

Does pdfplumber support document manipulation like merging and splitting?

pdfplumber primarily supports text and table extraction rather than document manipulation like merging or splitting. For transforming pages and assembling documents, the pypdf library provides the necessary page rotation and merging functions.