pdf

Extract text and structured data from PDF files using Python libraries.

641|104|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/eastreams/loong --skill pdf-eastreams
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/eastreams/loong/tree/main/skills/anthropic-office/pdf
Command: npx skills add https://github.com/eastreams/loong --skill pdf-eastreams

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Handling PDF files—reading, editing, merging, splitting, and extracting data—often requires multiple tools and manual steps, causing inefficiency and errors.

Core Features & Use Cases

  • Comprehensive PDF Operations: Read, merge, split, rotate, watermark, encrypt, and create PDFs using Python libraries and command‑line utilities.
  • Data Extraction: Pull plain text, tables, images, and metadata from any PDF, with OCR support for scanned documents.
  • Form Handling: Fill both fillable and non‑fillable PDF forms through scripted workflows and coordinate‑based annotations.
  • Use Case Example: Quickly extract invoice numbers, dates, and totals from a batch of vendor PDFs and compile them into a spreadsheet for accounting or analytics.

Quick Start

Ask the pdf skill to extract all text from the uploaded document.

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 files using Python?

To extract text and tables from PDF files, this solution uses pypdf and pdfplumber to pull plain text, structured data, and table content from any document. It handles invoice processing and data archiving workflows.

Can I automate PDF form filling with Python for non-fillable documents?

Yes, you can automate PDF form filling for both fillable and non-fillable documents using scripted workflows and coordinate-based annotations. This handles form automation without requiring interactive form fields natively.

Does Python OCR work for extracting data from scanned PDF documents?

Python OCR works for extracting data from scanned PDF documents by utilizing pdf2image and pillow to convert pages into images. This enables text extraction from scanned files where standard text parsing fails.

What is the best way to merge, split, and rotate PDFs in Python?

The best way to merge, split, and rotate PDFs in Python is using pypdf for comprehensive document operations. It reads, edits, and manipulates PDF files programmatically to reduce manual steps and errors.

Do I need pdfplumber and pypdf installed to process PDFs?

Yes, you need pdfplumber and pypdf installed along with pdf2image and pillow to process PDFs. These Python libraries provide the core functionality for text extraction, document manipulation, and OCR processing.

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

PDF text extraction returns garbled or missing characters when documents are scanned images rather than text-based PDFs. Using the OCR support via pdf2image and pillow converts image pages to extract text properly.