pdf

Extract text and tables from PDFs and fill forms programmatically.

Updated Oct 23, 2025
One-click install
npx skills add https://github.com/igorferreira/gestao-projetos-exemplo --skill pdf-igorferreira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/igorferreira/gestao-projetos-exemplo/tree/main/.claude/skills/pdf-anthropic
Command: npx skills add https://github.com/igorferreira/gestao-projetos-exemplo --skill pdf-igorferreira

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solves? This Skill eliminates the tedious, manual work of filling out PDF forms and extracting critical data from documents. It saves you hours of repetitive effort, reduces human error, and enables programmatic handling of PDF documents at scale, allowing you to focus on higher-value tasks.

Core Features & Use Cases

  • Automated Form Filling: Programmatically fill both fillable and non-fillable PDF forms with precise text annotations, ensuring accuracy and compliance.
  • Advanced Data Extraction: Extract text, structured tables, and metadata from any PDF, including scanned documents using powerful OCR capabilities.
  • Comprehensive Document Manipulation: Merge, split, rotate, and password-protect PDFs, or create entirely new documents from scratch.
  • Use Case: Automatically process a batch of scanned legal contracts, extract key clauses and dates into a database, and then fill out a summary report form, all without manual intervention.

Quick Start

Example: Extracting text from a PDF

from pypdf import PdfReader

reader = PdfReader("document.pdf") text = "" for page in reader.pages: text += page.extract_text() print(f"Extracted {len(text)} characters from the 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 PDF documents programmatically?

Extract text and tables from PDFs using libraries like pdfplumber and pypdf, which parse page content directly. For scanned documents, apply pytesseract with pdf2image to convert pages to images and run OCR, returning structured text suitable for data pipelines and database ingestion.

Can I automatically fill PDF forms with data?

Yes, fillable PDF forms can be populated programmatically by extracting field names and writing values to form fields. Non-fillable forms can be filled using text annotations. This enables batch processing of form documents without manual data entry.

What's the best way to merge, split, and manipulate multiple PDF files?

Use pypdf to merge pages from multiple PDFs into a single document, split large files into smaller chunks, rotate pages, and apply password protection. This approach scales to large collections and integrates seamlessly into automated report generation workflows.

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

Scanned PDFs contain images rather than selectable text, so OCR is necessary to extract readable content. Pytesseract converts scanned pages to text; combine it with pdf2image to process entire documents automatically.

Can I create new PDF documents and generate reports programmatically?

Yes, reportlab lets you create PDFs from scratch, generate formatted reports, and add text, tables, and graphics. Combine it with data extraction and form-filling workflows to build end-to-end document automation pipelines.

What are the limitations when working with encrypted or password-protected PDFs?

Password-protected PDFs require decryption before text extraction and manipulation are possible. Some encrypted files restrict certain operations; verify permissions before attempting bulk processing to avoid runtime errors in automated workflows.