PDF处理

Extract text and tables from PDF documents using Python libraries.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/tiandiyiqi/ai-skills --skill pdf-tiandiyiqi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PDF处理
Source: https://github.com/tiandiyiqi/ai-skills/tree/main/%E6%96%87%E6%A1%A3%E5%A4%84%E7%90%86/pdf
Command: npx skills add https://github.com/tiandiyiqi/ai-skills --skill pdf-tiandiyiqi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of interacting with PDF documents, from simple text extraction to complex form filling and creation.

Core Features & Use Cases

  • Text and Table Extraction: Extract text and tabular data from PDFs.
  • PDF Creation and Manipulation: Create new PDFs, merge, split, rotate, and add watermarks.
  • Form Handling: Fill out fillable PDF forms or add annotations to non-fillable ones.
  • Use Case: Automatically extract all customer information from a batch of PDF applications and populate a database.

Quick Start

Use the PDF处理 skill to extract all text from the document named 'report.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 tabular data from a PDF document?

To extract text and tabular data from a PDF, this Skill uses pdfplumber and pypdf to parse document structures and retrieve textual content alongside tables for downstream processing.

Can I use Python to fill out PDF forms and add annotations?

Yes, you can fill out fillable PDF forms and add annotations to non-fillable ones, providing an automated approach for populating fillable PDF forms or injecting annotations using Python libraries.

What is the best way to merge, split, or rotate PDF pages programmatically?

The best way to merge, split, and rotate PDF pages programmatically is using this Skill's deterministic PDF operations, which leverage pypdf and command-line tools like qpdf to manipulate page structures.

Does this PDF processing approach handle creating new PDFs and adding watermarks?

Yes, this PDF processing approach handles creating new PDFs and adding watermarks by utilizing the reportlab library to generate documents and overlay watermark images or text onto existing pages.

What dependencies do I need to extract text from scanned PDF images?

To extract text from scanned PDF images, you need the pdf2image and pytesseract dependencies, which convert PDF pages into images and apply optical character recognition to extract the text.

Why use pdfplumber versus other tools for extracting data from complex PDF applications?

Use pdfplumber versus other tools for extracting data from complex PDF applications because it accurately parses tabular structures and text coordinates, ensuring deterministic data extraction from intricate layouts.