pdf PDF 处理

Extract text and tables from PDFs using pypdf and pdfplumber.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/XIYBHK/claude-skills --skill pdf-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf PDF 处理
Source: https://github.com/XIYBHK/claude-skills/tree/main/pdf
Command: npx skills add https://github.com/XIYBHK/claude-skills --skill pdf-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines a wide range of PDF tasks by providing programmable workflows to read, extract, merge, split, rotate, watermark, create PDFs, fill forms, encrypt/decrypt, and OCR scanned documents.

Core Features & Use Cases

  • Extract text and tables from PDFs using pypdf, pdfplumber, and pdf2image.
  • Merge, split, rotate, watermark, and create PDFs as part of automated workflows.
  • Fill PDF forms and handle encrypted documents, enabling batch processing and archival.

Quick Start

Extract all text from document.pdf and save the results to output.txt.

Frequently Asked Questions about pdf 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 PDFs using Python, this skill utilizes pypdf and pdfplumber to read binary PDF streams and produce structured outputs. It automates the extraction process, enabling batch workflows for data extraction from documents like invoices.

Can I perform OCR on scanned PDF documents with Python?

Yes, you can perform OCR on scanned PDF documents with Python. This skill uses pdf2image and Pillow alongside other libraries to convert scanned files into readable formats, allowing you to extract text from images embedded within the PDF structure.

What is the best way to merge or split large collections of PDFs in an automated workflow?

The best way to merge or split large collections of PDFs in an automated workflow is by using pypdf within this skill. It manipulates binary PDF streams to merge, split, and rotate documents programmatically, handling large batch processing efficiently.

Does this PDF processing skill support filling forms and encrypting documents?

Yes, this PDF processing skill supports filling forms and encrypting documents. It provides programmable workflows to fill PDF forms and handle encrypted documents, enabling batch processing and secure archival of your files.

What Python libraries do I need to extract data from PDF invoices?

To extract data from PDF invoices, you need the Python libraries pypdf, pdfplumber, pdf2image, and Pillow. These dependencies allow the skill to operate on binary PDF streams and produce structured outputs for your data extraction workflows.

Why does text extraction from a scanned PDF return empty results?

Text extraction from a scanned PDF returns empty results because the content is image-based rather than text-based. You must apply OCR to the scanned files using pdf2image and Pillow to recognize and extract the text from the document images.