pdf

Extracts text and tables from PDFs using pypdf, pdfplumber, and reportlab.

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

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 PDF processing, enabling automated extraction, creation, and form handling to streamline document workflows.

Core Features & Use Cases

  • Text and table extraction: Retrieve structured content from PDFs and export to CSV/Excel if needed.
  • PDF creation, merging, and splitting: Generate new PDFs, combine multiple documents, or split large ones.
  • Form handling: Read PDF form fields and fill or annotate forms programmatically, including non-fillable forms.
  • Use Case: Automate invoice processing by extracting essential fields (invoice number, date, total) and populating templates.

Quick Start

Use the pdf skill to extract text from a sample.pdf and print page counts.

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 documents for invoice processing?

To extract text and tables from PDF documents, this Skill uses pypdf to retrieve structured content from multi-page files. It automates invoice data extraction by isolating essential fields like invoice numbers and totals without manual intervention, and can export the parsed data to CSV or Excel formats.

What is the best way to automate filling PDF form fields programmatically?

The best way to automate filling PDF form fields programmatically is using this Skill's form handling capabilities. It reads and populates interactive form fields via pypdf, and can even annotate non-fillable forms by rendering them with pdf2image and Pillow for template overlay.

Can I split and merge multi-page PDF reports without manual intervention?

Yes, you can split and merge multi-page PDF reports without manual intervention. This Skill handles PDF creation, combining multiple documents into one, or splitting large archival reports into smaller files programmatically using pypdf and reportlab libraries.

Does pypdf support data extraction from non-fillable PDF forms?

Yes, pypdf supports data extraction from non-fillable PDF forms. This Skill reads form fields and annotates non-fillable forms programmatically by rendering the documents with pdf2image and Pillow, enabling text overlay and template population across multi-page files.

What are the limitations of using Python libraries for PDF text extraction?

Limitations of using Python libraries like pypdf for PDF text extraction include potential issues with complex, image-heavy layouts where text is not embedded as searchable strings. For these edge cases, this Skill relies on pdf2image and Pillow to render pages and process them visually.