pdf

Automate PDF extraction, creation, merging, and form handling with Python libraries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill provides a comprehensive toolkit to automate PDF workflows, including text extraction, document creation, merging/splitting, and form handling, reducing manual data processing.

Core Features & Use Cases

  • Text and table extraction: pull content from PDFs into usable formats for analytics or archival.
  • Form handling: fill both fillable and non-fillable forms using scripted annotations or automated field values.
  • Document creation and manipulation: generate new PDFs, rotate pages, and merge or split documents for batch processing.
  • Use Case: automate processing of vendor invoices by extracting key fields (invoice number, date, total) and populating standardized reports.

Quick Start

Extract all text from sample.pdf and print the number of pages using PdfReader.

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

To extract text and tables from a PDF, Python libraries like pdfplumber and pypdf parse document content into usable formats. This approach automates pulling structured data from large volumes of documents for analytics or archival.

Can I fill both fillable and non-fillable PDF forms programmatically?

Yes, you can fill both fillable and non-fillable PDF forms programmatically. The process uses Python libraries like pypdf for automated field values and pdf2image with Pillow to render and script annotations for non-fillable documents.

What is the best way to merge, split, or rotate PDF pages in an automated workflow?

The best way to merge, split, or rotate PDF pages in an automated workflow is using Python libraries like pypdf. This enables batch processing and document manipulation by programmatically generating, combining, or reorganizing PDF files.

Does Python support batch processing for extracting invoice data from large volumes of PDFs?

Python supports batch processing for extracting invoice data from large volumes of PDFs. Using libraries like pdfplumber and pypdf, you can programmatically parse key fields such as invoice numbers and totals to populate standardized reports.

How do I render and annotate a PDF when form fields are not available?

To render and annotate a PDF when form fields are not available, use Python libraries pdf2image and Pillow. These tools convert PDF pages into images, allowing you to programmatically apply scripted annotations for automated form filling.