pdf

Automate PDF text extraction, merging, splitting, and form filling in Python.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/lucasreydman/lloyd --skill pdf-lucasreydman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/lucasreydman/lloyd/tree/main/skills/pdf
Command: npx skills add https://github.com/lucasreydman/lloyd --skill pdf-lucasreydman

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDFs are rigid and tedious to work with for tasks like text extraction, table extraction, merging, splitting, and form handling. This Skill provides a programmable toolkit to automate these operations in Python, reducing manual effort and errors.

Core Features & Use Cases

  • Text and table extraction from PDFs using libraries like pypdf and pdfplumber.
  • Create, merge, split, and fill PDF forms programmatically, including non-fillable forms via annotations.
  • Use Case: Process hundreds of invoices by extracting key fields and populating a centralized spreadsheet.

Quick Start

Run a sample workflow to extract text from a PDF and save it as a plain text file.

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

To extract text and tables from PDFs in Python, this Skill uses pypdf and pdfplumber to parse document contents and output structured plain text or tabular data. It automates batch extraction across large document sets to reduce manual data entry errors.

Can I fill non-fillable PDF forms programmatically using pypdf?

Yes, you can fill non-fillable PDF forms programmatically using pypdf by applying annotations to the document. This Skill provides scripts that automate form field population and annotation placement, enabling batch processing for hundreds of documents like invoices.

What is the best way to merge and split large sets of PDF documents?

The best way to merge and split large sets of PDF documents is using this Skill's batch processing scripts powered by pypdf. It programmatically combines or divides PDF files to automate document organization workflows without manual effort.

Do I need pdf2image and Pillow to process PDFs with this toolkit?

Yes, pdf2image and Pillow are required dependencies alongside pypdf to process PDFs with this toolkit. These libraries enable the conversion of PDF pages into images and support visual annotation tasks within the end-to-end Python processing workflows.

How does automated PDF processing handle batch workflows for invoice extraction?

Automated PDF processing handles batch workflows for invoice extraction by using pypdf scripts to parse key fields from multiple documents and populate centralized spreadsheets. This reduces manual data entry errors across large invoice sets.

Are there limitations when extracting complex tables from PDF documents?

Limitations when extracting tables from PDF documents depend on the PDF's structural rigidity and formatting. While this Skill leverages pypdf and pdfplumber for extraction, heavily image-based or non-standard layouts may require additional image conversion via pdf2image for accurate parsing.