pdf

Extract text and structured tables from PDF documents.

2|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/papachong/RHClaw --skill pdf-papachong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/papachong/RHClaw/tree/main/RHClaw-Desktop/src-tauri/skills/pdf
Command: npx skills add https://github.com/papachong/RHClaw --skill pdf-papachong

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many workflows rely on information trapped in PDFs — scanned receipts, invoices, reports, and fillable forms — and extracting, editing, or programmatically filling those documents by hand is slow, error-prone, and hard to scale. This Skill provides reproducible, scriptable operations to extract text and tables, perform OCR on scanned pages, fill and flatten forms, and merge or split documents to automate those tasks.

Core Features & Use Cases

  • Text and Table Extraction: Parse page text and structured tables from born-digital and scanned PDFs for downstream data analysis.
  • Automated Form Filling: Populate fillable and template-based PDFs programmatically and optionally flatten or encrypt results.
  • Create and Manipulate PDFs: Generate reports, merge multiple sources, split pages, rotate, watermark, and set password protection for distribution.
  • OCR and Image Extraction: Convert scanned pages to images, run OCR to recover text, and extract embedded images for archival or processing.
  • Use Cases: Batch-extract invoice data into CSV, auto-fill application forms, redact and watermark outgoing PDFs, and rebuild multi-page reports from fragments.

Quick Start

Extract all tables and text from invoices.pdf and combine them into a single CSV named invoices.csv.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract tables and text from PDF documents for data analysis?

To extract tables and text from PDF documents, you can parse born-digital pages using pdfplumber and pypdf to retrieve structured table data and raw text for downstream processing. Scanned PDFs require OCR via pytesseract to recover text.

Can I batch extract invoice data from PDFs into a CSV file?

You can batch extract invoice data from PDFs into a CSV file by scripting text and table extraction operations with pdfplumber and pypdf. This automates the retrieval of invoice data from multiple PDF sources and aggregates it into a single CSV output.

What is the best way to programmatically fill and flatten PDF forms?

The best way to programmatically fill and flatten PDF forms is to use a scriptable tool that populates fillable and template-based PDFs, optionally flattening or encrypting the results. This automates form completion and secures the final output for distribution.

Does OCR work on scanned PDFs to recover text for downstream processing?

OCR works on scanned PDFs to recover text by converting pages to images with pdf2image and applying pytesseract. This OCR-based recovery extracts text from scanned receipts and invoices, making it available for downstream data analysis workflows.

How do I merge, split, and watermark PDF files for distribution?

To merge, split, and watermark PDF files for distribution, you can use command-line tools like qpdf alongside programmatic libraries. This allows you to combine multiple sources, split pages, rotate, and apply watermarks or password protection to output documents.

What are the limitations of pypdf and pdfplumber for PDF text extraction?

Limitations of pypdf and pdfplumber for PDF text extraction include difficulty parsing scanned documents without OCR, as these libraries primarily target born-digital PDFs. Scanned pages must be converted to images and processed via pytesseract to recover text effectively.