pdf

Extract text and tables from PDFs with layout awareness.

190|28|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/smallnest/goskills --skill pdf-smallnest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/smallnest/goskills/tree/main/testdata/skills/document-skills/pdf
Command: npx skills add https://github.com/smallnest/goskills --skill pdf-smallnest

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines PDF workflows—from extracting text and tables to filling forms and creating new PDFs—reducing manual data handling.

Core Features & Use Cases

  • Text and table extraction from PDFs (with OCR for scanned docs)
  • Form handling: read, fill, and export fillable and non-fillable fields
  • PDF creation and manipulation: merge, split, and render to images
  • Batch processing: process large sets of PDFs efficiently

Quick Start

Example: read a document.pdf and print its text content, or extract tables into CSV.

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

Text and table extraction from PDFs uses libraries like pdfplumber for layout-aware parsing and pypdf for document access. The Skill automates extraction across document collections, with OCR support for scanned PDFs and CSV export options for tabular data.

Can I fill PDF forms and export the results at scale?

Yes, the Skill handles both fillable and non-fillable form fields programmatically, supporting annotation-based and bounding-box filling methods. Batch processing enables filling forms across large PDF sets and exporting completed documents.

How do I merge, split, and rotate PDF pages in bulk?

PDF manipulation—merging, splitting, and rotating pages—is handled by pypdf within batch workflows. The Skill processes multiple PDFs efficiently, automating repetitive document restructuring tasks.

What's the best way to create PDFs from code and render them as images?

PDF creation from code uses reportlab, while pdf2image and Pillow handle conversion to image formats. The Skill combines these to generate and transform PDFs programmatically within automated workflows.

Do I need OCR to extract text from scanned PDF documents?

Scanned PDFs require OCR for text extraction since they contain images rather than embedded text. The Skill integrates OCR capabilities alongside standard text extraction to handle diverse PDF types in batch operations.

Can I validate extracted PDF data using JSON schemas and bounding boxes?

Yes, the Skill supports JSON schema definitions and bounding-box validation to ensure extraction accuracy. These enable automated verification of extracted fields across document collections.