pdf

Extract text and tables from PDFs using Python libraries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nksrentas/ai-stash --skill pdf-nksrentas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/nksrentas/ai-stash/tree/main/skills/pdf
Command: npx skills add https://github.com/nksrentas/ai-stash --skill pdf-nksrentas

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates PDF processing—from extracting text and tables to filling forms and creating PDFs, reducing manual document handling.

Core Features & Use Cases

  • Text & Table Extraction: Pull structured content from PDFs.
  • PDF Manipulation: Merge/split, rotate, rotate, and annotate PDFs.
  • Form Filling & Validation: Fill fillable forms and annotate non-fillable ones.

Quick Start

Use the PDF skill to extract text from document.pdf or fill a form using the provided field 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 PDF documents?

Text and table extraction from PDFs uses libraries like pdfplumber and pypdf to pull structured content directly from document pages. These tools parse PDF structure to recover text, preserve table layouts, and handle both simple and complex document formats programmatically.

Can I fill fillable forms in PDF files programmatically?

Yes, form filling automates PDF form completion by writing field data directly into form fields using pypdf and related libraries. This approach handles both fillable forms and enables annotation of non-fillable PDFs for scalable document automation.

What's the best way to merge, split, or rotate PDF pages?

PDF manipulation combines multiple documents or reorganizes pages using pypdf, which supports merging PDFs into single files, splitting by page range, and rotating pages. These operations enable batch processing and document reorganization without manual intervention.

Do I need command-line tools or can I use Python libraries for PDF processing?

Both approaches work: Python libraries like pypdf, pdfplumber, and pdf2image handle most tasks programmatically, while CLI tools such as pdftotext, qpdf, and pdftk provide command-line alternatives. Python libraries integrate directly into workflows for scalable automation.

Can PDF processing handle different document types and form scenarios?

Yes, PDF processing works across diverse document types—scanned images, native PDFs, and filled forms—using libraries like pdf2image for conversion and pytesseract for OCR when needed. This flexibility supports varied form scenarios and document sources in single workflows.

What are the limitations when working with scanned or image-based PDFs?

Scanned PDFs require OCR processing via pytesseract to extract text, since standard text extraction tools cannot read embedded images. Complex layouts or poor scan quality may reduce accuracy, necessitating validation and manual correction for critical documents.