pdf

Extract text, tables, images, and form field metadata from PDFs.

24|8|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/vadimcomanescu/codex-skills --skill pdf-vadimcomanescu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/vadimcomanescu/codex-skills/tree/main/skills/.experimental/devtools/pdf
Command: npx skills add https://github.com/vadimcomanescu/codex-skills --skill pdf-vadimcomanescu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Many workflows require manual copying from PDFs, filling forms, or converting scanned pages into structured data; this skill removes that repetitive, error-prone work by providing programmatic extraction, validation, and filling tools.

Core Features & Use Cases

  • Automated form filling: Fill native PDF form fields or add text annotations to non-fillable forms with validation for field IDs and page locations.
  • Text, table, and image extraction: Extract full-page text, detect and export tables, and pull embedded images with OCR fallback for scanned documents.
  • Validation and tooling: Convert pages to images, create visual validation overlays, and run bounding-box intersection and size checks before annotating.
  • Use Case: Batch-process vendor invoices to extract invoice numbers, dates, line-item tables, and populate a centralized CSV while generating filled copies for records.

Quick Start

Convert a PDF to images, extract text and tables into structured output, validate annotation boxes, and write filled PDFs using the provided scripts.

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 invoices for batch processing?

To extract text and tables from PDF invoices, you can programmatically parse documents using pypdf and pdfplumber to pull full-page text, detect line-item tables, and export the structured data into a centralized CSV.

Can I programmatically fill PDF form fields and add text annotations to non-fillable documents?

You can programmatically fill native PDF form fields and add text annotations to non-fillable documents, applying validation for field IDs and page locations before writing the filled copies for your records.

Does pypdf work with scanned PDFs that require OCR text extraction?

For scanned PDFs requiring OCR text extraction, pypdf alone is insufficient, but you can convert pages to images using pdf2image and Pillow to process the scanned content and pull embedded data.

What is the best way to validate bounding boxes before annotating PDF documents?

The best way to validate bounding boxes before annotating PDF documents is to run programmatic bounding-box intersection and size checks, creating visual validation overlays to ensure accurate placement.

How do I merge, split, and manipulate PDF documents programmatically?

You can merge, split, and manipulate PDF documents programmatically by applying pypdf and pdfplumber parsing tools to extract pages, combine multiple files, and restructure the document workflows.

What are the limitations of extracting embedded images from PDF files using Python?

Limitations of extracting embedded images from PDF files include handling complex page layouts and scanned pages, which require converting pages to images with pdf2image and applying OCR fallback for accurate retrieval.