pdf

Extract text and tables from PDFs and fill forms programmatically.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill provides a comprehensive toolkit for automating tedious PDF tasks, including form filling, text/table extraction, and document manipulation. It eliminates manual data entry and complex PDF processing, saving significant time and ensuring accuracy for large-scale document workflows.

Core Features & Use Cases

  • Automated Form Filling: Programmatically fill both fillable and non-fillable PDF forms with precise text annotations.
  • Text & Table Extraction: Extract structured text and tables from PDFs, including scanned documents using OCR.
  • Document Manipulation: Merge, split, rotate, and password-protect PDF documents.
  • PDF Creation: Generate new PDFs from scratch using reportlab.
  • Use Case: Automatically extract invoice details (invoice number, amount, date) from a batch of 50 PDF invoices and compile them into a CSV file for accounting, or fill out a standardized application form for multiple users.

Quick Start

Use the pdf skill to extract all text from the attached 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 PDF files programmatically?

Text and table extraction from PDFs uses libraries like pdfplumber and pytesseract to read structured content directly. For scanned documents, OCR processes image-based PDFs to recover text. This skill automates extraction at scale, outputting structured data ready for CSV or database import.

Can I automatically fill PDF forms with data from a spreadsheet or database?

Automated form filling uses pypdf and reportlab to populate fillable and non-fillable PDF forms with programmatic text placement and annotations. This skill enables batch processing of standardized forms, eliminating manual data entry across hundreds of documents.

What's the best way to merge, split, or manipulate multiple PDF documents?

PDF manipulation combines pypdf, qpdf, and pdftk to merge pages, split documents, rotate content, and add password protection. This skill handles document workflows at scale, from splitting multi-page scans into individual records to consolidating reports into single files.

How do I extract data from scanned invoices or receipts into structured format?

Scanned document extraction applies OCR via pytesseract and pdf2image to convert images to text, then extracts fields like invoice number, amount, and date. This skill automates invoice processing pipelines, converting paper or image-based PDFs into queryable data.

Can I generate new PDFs from scratch with Python?

PDF generation uses reportlab to create new documents programmatically with custom layouts, text, and images. This skill enables dynamic report generation, certificate creation, and document automation without manual design tools.

Do I need OCR to extract data from all PDF types?

OCR is only needed for scanned or image-based PDFs; text-based PDFs extract directly with pdfplumber or pypdf. This skill automatically detects PDF type and applies OCR only when necessary, optimizing speed for large-scale processing.