pdf

Process PDFs for text/table extraction, metadata retrieval, and document manipulation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pytesseract, pdf2image, poppler-utils, qpdf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Manually interacting with PDFs for form filling, data extraction, or document manipulation is time-consuming and error-prone. This Skill automates these tasks, saving significant effort and reducing complexity.

Core Features & Use Cases

  • Form Filling (Fillable & Non-fillable): Programmatically fill out any PDF form, including complex non-fillable ones using visual analysis and annotations.
  • Text & Table Extraction: Precisely extract text and structured tables from PDFs, even scanned documents using OCR.
  • Document Manipulation: Merge, split, rotate, watermark, and password-protect PDFs with ease.
  • Use Case: Automatically process a batch of scanned legal documents, extract key clauses and dates into a spreadsheet, and then merge them into a single, searchable PDF for easy archiving.

Quick Start

Extract all tables from the attached PDF 'quarterly_report.pdf' and save them to an Excel file.

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?

Text and table extraction from PDFs uses libraries like pdfplumber and pypdf to parse document content programmatically. For scanned documents, pytesseract with pdf2image enables OCR-based extraction, converting images to searchable text and structured table data.

Can I programmatically fill out PDF forms, including non-fillable ones?

Yes, fillable forms can be completed using pypdf and reportlab to write field values directly. Non-fillable forms require visual analysis and annotation—the Skill uses bounding-box validation and image conversion to locate and populate fields programmatically.

What's the best way to automate batch processing of multiple PDFs?

Batch PDF processing combines pypdf or pdfplumber for parsing, pytesseract for OCR on scanned documents, and reportlab for output generation. Ready-to-run scripts handle field extraction, metadata retrieval, and document manipulation across multiple files in a single workflow.

How do I merge, split, or rotate PDF pages programmatically?

Document manipulation—merging, splitting, rotating, watermarking, and password-protecting PDFs—is handled by pypdf and qpdf. These tools operate on page-level structures, allowing precise control over document assembly and transformation without manual intervention.

Do I need OCR to extract data from scanned PDF documents?

Scanned PDFs containing only images require OCR to extract text. pytesseract with pdf2image converts PDF pages to images, applies optical character recognition, and returns structured text suitable for parsing and data extraction workflows.

What are the limitations when working with complex or encrypted PDFs?

Password-protected PDFs can be handled with qpdf decryption support. Complex layouts with mixed text, images, and tables may require combining pdfplumber for precision and pytesseract for scanned regions. Encrypted forms may limit programmatic field access depending on permission flags.