pdf

Extract text and tables from PDFs into JSON or Excel.

Updated Apr 10, 2025
One-click install
npx skills add https://github.com/LeighAtkins/OpenPaint --skill pdf-leighatkins
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/LeighAtkins/OpenPaint/tree/main/.agents/skills/pdf
Command: npx skills add https://github.com/LeighAtkins/OpenPaint --skill pdf-leighatkins

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 process of filling out PDF forms and extracting data from PDF documents, saving significant time and reducing manual effort.

Core Features & Use Cases

  • Fillable and Non-Fillable Forms: Handles both types of PDF forms, either by directly updating form fields or by adding text annotations.
  • Data Extraction: Extracts text and tables from PDFs, converting them into structured formats like JSON or Excel.
  • Use Case: Automatically process a batch of customer intake forms by extracting contact information and service requests, or generate a PDF report from structured data.

Quick Start

Use the pdf skill to fill out the form in 'application.pdf' with the provided data in 'applicant_data.json'.

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 into structured formats?

To extract text and tables from PDFs into structured formats, you can use libraries like pdfplumber and pypdf to parse the document content and convert it into JSON or Excel files for further data processing.

How do I automate filling out PDF forms with data from a JSON file?

You can automate filling PDF forms by mapping JSON data to PDF form fields using pypdf, directly updating fillable fields or adding text annotations for non-fillable forms to streamline document generation.

What is the best way to process non-fillable PDF forms programmatically?

Processing non-fillable PDF forms programmatically involves adding text annotations at precise coordinates using libraries like pypdf, bypassing the need for native interactive form fields to overlay data.

Does this PDF automation approach work with scanned documents requiring OCR?

Yes, this PDF automation approach supports scanned documents by utilizing the pytesseract and pdf2image dependencies, enabling OCR capabilities to extract text from image-based PDF files.

Can I generate a new PDF report from structured data using Python?

Generating a new PDF report from structured data is supported through Python libraries, allowing you to programmatically create and output formatted PDF documents from raw data inputs.

Why does pdfplumber fail to extract tables from flattened PDF documents?

pdfplumber may fail to extract tables from flattened PDFs when the document lacks embedded text layers, requiring OCR via pytesseract to recognize and extract the table data.