pdf

Extract text and structured table data from PDFs using pypdf and pdfplumber.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Zehong-Wang/Kosmos --skill pdf-zehong-wang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Zehong-Wang/Kosmos/tree/main/kosmos-reference/kosmos-claude-scientific-writer/.claude/skills/document-skills/pdf
Command: npx skills add https://github.com/Zehong-Wang/Kosmos --skill pdf-zehong-wang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, pytesseract, and includes scripts (resource) and references (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.
  • 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 structured data from PDF files automatically?

To extract text and structured data from PDF files automatically, use Python libraries like pypdf and pdfplumber to parse binary PDF streams without manual intervention. This pulls usable text and table data from documents.

What is the best way to fill out non-fillable PDF forms programmatically?

Filling non-fillable PDF forms programmatically involves applying Python automation to render and overlay data onto the document. This Skill automates both fillable and non-fillable form digitization to eliminate repetitive manual data entry.

How do I extract invoice numbers and amounts from multiple PDFs into a CSV?

Extracting invoice numbers and amounts from multiple PDFs into a CSV uses Python to parse batches of vendor invoices. It automatically pulls structured data like dates and totals from each file and compiles them into a single CSV output.

Does pdfplumber support extracting structured table data from PDF documents?

Yes, pdfplumber supports extracting structured table data from PDF documents. It works alongside pypdf to parse binary streams, enabling you to pull complex table layouts into usable formats for administrative workflows.

Can I use Python to digitize archival PDF documents and retrieve data?

You can use Python to digitize archival PDF documents and retrieve data by applying pypdf and pdfplumber. These libraries parse binary PDF streams to extract archival text and structured data without manual intervention.

Do I need pytesseract to extract text from scanned PDF images?

Yes, you need pytesseract to extract text from scanned PDF images. It works with pdf2image to apply OCR, complementing pypdf and pdfplumber which only parse digital text streams within PDF documents.