pdf

Extract text and data from PDF documents using Python libraries.

415|49|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Darwin-Agent/HarnessX --skill pdf-darwin-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Darwin-Agent/HarnessX/tree/main/extensions/skills/pdf
Command: npx skills add https://github.com/Darwin-Agent/HarnessX --skill pdf-darwin-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines the heavy-lift tasks involved in working with PDF documents, such as extracting text and tables, merging files, rotating pages, filling forms, and applying OCR to scanned PDFs, enabling automation and reproducibility.

Core Features & Use Cases

  • Automated PDF text and data extraction across multiple libraries (pypdf, pdfplumber, pdf2image).
  • PDF creation, merging, splitting, and page manipulation.
  • Form filling and annotation support for both fillable and non-fillable PDFs.
  • OCR on scanned PDFs and image-based extraction to searchable text.
  • Use Case: Process a batch of invoices to extract key fields and generate a consolidated CSV.

Quick Start

Process a PDF by reading its content, extracting text and images, and merging documents as needed using the provided scripts.

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 using Python?

Extracting text and tables from PDF documents is done by parsing binary PDF streams using Python libraries like pdfplumber and pypdf. This skill leverages these tools to automate data extraction across varied PDF formats, converting static reports into actionable data.

What is the best way to automate filling PDF forms with Python?

Automating PDF form filling is achieved using Python tools that support form digitization for both fillable and non-fillable documents. This skill manages form interactions by parsing PDF structures to populate fields and generate completed documents.

Can I apply OCR to scanned PDFs to make them searchable?

Yes, you can apply OCR to scanned PDFs by rendering pages into images using pdf2image, which prepares the content for optical character recognition. This workflow converts image-based PDFs into searchable text, making scanned documents fully editable.

Does Python support merging and splitting PDF files for document consolidation?

Python supports merging and splitting PDF files for document consolidation through libraries like pypdf. This skill provides scripts to manipulate pages directly, allowing you to merge multiple files, split large documents, and rotate pages for organized workflows.

How do I process a batch of invoices to extract key fields and generate a CSV?

Processing a batch of invoices to generate a consolidated CSV involves extracting key fields from each PDF using text extraction and table parsing tools. This skill automates reading invoice data and transforming it into a structured CSV format for reporting.