documents-pdf

Extract text and tables from PDFs using Python libraries.

20|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/malhashemi/dotfiles --skill documents-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documents-pdf
Source: https://github.com/malhashemi/dotfiles/tree/main/dot_config/opencode/skill/document-skills/pdf
Command: npx skills add https://github.com/malhashemi/dotfiles --skill documents-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pytesseract, pdf2image, poppler-utils, qpdf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex and time-consuming tasks associated with PDF documents, from simple text extraction to intricate form filling and document generation.

Core Features & Use Cases

  • Comprehensive PDF Processing: Extract text, tables, and metadata; merge, split, rotate, and create PDFs.
  • Form Handling: Fill out both fillable and non-fillable PDF forms accurately.
  • Scanned Document OCR: Extract text from scanned PDFs using Optical Character Recognition.
  • Use Case: Automatically process a batch of scanned application forms, extract key information, and populate a database, or generate a standardized report PDF from structured data.

Quick Start

Use the documents-pdf skill to extract all text from the attached file 'application_form.pdf'.

Frequently Asked Questions about documents-pdf

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

FAQPage Schema
How do I extract text and tables from a scanned PDF?

To extract text and tables from a scanned PDF, you need optical character recognition (OCR). This Skill uses pytesseract and pdf2image to process scanned documents, extracting text and table data programmatically via Python scripts.

Can I fill out non-fillable PDF forms using Python?

Yes, you can fill non-fillable PDF forms using Python. This Skill provides detailed annotation capabilities to overlay data onto non-fillable forms, alongside standard form filling for interactive PDFs using its programmatic toolkit.

What's the best way to merge, split, and generate PDFs programmatically?

The best way to merge, split, and generate PDFs programmatically is using Python libraries like pypdf and reportlab. This Skill provides a robust toolkit for comprehensive PDF processing, including document creation and manipulation.

Does this PDF processing solution require external system dependencies like poppler-utils?

Yes, this PDF processing solution requires external system dependencies like poppler-utils and qpdf. You must install these alongside Python libraries such as pdfplumber and pytesseract to enable full OCR and document manipulation capabilities.

How do I extract metadata from a PDF document?

You extract metadata from a PDF document by utilizing Python libraries like pypdf and pdfplumber. This Skill supports comprehensive PDF processing, allowing you to programmatically retrieve text, tables, and metadata from your files.

What are the limitations of using pytesseract for OCR on scanned documents?

When using pytesseract for OCR on scanned documents, limitations include text recognition accuracy depending on image quality. This Skill mitigates extraction challenges by using pdf2image and poppler-utils to convert and preprocess PDF pages before applying OCR.