One-click install
npx skills add https://github.com/deichworx/smart-swap --skill pdf-deichworx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/deichworx/smart-swap/tree/main/skills/pdf
Command: npx skills add https://github.com/deichworx/smart-swap --skill pdf-deichworx

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents are ubiquitous but performing repetitive tasks like text extraction, table parsing, form filling, and document composition is tedious and error-prone. This skill provides a programmable toolkit to automate these tasks end-to-end.

Core Features & Use Cases

  • Text and data extraction: pull text and tables from PDFs for indexing, analysis, or data entry.
  • Form handling: fill both fillable and non-fillable forms programmatically or annotate documents for manual review.
  • Document composition: merge, split, rotate, and create PDFs for reporting and archiving.
  • Use Case: batch process hundreds of invoices to extract line items and populate a CSV, or auto-fill client intake forms from a data source.

Quick Start

Use the pdf skill to extract all text from the attached file 'document.pdf' and then demonstrate form filling with 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 files using Python?

To extract text and tables from PDFs using Python, this skill uses pypdf for reading text and metadata, with optional pdfplumber support for advanced table extraction. It handles both single-document and batch processing workflows.

Can I automatically fill PDF forms from a data source with Python?

Yes, you can automatically fill PDF forms from a data source with Python. This skill programmatically handles both fillable and non-fillable forms, allowing you to populate client intake forms or annotate documents for manual review.

What is the best way to batch process PDF invoices for data extraction?

The best way to batch process PDF invoices for data extraction is using a Python automation script. This skill processes hundreds of invoices to extract line items and populate a CSV, relying on pypdf, pdf2image, and Pillow to read and render documents.

Does pypdf support merging and splitting documents for report generation?

Yes, pypdf supports merging, splitting, and rotating documents for report generation. This skill uses pypdf alongside Pillow to read, render, and assemble new PDFs for archiving and automated reporting workflows.

How do I convert PDF pages to images for annotation in Python?

To convert PDF pages to images for annotation in Python, this skill uses the pdf2image and Pillow libraries. It renders PDF documents into images, enabling you to annotate non-fillable forms or visually review extracted data.

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

The limitations of using pypdf for PDF text extraction include handling complex table structures, which requires the optional pdfplumber dependency for advanced extraction. Standard pypdf is best utilized for straightforward text, metadata reading, and document assembly.