pdf

Extract text and tables from PDFs using pypdf and pdfplumber.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill pdf-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/pdf
Command: npx skills add https://github.com/swaruplab/operon --skill pdf-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents are ubiquitous and manual processing is error-prone and time-consuming; this Skill consolidates extraction, form handling, and transformation into an automation-ready workflow.

Core Features & Use Cases

  • Text and table extraction from PDFs using pypdf and pdfplumber.
  • Create, merge, split, rotate, watermark, and encrypt/decrypt PDFs; fill forms (fillable and non-fillable); extract images and OCR for scanned documents.
  • Use case: automate invoice data extraction or report generation across large document sets.

Quick Start

Read a PDF and extract all text and page counts with a single command.

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 documents using Python?

To extract text and tables from PDF documents using Python, you can use the pdfplumber and pypdf libraries. This approach automates data capture by pulling structured text and tabular content directly from PDF files for downstream processing.

Can I fill both fillable and non-fillable PDF forms with Python?

Yes, you can fill both fillable and non-fillable PDF forms with Python. The workflow validates form coordinates for non-fillable documents and supports standard fillable forms, streamlining document processing and data entry automation.

What is the best way to merge, split, and watermark multiple PDF files in Python?

The best way to merge, split, and watermark multiple PDF files in Python is using the pypdf library. It handles page rotations, document merging, splitting, and watermarking across large document sets to automate workflows.

Does pdfplumber support OCR for scanned PDF documents?

For scanned PDF documents requiring OCR, the workflow uses pdf2image and Pillow to convert pages for image-based text extraction. Pdfplumber itself handles digital text extraction, while OCR processes image-based content when needed.

How do I encrypt or decrypt PDF files to secure document content?

To encrypt or decrypt PDF files and secure document content, you can use Python's pypdf library. This allows you to programmatically add password protection to PDFs or remove encryption during batch document processing.

What are the limitations of Python PDF text extraction for data processing?

Python PDF text extraction limitations include handling complex layouts or scanned documents that require OCR via pdf2image. Text extraction using pypdf and pdfplumber works best on digitally generated PDFs rather than image-only files.