eigent-ai/eigent✦ 精选0°

pdf

仓库创建 2025年7月29日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

包含常用 PDF 编程与命令行工作流,适合自动化文档处理场景。

这个 Skill 做什么

PDF 文件的读取、提取、合并、拆分与表单处理操作指南。

处理所有跟 PDF 有关的工作:读取并提取文本和表格、合并/拆分页面、填表与表单处理、加密/解密、抽图以及对扫描件做 OCR 变可搜索。用在需要整理文档、批量处理发票合同或生成/修改 PDF 时。特别之处是覆盖从简单合并到自动填表与 OCR 的全流程,并能给出可执行的脚本或工具建议。

▸ 展开 SKILL.md 英文原文

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

办公文档PDF提取合并通用
1.5w
Stars
1.7k
Forks
6
仓库内 Skill
+185
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/eigent-ai/eigent/main/resources/example-skills/pdf/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/eigent-ai/eigent/main/resources/example-skills/pdf/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PDF Processing Guide

## Overview

This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.

## Quick Start

```python
from pypdf import PdfReader, PdfWriter

# Read a PDF
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")

# Extract text
text = ""
for page in reader.pages:
    text += page.extract_text()
```

## Python Libraries

### pypdf - Basic Operations

#### Merge PDFs
```python
from pypdf import PdfWriter, PdfReader

writer = PdfWriter()
for pdf_file in ["
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有