pdf

Extract text, tables, and images from PDFs using Python libraries.

Updated Jan 26, 2023
One-click install
npx skills add https://github.com/yuyalun-allen/dotfiles --skill pdf-yuyalun-allen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/yuyalun-allen/dotfiles/tree/main/tools/pi/agent/skills/pdf
Command: npx skills add https://github.com/yuyalun-allen/dotfiles --skill pdf-yuyalun-allen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, Pillow.

What problem does it solve?

PDFs are ubiquitous in business but working with them—extracting text and tables, merging, splitting, filling forms, watermarking, encrypting, and applying OCR—often requires juggling multiple tools. This skill provides a unified, programmable workflow to perform these tasks efficiently and reproducibly.

Core Features & Use Cases

  • Read, extract text, tables, and images from PDFs for data pipelines and archival records.
  • Merge, split, rotate, watermark, create new PDFs, fill forms, and encrypt/decrypt as needed.
  • OCR support for scanned PDFs to enable search, indexing, and accessibility.

Quick Start

Tell me the PDF task you want to perform (e.g., extract text from document.pdf, merge doc1.pdf and doc2.pdf, or fill a form) and I will execute it.

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 document?

You can extract text and tables from PDFs using pdfplumber and pypdf to parse structured data. This skill handles both native text and scanned documents via OCR for data pipelines and archival workflows.

Can I merge, split, and watermark PDF files programmatically?

Yes, you can merge, split, rotate, and watermark PDF files programmatically. This skill provides a unified workflow to manipulate document structures and apply watermarks for administrative and archival batch processing.

How do I fill out both fillable and non-fillable PDF forms?

To fill PDF forms, this skill validates coordinates and form fields to handle both fillable and non-fillable documents. It uses built-in tooling to accurately map and populate form fields for administrative workflows.

Does this PDF processing skill support OCR for scanned documents?

Yes, this PDF processing skill supports OCR for scanned documents by rendering pages to images with pdf2image and Pillow. This enables text search, indexing, and accessibility for scanned archival records.

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

The best way to batch process multiple PDF files for data extraction is using a unified programmable workflow. This skill applies text extraction, table parsing, and OCR across many files reproducibly for data-management tasks.

How do I encrypt and decrypt PDF documents for secure archival?

You can encrypt and decrypt PDF documents for secure archival using this skill's built-in manipulation tooling. It applies encryption protocols to protect sensitive administrative records during data-management workflows.