pdf

Fill PDF forms and extract text and tables using Python libraries.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/allanninal/claude-code-skills --skill pdf-allanninal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/allanninal/claude-code-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/allanninal/claude-code-skills --skill pdf-allanninal

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the tedious manual process of filling out PDF forms and extracting data from documents, saving significant time and reducing errors.

Core Features & Use Cases

  • Fillable Form Filling: Programmatically populate fields in PDFs that have pre-defined form elements.
  • Non-Fillable Form Filling: Add text annotations to PDFs that lack fillable fields, based on visual analysis and defined bounding boxes.
  • Data Extraction: Extract text and tables from PDFs into structured formats like JSON or CSV.
  • Use Case: Automatically process a batch of standardized application forms by extracting data from fillable fields or by adding annotations to specific areas, then compiling the extracted information into a report.

Quick Start

Use the pdf skill to fill out the form in 'application.pdf' using the data provided in 'application_data.json'.

Frequently Asked Questions about pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate filling out PDF forms that don't have fillable fields?

To extract text and tables from PDF documents into structured formats, use pdfplumber. It processes PDF content, enabling you to parse and export tabular data into structured outputs like JSON or CSV for downstream analysis.

Can I process multiple PDF forms in a batch?

Yes, batch processing of PDF forms is supported. You can automate the extraction of data from multiple fillable fields or add annotations across a standardized batch of application forms, compiling the extracted information into a consolidated report.

Does this approach work with scanned PDFs that require OCR?

Yes, scanned PDFs are handled using pdf2image and pytesseract. These libraries convert PDF pages into images and apply optical character recognition, allowing text extraction from non-digital or image-based documents.

What is the best way to populate fillable PDF fields programmatically?

The best way to populate fillable PDF fields programmatically is using pypdf. It automates writing data into pre-defined form elements, handling form validation and coordinate transformation to ensure accurate document generation.

How do I extract tables from PDF documents into JSON or CSV?

To extract text and tables from PDF documents into structured formats, use pdfplumber. It processes PDF content, enabling you to parse and export tabular data into structured outputs like JSON or CSV for downstream analysis.