pdf

Extract text, tables, and images from PDF files using Python libraries.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/duyle10xba1901/train-agent --skill pdf-duyle10xba1901
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/duyle10xba1901/train-agent/tree/main/pdf
Command: npx skills add https://github.com/duyle10xba1901/train-agent --skill pdf-duyle10xba1901

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Handling PDF reading, extraction, merging, splitting, watermarking, and form filling by hand wastes time and invites errors, especially when files are scanned, encrypted, or come in large batches.

Core Features & Use Cases

  • Comprehensive PDF toolkit: Detailed guidance on using Python libraries (pypdf, pdfplumber, reportlab, pypdfium2) and command-line utilities (qpdf, pdftotext, pdfimages) to read, extract text/tables, rotate pages, merge documents, and optimize files for delivery.
  • Form handling workflows: Step-by-step instructions for identifying fillable fields, creating field definitions with precise coordinates, running annotation-based filling scripts, and validating bounding boxes before generation.
  • Advanced references and examples: Links to reference material for JavaScript libraries (pdf-lib, pdfjs-dist), OCR pipelines, and troubleshooting strategies for encrypted or damaged PDFs.

Quick Start

Ask the pdf skill to extract text, tables, and images from document.pdf and summarize the key data.

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, use Python libraries like pdfplumber and pypdf. These tools automate text and table extraction from document files for reporting, compliance, and archiving workflows.

What is the best way to automate filling fillable fields in PDF forms?

Automating PDF form filling involves identifying fillable fields, creating field definitions with precise coordinates, and running annotation-based filling scripts. This process requires Python libraries such as pypdf to validate bounding boxes before generation.

How do I process scanned PDFs that need OCR for text extraction?

Processing scanned PDFs with OCR requires converting documents using pdf2image and Pillow. These dependencies transform scanned pages into images, enabling optical character recognition pipelines to extract text from otherwise unreadable files.

Can I merge, split, and watermark encrypted PDF files deterministically?

Yes, you can merge, split, and watermark encrypted PDF files. The toolkit uses command-line utilities like qpdf alongside pypdf to handle encrypted or damaged document files for archiving scenarios.

Does Python PDF processing work with JavaScript libraries like pdf-lib?

Yes, Python PDF processing workflows can reference JavaScript libraries like pdf-lib and pdfjs-dist. The toolkit provides advanced references and troubleshooting strategies for integrating these tools when handling complex document transformation tasks.