pdf

Extract text and tables from PDFs using Python libraries.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mrwyx12369/TeamPaw --skill pdf-mrwyx12369
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/mrwyx12369/TeamPaw/tree/main/src/teampaw/agents/skills/pdf-zh
Command: npx skills add https://github.com/mrwyx12369/TeamPaw --skill pdf-mrwyx12369

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pytesseract, pdf2image, pdftotext, pdftoppm, qpdf, and includes scripts (resource) components.

What problem does it solve?

PDFs are ubiquitous in business but extracting text, tables, and form data, merging or splitting files, and making scanned documents searchable often requires juggling multiple tools and manual steps. This Skill provides a unified, code-driven approach to perform these operations end-to-end.

Core Features & Use Cases

  • Read and write PDFs with pypdf for page-level manipulation (merge, split, rotate, encrypt/decrypt).
  • Extract text and tables with pdfplumber to surface structured data from documents.
  • Create PDFs with reportlab for programmatic report generation.
  • Fill PDF forms using a guided workflow that supports both fillable and non-fillable forms.
  • OCR for scanned PDFs via pytesseract and pdf2image when text is not embedded.

Quick Start

Run this skill on a target PDF to extract text and tables or fill forms using the guided instructions.

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 in Python?

PDF text and table extraction uses pdfplumber to surface structured data from documents, while pypdf handles basic text retrieval. This enables automated data capture from invoices and reports without manual copy-pasting.

Can I run OCR on a scanned PDF to make it searchable?

OCR for scanned PDFs is supported via pytesseract and pdf2image when text is not embedded. This converts image-based scanned documents into searchable and editable text data for downstream processing.

How do I fill PDF forms programmatically with Python?

PDF form filling is handled through a guided workflow that supports both fillable and non-fillable forms. This automates administrative workflows by injecting data directly into document templates using pypdf.

What's the best way to merge, split, or rotate PDF pages?

Merging, splitting, and rotating PDFs is managed with pypdf for page-level manipulation. This provides a unified code-driven approach to perform structural document operations end-to-end without juggling multiple tools.

Do I need system tools like pdftotext and qpdf installed for PDF processing?

Comprehensive PDF handling requires supporting CLI tools like pdftotext, pdftoppm, and qpdf alongside Python libraries. These dependencies ensure robust text extraction and document manipulation across various PDF types.

How do I generate PDF reports from Python code?

PDF generation is accomplished with reportlab for programmatic report creation. This allows you to build customized invoices and structured reports dynamically from data sources within automated workflows.