pdf

Extract text, tables, and metadata from PDF documents.

1|Updated Sep 21, 2022
One-click install
npx skills add https://github.com/mohamedhabibwork/mohamedhabibwork --skill pdf-mohamedhabibwork
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/mohamedhabibwork/mohamedhabibwork/tree/main/habib-app/.opencode/skills/pdf
Command: npx skills add https://github.com/mohamedhabibwork/mohamedhabibwork --skill pdf-mohamedhabibwork

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents are frequently tedious to process manually for extraction, form handling, and transformation; this skill automates reading, extracting, and transforming content from PDFs to save time and reduce errors.

Core Features & Use Cases

  • Text & table extraction: pull content, tables, and metadata into usable formats (text, CSV, JSON).
  • Form handling & OCR: support fillable forms, non-fillable fields, and OCR for scanned PDFs.
  • Document manipulation: merge/split, rotate pages, apply watermarks, and encrypt/decrypt PDFs for secure workflows.

Quick Start

Ask me to extract text from a PDF and return structured data.

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 into CSV or JSON?

To extract text and tables from a PDF, you can parse documents to pull content, metadata, and page structure directly into usable formats like text, CSV, or JSON. It handles form processing and uses pdfplumber for accurate table extraction.

What is the best way to digitize scanned PDF documents?

The best way to digitize scanned PDFs is using OCR to recognize and extract text from images. This approach transforms non-fillable fields and scanned pages into editable data, leveraging pdf2image and Pillow for accurate document digitization.

Can I merge, split, and encrypt PDF files in an automated workflow?

Yes, you can merge, split, and encrypt PDF files in an automated workflow. The process manipulates document structures by rotating pages, applying watermarks, and handling encryption or decryption for secure archival tasks.

Does pdfplumber support extracting data from fillable PDF forms?

Yes, pdfplumber and pypdf support extracting data from fillable PDF forms. The workflow captures form fields and non-fillable content, extracting structured data seamlessly for business, research, and education contexts.

How does OCR handle text extraction from encrypted PDF documents?

OCR for encrypted PDFs requires decrypting the document first before applying text extraction or image conversion. Built-in support handles encrypted files by unlocking them, enabling pdf2image to process pages for OCR.

Why does PDF text extraction return garbled characters or missing tables?

PDF text extraction returns garbled characters or missing tables when documents are scanned images lacking embedded text. Using OCR resolves this by recognizing image text, while pdfplumber ensures accurate table boundary detection.