pdf

Extract text, merge, split, and fill PDF forms programmatically.

4|Updated Sep 6, 2013
One-click install
npx skills add https://github.com/mway/dotfiles --skill pdf-mway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/mway/dotfiles/tree/main/home/dot_codex/skills/pdf
Command: npx skills add https://github.com/mway/dotfiles --skill pdf-mway

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a programmable way to work with PDF documents, including reading, merging, splitting, and filling forms, to automate repetitive PDF tasks across workflows.

Core Features & Use Cases

  • Programmatic PDF reading, merging, splitting, and text extraction with support for fillable and non-fillable forms.
  • Form handling and annotation: fill, validate, and optionally annotate PDFs to prepare for downstream processing.
  • Batch processing and automation: integrate into admin workflows for invoices, contracts, reports, and archival document processing.

Quick Start

Merge two PDFs into one and extract all text from the merged document.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract text from PDF files automatically in Python?

You can extract text from PDF files programmatically using Python libraries like pypdf. This Skill automates text extraction and parsing, allowing you to process documents like invoices and contracts in batch workflows without manual data entry.

What's the best way to merge and split PDF documents for batch processing?

The best way to merge and split PDF documents is using a programmatic automation Skill that leverages pypdf. It handles document assembly by combining multiple PDFs or separating pages, integrating seamlessly into administrative archival workflows.

Can I fill and validate fillable PDF forms using Python?

Yes, you can fill and validate fillable PDF forms using Python. This Skill supports form handling and annotation, enabling you to programmatically populate fields, validate inputs, and prepare PDFs for downstream administrative processing.

Does this PDF automation Skill work with scanned images and non-fillable forms?

Yes, this Skill processes non-fillable forms and works with scanned images by leveraging pdf2image and Pillow. These dependencies convert visual PDF content and handle document images, extending automated parsing capabilities beyond standard text layers.

How do I automate invoice processing and contract management with PDFs?

You can automate invoice processing and contract management by integrating this Skill into your administrative workflows. It programmatically reads, extracts text, and assembles PDFs, streamlining repetitive document handling tasks like batch archival.

What are the limitations of using pypdf for PDF text extraction?

When using pypdf for PDF text extraction, limitations arise with complex layouts or scanned documents lacking text layers. This Skill mitigates these constraints by incorporating pdf2image and Pillow to handle visual document conversion and processing.