pdf

Extract, fill, and annotate PDF forms using Python tooling.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Pans0020/opencode-skills --skill pdf-pans0020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Pans0020/opencode-skills/tree/main/pdf
Command: npx skills add https://github.com/Pans0020/opencode-skills --skill pdf-pans0020

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

It removes the manual, error-prone work of extracting information from PDFs and filling their forms by providing an end-to-end toolkit for PDF parsing, transformation, and form handling.

Core Features & Use Cases

  • Extract content from PDFs: Use Python tooling to read PDF text and, when available, locate form fields and their geometry.
  • Fill PDF forms: Automatically fill fillable AcroForm fields using detected field metadata, and support non-fillable PDFs by adding text annotations at specific bounding boxes.
  • Build and transform PDF workflows: Merge, split, rotate, create PDFs, and run supporting transformations like PDF-to-image rendering for layout-driven form annotation.

Use Case: You receive scanned or standardized forms as PDFs and need to batch-fill them with values (e.g., names, dates, checkboxes) while validating locations and ensuring viewers render appearances correctly.

Quick Start

Tell the AI to fill a PDF form for the attached file "intake-form.pdf" using field values you provide, and the Skill will produce a completed PDF output.

Frequently Asked Questions about pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate filling PDF form fields at scale?

PDF data extraction works by reading text and form field geometry with pdfplumber, converting pages to images with pdf2image for layout-aware analysis, and using pytesseract for OCR on scanned documents to capture content.

Can I add annotations to a non-fillable PDF document?

You need Python with pypdf, pdfplumber, pdf2image, pillow, pypdfium2, reportlab, and pytesseract installed. These libraries support parsing, rendering, transforming, and applying OCR to PDF documents for comprehensive form processing.

What is the best way to batch process PDF forms with validation?

For scanned forms, use pytesseract for OCR to extract text, convert pages to images with pdf2image to understand layout geometry, and apply coordinate transforms to map extracted data to the correct positions before adding annotations.

Does this approach support merging and splitting PDF documents?

A limitation occurs when viewers do not render appearances correctly after filling AcroForm fields. This is handled by following deterministic field handling and validation steps to ensure the PDF output displays populated values accurately.