One-click install
npx skills add https://github.com/gotar/opencode-config --skill pdf-gotar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/gotar/opencode-config/tree/main/skills/pdf
Command: npx skills add https://github.com/gotar/opencode-config --skill pdf-gotar

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive toolkit for handling PDFs, enabling automated text and table extraction, form handling, and document assembly to reduce manual workloads.

Core Features & Use Cases

  • Extract Text and Tables: Pull text and table data from PDFs into structured formats for analysis or reporting.
  • Form Handling: Read and fill PDF forms programmatically, supporting both fillable and non-fillable fields.
  • Compose and Convert: Create new PDFs, merge/split documents, and render pages to images for processing or verification.
  • Use Case: Automate invoice processing by extracting key fields, validating data, and compiling results into CSV.

Quick Start

To get started, run a quick workflow:

  • Inspect fields in a sample PDF: python scripts/extract_form_field_info.py sample.pdf fields.json
  • Generate a filled PDF from JSON: python scripts/fill_fillable_fields.py sample.pdf fields.json output.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 PDF invoices using Python?

This Skill uses pypdf to extract text and tables from PDFs into structured formats. You can pull key fields from invoices and compile the extracted data into CSV for automated reporting and data analysis.

Can I programmatically fill PDF forms with Python?

Yes, you can programmatically fill PDF forms using the provided Python scripts. The toolkit supports reading and filling both fillable and non-fillable fields by mapping data from a JSON file to generate a populated output PDF.

How do I render PDF pages to images for visual verification in Python?

To render PDF pages to images for verification, the Skill relies on pdf2image and Pillow. These libraries parse the PDF and convert its pages into image files, enabling visual processing or document annotation workflows.

Does this PDF processing toolkit support merging and splitting documents?

Yes, this PDF processing toolkit supports merging and splitting documents for document assembly. It allows you to create new PDFs, combine multiple files, and split existing documents to streamline archival and administrative workflows.

What Python dependencies are required for PDF text extraction and form handling?

The required Python dependencies for PDF text extraction and form handling are pypdf, pdf2image, and Pillow. These libraries handle parsing PDFs, rendering pages to images, and modifying or annotating documents.