pdf

Extract text, tables, and metadata from PDF documents using Python libraries.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/MrMoshkovitz/gm-claude --skill pdf-mrmoshkovitz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/MrMoshkovitz/gm-claude/tree/main/all-skills/skills/document-skills/pdf
Command: npx skills add https://github.com/MrMoshkovitz/gm-claude --skill pdf-mrmoshkovitz

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the tedious manual work of filling out PDF forms and extracting data from documents, saving you hours of repetitive effort.

Core Features & Use Cases

  • Automated Form Filling: Programmatically fill both fillable and non-fillable PDF forms.
  • Data Extraction: Pull text and structured table data from any PDF into usable formats.
  • Document Manipulation: Merge, split, rotate, and password-protect PDF documents.
  • Use Case: Imagine you have 100 vendor invoices in PDF format. Use this Skill to automatically extract the invoice number, date, and total amount from each one and compile them into a single CSV file.

Quick Start

Use the pdf skill to extract all text from the attached file 'invoice-q3.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 documents automatically?

Text and table extraction from PDFs uses libraries like pdfplumber and pypdf to read document content programmatically. These tools parse PDF structure to retrieve plain text, structured table data, and metadata, which you can then process, filter, or export to CSV, JSON, or other formats without manual copying.

Can I automate filling out PDF forms with Python?

Yes, pypdf and reportlab enable programmatic form filling for both fillable and non-fillable PDFs. You populate form fields with data from databases or spreadsheets, then generate completed documents at scale, eliminating manual data entry and reducing processing time from hours to seconds.

What's the best way to process scanned PDFs with OCR?

Scanned PDFs require OCR (optical character recognition) using pytesseract with pdf2image to convert image-based pages into searchable, extractable text. This workflow converts scanned documents into machine-readable content suitable for data extraction and automation pipelines.

Can I merge, split, and rotate PDF pages programmatically?

Yes, pypdf handles page-level operations including merging multiple documents, extracting specific pages, rotating content, and adding watermarks or password protection. These manipulation tasks are essential for batch document processing and compliance workflows.

Do I need additional tools to handle encrypted or complex PDFs?

Complex PDF handling uses qpdf for low-level operations and pytesseract for content embedded in images. Dependencies like poppler-utils support advanced rendering. For standard text and form extraction, pypdf and pdfplumber cover most use cases; specialized needs may require additional libraries.