pdf

Extract text and tables from PDF files using Python libraries.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/MoonBoi9001/claude-code-cli-tools --skill pdf-moonboi9001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/MoonBoi9001/claude-code-cli-tools/tree/main/skills/pdf
Command: npx skills add https://github.com/MoonBoi9001/claude-code-cli-tools --skill pdf-moonboi9001

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Manually handling PDF files—reading, extracting content, merging, splitting, rotating, or adding watermarks—is time‑consuming and error‑prone, especially when dealing with many documents or scanned images.

Core Features & Use Cases

  • Text & Table Extraction: Pull plain text or structured tables from any PDF using pypdf, pdfplumber, or OCR.
  • PDF Manipulation: Merge, split, rotate pages, add watermarks, and encrypt/decrypt files with command‑line tools or Python libraries.
  • PDF Creation: Generate new PDFs from scratch or programmatically add content with reportlab.
  • Form Handling: Fill fillable forms or annotate non‑fillable forms using the provided scripts.
  • Use Case Example: Quickly process a batch of scanned invoices, extract invoice numbers and totals, and compile them into a CSV for accounting.

Quick Start

Ask the pdf skill to extract all text from the 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 scanned PDF?

PDF text and table extraction from scanned documents is handled using OCR, pdfplumber, and pypdf libraries. This Skill processes invoices, forms, and reports to pull structured data or plain text directly into automation pipelines.

What's the best way to merge, split, and rotate PDF pages in Python?

Merging, splitting, and rotating PDF pages is handled by command-line tools like qpdf and Python libraries like pypdf. This Skill modifies document structures programmatically, enabling batch processing and manipulation of multiple PDF files.

Can I extract invoice numbers and totals from a batch of PDFs to compile into a CSV?

Yes, extracting invoice numbers and totals from a batch of PDFs into a CSV is supported. This Skill applies text extraction and OCR to read financial data from invoices, feeding the extracted values into accounting automation pipelines.

Does this PDF extraction approach work with fillable forms and watermarks?

Yes, this PDF extraction approach works with fillable forms and watermarks. It supports filling fillable forms, annotating non-fillable forms, and adding watermarks using Python libraries and CLI tools like qpdf.

How do I generate a new PDF from scratch or add content programmatically?

Generating a new PDF from scratch or adding content programmatically is achieved using the reportlab library. This Skill creates new documents or appends content to existing ones, supporting automated PDF creation workflows.

Why does OCR fail on some PDF files and how is it handled?

OCR limitations on certain PDF files are mitigated by combining pdfplumber, pypdfium2, and pdftotext. This Skill dynamically switches between direct text extraction and OCR methods to handle varying document qualities and layouts.