pdf

Extract PDF text and tables, fill forms, and annotate fields.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Ameen-Alam/Personal-AI-Employee-system-Hackathon --skill pdf-ameen-alam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Ameen-Alam/Personal-AI-Employee-system-Hackathon/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/Ameen-Alam/Personal-AI-Employee-system-Hackathon --skill pdf-ameen-alam

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents are ubiquitous but manual extraction, form filling, and annotation workflows are tedious and error-prone. This Skill automates extraction, form handling, and annotation QA to enable scalable document processing.

Core Features & Use Cases

  • Automated text and table extraction from PDFs using pypdf and pdfplumber.
  • Form handling: fillable form automation and annotation-based rendering for non-fillable fields.
  • Validation tooling: generate validation visuals and perform bounding-box checks to QA form fields.
  • Use Case: Digitize supplier invoices by extracting core fields (invoice number, date, total) and populating a centralized data store.

Quick Start

Run extract_form_field_info.py on sample.pdf to generate fields.json, then run fill_fillable_fields.py with fields.json to create filled.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 table data from PDF invoices in Python?

To extract text and table data from PDF invoices in Python, use libraries like pypdf and pdfplumber to parse document content and populate a centralized data store for core fields such as invoice numbers, dates, and totals. This approach automates scalable document processing for teams and departments, reducing manual extraction errors.

What's the best way to automate filling fillable PDF forms using Python?

Automating fillable PDF form workflows in Python involves using libraries like pypdf to parse existing form structures. You can run a script to generate a JSON file of field data, then use that JSON to programmatically populate the fillable fields and create a completed PDF document, streamlining contract digitization and archival data extraction tasks.

How do I handle form filling and annotation for non-fillable PDF fields?

Handling form filling and annotation for non-fillable PDF fields requires rendering the document and applying annotation-based overlays. By using Python libraries such as pdf2image and Pillow, you can render PDF pages to images and draw bounding-box annotations or text directly onto the non-fillable fields to simulate form completion and perform validation checks.

Can I validate and perform bounding-box checks on PDF form fields programmatically?

Yes, you can validate and perform bounding-box checks on PDF form fields programmatically by generating validation visuals. Using Python libraries like pdf2image and Pillow, the workflow renders PDF pages into images, draws bounding boxes over detected form fields, and performs annotation-based QA to ensure form fields are accurately positioned and populated before final output.

Do I need pdf2image and Pillow to automate PDF workflows in Python?

You need pdf2image and Pillow when your PDF workflows involve rendering pages to images for visual validation or annotation tasks. While pypdf and pdfplumber handle direct text and form data extraction, pdf2image and Pillow are specifically required to parse, render, and annotate non-fillable PDF fields and generate bounding-box validation visuals.

When should I not use Python scripts for PDF data extraction and form handling?

You should avoid using Python scripts for PDF data extraction and form handling when processing encrypted or severely corrupted PDF files that pypdf cannot parse. Additionally, if your workflow requires complex layout reconstruction or OCR on scanned images without machine-readable text, these scripts may face limitations, as they primarily target automated text extraction and fillable form automation.