pdf

Automate PDF text and table extraction, merging, splitting, and form filling.

2|2|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/szweibel/claude-skills --skill pdf-szweibel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/szweibel/claude-skills/tree/main/pdf
Command: npx skills add https://github.com/szweibel/claude-skills --skill pdf-szweibel

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate PDF processing tasks such as text and table extraction, PDF creation, merging/splitting, and form handling to reduce manual toil and scale document workflows.

Core Features & Use Cases

  • PDF text & table extraction: pull content and structured tables from documents for downstream processing.
  • PDF creation & composition: generate new PDFs, compose multi-document outputs, and apply simple page-level operations.
  • Form handling: fill fillable forms or annotate non-fillable forms with guidance from the included forms workflow.
  • Batch & automation: apply the same PDF-processing steps across large collections (invoices, reports, contracts) to save time and minimize errors.
  • Use Case: automatically extract invoice numbers, dates, and totals from hundreds of PDFs, then compile results into a CSV for analysis.

Quick Start

Use the pdf skill to extract text and tables from a document.pdf and create a merged output if needed.

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 automatically?

Text and table extraction from PDFs uses libraries like pdfplumber and pypdf to pull structured content from documents. These tools parse PDF structure, identify text blocks and table layouts, and output the data for downstream processing such as CSV compilation or database insertion.

Can I fill fillable PDF forms programmatically?

Fillable PDF forms can be populated using form-handling scripts that locate and fill form fields via pypdf or direct annotation. The Skill includes workflows to extract form field information, map data to fields, and write values directly into the PDF.

How do I process large batches of PDFs with the same operations?

Batch PDF processing applies consistent operations—text extraction, merging, form filling, watermarking—across document collections via Python scripts. Automation reduces manual toil and minimizes errors when handling hundreds of invoices, reports, or contracts.

What's the best way to merge, split, or combine multiple PDF files?

PDF merging and splitting uses pypdf and reportlab to combine pages from multiple documents or extract specific page ranges into new outputs. These operations support composition workflows where multi-document outputs are generated from individual or partial source files.

Can I convert images or scanned documents into searchable PDFs?

Image-to-PDF conversion with pytesseract and Pillow transforms scanned documents into searchable PDFs through OCR. The Skill supports coordinate transformations to map text recognition results back to PDF space for form annotation and data extraction.

Do I need command-line tools or can I use Python libraries alone?

Both approaches work: Python libraries (pypdf, pdfplumber, reportlab) provide programmatic control within Python workflows, while command-line tools (pdftotext, qpdf, pdftk) offer shell integration. The Skill supports both for flexibility across automation contexts.