pdf

Extract text and tables from PDFs into CSV or JSON formats.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/jr2804/prompts --skill pdf-jr2804
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/jr2804/prompts/tree/main/skills/documents/pdf
Command: npx skills add https://github.com/jr2804/prompts --skill pdf-jr2804

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill consolidates PDF processing tasks to save time and reduce manual effort when extracting text, tables, or metadata, creating PDFs, merging or splitting documents, and handling forms.

Core Features & Use Cases

  • Automated Text and Table Extraction: Pull text and tables from PDFs into usable formats (CSV, JSON, etc.).
  • PDF Creation, Merging, and Splitting: Assemble and manipulate documents for reports or archives.
  • Form Handling: Read and fill both fillable and non-fillable forms programmatically.
  • Use Case: Process large batches of invoices to extract invoice numbers, dates, and totals, then compile into a single dataset.

Quick Start

Use the pdf skill to extract all text from the attached file 'invoice-q3.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 into usable formats?

PDF text and table extraction is handled by pdfplumber, which parses document content and outputs it into structured formats like CSV or JSON. It processes large batches of invoices or reports to consolidate scattered information into actionable datasets.

What's the best way to automate filling out PDF forms programmatically?

Automating PDF form filling is achieved through pypdf, which reads and populates both fillable and non-fillable forms programmatically. This allows you to handle bulk document generation workflows without manual data entry.

Can I create, merge, and split PDF documents using Python?

Yes, you can create, merge, and split PDF documents using Python with reportlab for document assembly and pypdf for splitting and merging. This programmatically manipulates documents for reports or archives at scale.

Does this PDF processing approach work with image-based documents?

Yes, this PDF processing approach handles image-based documents by using pdf2image and Pillow to render and manipulate PDF pages as images. This allows you to parse and process visual document elements that standard text extraction cannot handle.

What Python libraries do I need to parse and assemble PDFs at scale?

To parse and assemble PDFs at scale, you need the Python libraries pypdf, pdfplumber, pdf2image, Pillow, and reportlab. These dependencies work together to extract text, render images, and manipulate document structures.

Why are my extracted PDF tables misaligned when processing invoices?

Extracted PDF tables may be misaligned if the invoice structure is non-standard, but pdfplumber is designed to handle complex table parsing. It specifically targets structured table boundaries to minimize misalignment and ensure accurate row and column mapping.