pdf

Extract text and tables from PDFs using Python libraries.

7|3|Updated May 4, 2026
One-click install
npx skills add https://github.com/nopperabbo/codebuddy2api --skill pdf-nopperabbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/nopperabbo/codebuddy2api/tree/main/opencode-config/skills/pdf
Command: npx skills add https://github.com/nopperabbo/codebuddy2api --skill pdf-nopperabbo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PDFs are ubiquitous but extracting text, tables, form data, and metadata, or composing multiple documents, is often manual and error-prone. This skill provides a unified, code-driven workflow to automate reading, parsing, and transforming PDFs for reporting, data analysis, and archival tasks.

Core Features & Use Cases

  • Text extraction: pull text from pages, preserve layout, and gather metadata using libraries like pypdf and pdfplumber.
  • Table extraction and conversion: detect tables and export to CSV/Excel for downstream analytics.
  • Form handling and annotation: fill fillable forms, annotate non-fillable fields, and perform OCR on scanned PDFs when needed.
  • Document assembly: merge, split, rotate, watermark, and generate consolidated PDFs for workflows.

Quick Start

Run a sample script to extract all text from example.pdf and print the page count.

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 files for data analysis?

To extract text and tables from PDF files, this skill uses Python libraries like pypdf and pdfplumber to parse pages, preserve layout, detect tables, and export structured data to CSV or Excel for downstream analytics.

Can I fill out fillable PDF forms and run OCR on scanned documents?

Yes, you can fill fillable PDF forms, annotate non-fillable fields, and perform OCR on scanned PDFs. It applies Python libraries to automate form handling and extract text from image-based documents for reliable outputs.

What is the best way to merge, split, and assemble multiple PDFs?

The best way to assemble PDFs is using this skill's document assembly features to merge, split, rotate, and watermark documents. It consolidates multiple files into automated workflows for administrative and archival tasks.

Does this PDF data extraction approach work with Python libraries like pdfplumber?

Yes, this PDF data extraction approach works with Python libraries like pdfplumber, pypdf, and pdf2image. It leverages these dependencies to parse content, extract structured data, and generate validated outputs.

Why does my PDF text extraction fail on scanned files?

PDF text extraction fails on scanned files because they contain images rather than embedded text. You need OCR processing, which this skill applies using pdf2image to convert scanned pages and extract text reliably.