pdf

Extract text and tables from PDFs using Python libraries.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/Phife726/ds_agent --skill pdf-phife726
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Phife726/ds_agent/tree/main/pdf
Command: npx skills add https://github.com/Phife726/ds_agent --skill pdf-phife726

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF workloads often involve repetitive, manual steps to extract text, pull tables, merge or split documents, manipulate pages, apply watermarks, secure or decrypt PDFs, fill forms, and perform OCR on scans. This leads to slow processing, errors, and bottlenecks in document-intensive workflows.

Core Features & Use Cases

  • Automated PDF processing across common tasks: text and table extraction, merging/splitting, page rotation, watermarking, form filling, encryption/decryption, image extraction, and OCR-ready conversion.
  • Real-world scenarios include batch invoice processing, archival digitization, and standardized report generation from multiple PDFs.

Quick Start

Use this skill to extract all text from a sample document and save the results to a text file.

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 multiple PDF files in batch?

To extract text and tables from multiple PDFs in batch, you can automate the process using Python libraries like pdfplumber and pypdf. This approach parses binary streams to pull structured content across many documents for data extraction workflows.

What is the best way to automate PDF form filling and document encryption?

Automating PDF form filling and encryption involves programmatically manipulating document forms and applying security restrictions. Using pypdf, you can inject data into form fields and apply encryption to secure standardized reports and digitized archives.

Can I use Python to perform OCR on scanned PDF documents?

Yes, you can perform OCR on scanned PDFs by rendering pages to images with pdf2image and Pillow, then applying pytesseract. This OCR-ready extraction workflow converts scanned document images into machine-readable text for archiving.

Do I need pdfplumber and pypdf to merge and split PDF documents?

Yes, you need libraries like pypdf and pdfplumber to merge and split PDF documents programmatically. These dependencies allow you to parse binary streams, manipulate page structures, and output modified files for document-heavy workflows.

How do I rotate pages and apply watermarks to PDF files in Python?

To rotate pages and apply watermarks to PDF files in Python, you manipulate the document structure using pypdf. This allows precise page rotation and watermark application to standardize reports or protect intellectual property across batches of files.