pdf

Extract text, tables, and images from PDFs and fill forms.

Updated May 15, 2026
One-click install
npx skills add https://github.com/lth0/codexSkill --skill pdf-lth0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/lth0/codexSkill/tree/main/skills/agents/pdf
Command: npx skills add https://github.com/lth0/codexSkill --skill pdf-lth0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, PIL, pdf-lib, pypdfium2, qpdf, poppler-utils, pytesseract, reportlab, pdfjs-dist, ImageMagick, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill removes the hassle of manually handling PDF files by giving you repeatable ways to read, transform, and extract their contents.

Core Features & Use Cases

  • Text, tables, and metadata extraction from PDFs (including layout-oriented approaches).
  • PDF transformations such as merging, splitting, page rotation, watermarking, encryption/decryption, and image extraction.
  • PDF form handling for both true fillable form fields and non-fillable forms via annotation-based filling (with optional OCR support for scanned PDFs).
  • Use case: You receive a scanned, multi-page application PDF and need to extract readable text, locate form fields, and produce a completed output PDF for submission.

Quick Start

Ask: “Use the pdf skill to extract searchable text from this scanned document.pdf, then fill the PDF form fields and output a completed filled.pdf.”

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 a PDF using Python?

To extract text and tables from a PDF using Python, this skill uses pypdf and pdfplumber parsing to process raw documents and output usable text and structured table data. It applies layout-oriented approaches to maintain extraction accuracy.

Can I fill a scanned PDF form that does not have fillable fields?

You can fill a scanned PDF form without fillable fields using annotation-based form completion. This skill applies coordinate handling and optional OCR via pytesseract to locate layout positions and produce a completed output PDF.

What is the best way to apply OCR to a scanned PDF document?

The best way to apply OCR to a scanned PDF is converting pages to images with pdf2image and processing them through pytesseract. This skill automates this workflow to turn scanned, non-searchable documents into usable extracted text.

How do I merge, split, and encrypt PDF files in Python?

To merge, split, and encrypt PDF files in Python, this skill executes standard PDF manipulation operations using pypdf. It combines documents, extracts specific pages, and applies encryption to secure the output files.

Does pypdf work with pdfplumber for form filling and text extraction?

Pypdf works with pdfplumber for form filling and text extraction by dividing parsing tasks based on layout complexity. This skill uses pypdf for core PDF editing and fillable fields, while pdfplumber handles layout-oriented text and table extraction.

What are the limitations of extracting tables from complex PDF layouts?

Extracting tables from complex PDF layouts faces limitations when documents are scanned rather than digitally generated. This skill mitigates this by pairing pdfplumber parsing for digital layouts with pytesseract OCR support for scanned image-only PDFs.